new file mode 100644
@@ -0,0 +1,49 @@
+/*
+ * Copyright © 2015 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#ifndef IGT_H
+#define IGT_H
+
+#include "drmtest.h"
+#include "i915_3d.h"
+#include "i915_pciids.h"
+#include "igt_aux.h"
+#include "igt_core.h"
+#include "igt_core.h"
+#include "igt_debugfs.h"
+#include "igt_draw.h"
+#include "igt_fb.h"
+#include "igt_gt.h"
+#include "igt_kms.h"
+#include "igt_stats.h"
+#include "instdone.h"
+#include "intel_batchbuffer.h"
+#include "intel_chipset.h"
+#include "intel_io.h"
+#include "ioctl_wrappers.h"
+#include "media_fill.h"
+#include "media_spin.h"
+#include "rendercopy.h"
+#include "version.h"
+
+#endif /* IGT_H */
@@ -33,6 +33,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -44,8 +45,6 @@
#endif
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
/* Checks whether the thread id is the current thread */
static bool
@@ -25,12 +25,12 @@
*
*/
+#include "igt.h"
#include <limits.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <errno.h>
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Tests the DRM_IOCTL_GET_CLIENT ioctl.");
@@ -25,14 +25,13 @@
*
*/
+#include "igt.h"
#include <limits.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <drm.h>
-#include "igt_core.h"
-#include "drmtest.h"
/**
* Checks DRM_IOCTL_GET_STATS.
@@ -25,9 +25,9 @@
*
*/
+#include "igt.h"
#include <string.h>
#include <sys/ioctl.h>
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Tests the DRM_IOCTL_GET_VERSION ioctl and libdrm's "
"drmGetVersion() interface to it.");
@@ -25,6 +25,7 @@
* Testcase: drmGetMagic() and drmAuthMagic()
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -39,9 +40,6 @@
#include <sys/time.h>
#include <sys/poll.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Call drmGetMagic() and drmAuthMagic() and see if it behaves.");
@@ -25,6 +25,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -40,8 +41,6 @@
#include <unistd.h>
#include <sys/syscall.h>
-#include "igt_core.h"
-#include "drmtest.h"
int fd;
drm_intel_bufmgr *bufmgr;
@@ -29,6 +29,7 @@
* Testcase: boundary testing of read(drm_fd)
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -43,9 +44,6 @@
#include <sys/time.h>
#include <sys/poll.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Call read(drm) and see if it behaves.");
@@ -24,6 +24,7 @@
* Daniel Vetter <daniel.vetter@ffwll.ch>
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -33,12 +34,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -24,6 +24,7 @@
* Daniel Vetter <daniel.vetter@ffwll.ch>
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -33,12 +34,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -24,6 +24,7 @@
* Daniel Vetter <daniel.vetter@ffwll.ch>
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -33,12 +34,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -24,6 +24,7 @@
* Daniel Vetter <daniel.vetter@ffwll.ch>
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -33,12 +34,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -25,12 +25,11 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <errno.h>
#include <xf86drm.h>
#include <i915_drm.h>
-#include "drmtest.h"
-#include "intel_chipset.h"
#include "intel_bufmgr.h"
IGT_TEST_DESCRIPTION("Tests the export of parameters via DRM_IOCTL_I915_GETPARAM\n");
@@ -26,16 +26,12 @@
*
*/
+#include "igt.h"
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include "intel_chipset.h"
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_gt.h"
-#include "ioctl_wrappers.h"
#ifndef I915_PARAM_CMD_PARSER_VERSION
#define I915_PARAM_CMD_PARSER_VERSION 28
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -38,10 +39,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_gt.h"
-#include "igt_aux.h"
#define OBJECT_SIZE (16*1024*1024)
@@ -27,10 +27,9 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
-#include "drmtest.h"
-#include "igt_aux.h"
struct igt_eviction_test_ops
{
@@ -1,3 +1,4 @@
+#include "igt.h"
#include <sys/ioctl.h>
#include <fcntl.h>
#include <errno.h>
@@ -5,7 +6,6 @@
#include <signal.h>
#include <i915_drm.h>
-#include "drmtest.h"
int main(void)
{
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_chipset.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -41,6 +41,7 @@
* resulted.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -50,12 +51,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,8 +36,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Test minimal bo_create and batchbuffer exec.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -37,10 +38,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Simulates SNA behaviour using negative self-relocations"
" for STATE_BASE_ADDRESS command packets.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,8 +36,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
static void
test_bad_close(int fd)
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -37,13 +38,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test snoop consistency when touching partial"
" cachelines.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
@@ -38,9 +39,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
#define OBJECT_SIZE (256 * 1024)
@@ -35,6 +35,7 @@
* Based on gem_gtt_concurrent_blt.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -47,15 +48,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_core.h"
-#include "igt_gt.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Test of pread/pwrite/mmap behavior when writing to active"
" buffers.");
@@ -45,6 +45,7 @@
* GPU will hang.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -56,13 +57,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test the relocations through the CPU domain.");
@@ -35,6 +35,7 @@
* This test for a bug where we've failed to plug a scratch pte entry into the
* very last gtt pte.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -46,13 +47,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test the CS prefetch behaviour on batches.");
@@ -35,6 +35,7 @@
* https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1063252
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -49,10 +50,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Check whether we correctly invalidate the cs tlb.");
@@ -29,12 +29,11 @@
* Negative test cases for destroy contexts
*/
+#include "igt.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Negative test cases for destroy contexts.");
@@ -30,6 +30,7 @@
* test we can't submit contexts to unsupported rings
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -42,8 +43,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Test that context cannot be submitted to unsupported"
" rings.");
@@ -29,6 +29,7 @@
* This test is useful for finding memory and refcount leaks.
*/
+#include "igt.h"
#include <pthread.h>
#include <stdlib.h>
#include <sys/ioctl.h>
@@ -40,12 +41,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic test for memory and refcount leaks.");
@@ -25,12 +25,11 @@
*
*/
+#include "igt.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
int ret, fd;
struct drm_i915_gem_context_create create;
@@ -29,6 +29,7 @@
* This test covers basic context switch functionality
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -43,10 +44,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_gt.h"
IGT_TEST_DESCRIPTION("Test basic context switch functionality.");
@@ -24,12 +24,10 @@
* Daniel Vetter <daniel.vetter@ffwll.ch>
*/
+#include "igt.h"
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Basic test for context set/get param input validation.");
@@ -22,6 +22,7 @@
*
*/
+#include "igt.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -30,10 +31,6 @@
#include <sys/stat.h>
#include <sys/resource.h>
-#include "ioctl_wrappers.h"
-#include "igt_aux.h"
-#include "intel_chipset.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Fill the Gobal GTT with context objects and VMs\n");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,13 +35,8 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
#include "i830_reg.h"
-#include "intel_chipset.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,13 +35,8 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
#include "i830_reg.h"
-#include "intel_chipset.h"
#define LOCAL_I915_EXEC_VEBOX (4<<0)
#define LOCAL_I915_EXEC_BSD_RING1 (1<<13)
@@ -27,6 +27,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -38,11 +39,6 @@
#include <drm.h>
-#include "drmtest.h"
-#include "ioctl_wrappers.h"
-#include "igt_core.h"
-#include "igt_aux.h"
-#include "igt_gt.h"
IGT_TEST_DESCRIPTION("Test that specific ioctls report a wedged GPU (EIO).");
@@ -30,6 +30,7 @@
* Testcase: run a couple of big batches to force the unbind on misalignment code.
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -44,11 +45,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
-#include "igt_gt.h"
IGT_TEST_DESCRIPTION("Run a couple of big batches to force the unbind on"
" misalignment code.");
@@ -30,6 +30,7 @@
* Testcase: run a couple of big batches to force the eviction code.
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -42,10 +43,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "igt_gt.h"
#include "eviction_common.c"
@@ -27,6 +27,7 @@
/* Exercises the basic execbuffer using object alignments */
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -36,9 +37,6 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "igt_debugfs.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using object alignments");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,12 +35,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
/* Testcase: Test whether the kernel rejects relocations with non-gpu domains
*
@@ -32,6 +32,7 @@
* Mostly useful to stress-test the error-capture code
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -44,10 +45,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "intel_chipset.h"
-#include "drmtest.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Run a large nop batch to stress test the error capture"
" code.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -37,10 +38,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
#define OBJECT_SIZE 16384
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -37,11 +38,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_debugfs.h"
/* Testcase: Submit patches with relocations in memory that will fault
*
@@ -27,6 +27,7 @@
/* Exercises the basic execbuffer using the handle LUT interface */
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -36,9 +37,6 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "igt_debugfs.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
" interface.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -38,10 +39,6 @@
#include <sys/time.h>
#include <time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "igt_stats.h"
#define LOCAL_I915_EXEC_NO_RELOC (1<<11)
#define LOCAL_I915_EXEC_HANDLE_LUT (1<<12)
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -38,11 +39,6 @@
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
#define LOCAL_I915_EXEC_VEBOX (4<<0)
#define LOCAL_I915_EXEC_BSD_MASK (3<<13)
@@ -22,6 +22,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
@@ -29,9 +30,6 @@
#include <drm.h>
-#include "drmtest.h"
-#include "ioctl_wrappers.h"
-#include "intel_chipset.h"
#ifndef I915_PARAM_CMD_PARSER_VERSION
#define I915_PARAM_CMD_PARSER_VERSION 28
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/resource.h>
@@ -32,9 +33,6 @@
#include <fcntl.h>
#include <limits.h>
-#include "drmtest.h"
-#include "ioctl_wrappers.h"
-#include "igt_aux.h"
#define FD_ARR_SZ 100
@@ -30,6 +30,7 @@
#include "config.h"
#endif
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -41,8 +42,6 @@
#include <sys/ioctl.h>
#include <pthread.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#define OBJECT_SIZE (128*1024) /* restricted to 1MiB alignment on i915 fences */
@@ -29,6 +29,7 @@
#include "config.h"
#endif
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -40,8 +41,6 @@
#include <pthread.h>
#include "drm.h"
#include "i915_drm.h"
-#include "drmtest.h"
-#include "ioctl_wrappers.h"
#define OBJECT_SIZE (1024*1024) /* restricted to 1MiB alignment on i915 fences */
@@ -27,6 +27,7 @@
#define _GNU_SOURCE
+#include "igt.h"
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
@@ -37,11 +38,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test execbuf fence accounting.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,8 +35,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
static void
test_flink(int fd)
@@ -25,6 +25,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <sys/ioctl.h>
#include <stdlib.h>
#include <string.h>
@@ -33,10 +34,7 @@
#include <pthread.h>
#include <errno.h>
-#include "drmtest.h"
-#include "ioctl_wrappers.h"
#include "intel_bufmgr.h"
-#include "igt_debugfs.h"
IGT_TEST_DESCRIPTION("Check for flink/open vs. gem close races.");
@@ -30,6 +30,7 @@
* workload for the GPGPU pipeline.
*/
+#include "igt.h"
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
@@ -42,12 +43,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
#define WIDTH 64
#define HEIGHT 64
@@ -30,6 +30,7 @@
* This test checks whether gtt tlbs for cpu access are correctly invalidated.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -40,9 +41,6 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
IGT_TEST_DESCRIPTION("Check whether gtt tlbs for cpu access are correctly"
" invalidated.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -39,9 +40,6 @@
#include <sys/wait.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
static const uint32_t canary = 0xdeadbeef;
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -38,8 +39,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#define OBJECT_SIZE 16384
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_chipset.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,12 +35,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Provoke the hangcheck timer on an otherwise idle"
" system.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,8 +35,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
/* Should take 64 pages to store the page pointers on 64 bit */
#define OBJ_SIZE (128 * 1024 * 1024)
@@ -33,6 +33,7 @@
* The goal is to simply ensure the basics work.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -44,11 +45,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "intel_chipset.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test doing many blits with a working set larger than the"
" aperture size.");
@@ -27,6 +27,7 @@
/* Exercises the basic execbuffer using the handle LUT interface */
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -36,8 +37,6 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
" interface.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -36,8 +37,6 @@
#include <signal.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Checks that the kernel reports EFAULT when trying to use"
" purged bo.");
@@ -30,6 +30,7 @@
* workload for the Media pipeline.
*/
+#include "igt.h"
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
@@ -42,12 +43,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic test for the media_fill() function, a very simple"
" workload for the Media pipeline.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,9 +36,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "igt_aux.h"
-#include "drmtest.h"
#define OBJECT_SIZE 16384
#define PAGE_SIZE 4096
@@ -26,6 +26,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -37,10 +38,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_aux.h"
#ifndef PAGE_SIZE
#define PAGE_SIZE 4096
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,8 +36,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
IGT_TEST_DESCRIPTION("Checks whether the kernel handles mmap offset exhaustion"
" correctly.");
@@ -26,6 +26,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -37,9 +38,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_debugfs.h"
struct local_i915_gem_mmap_v2 {
uint32_t handle;
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,13 +36,8 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
#include "i830_reg.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic check of ring<->ring sync using a dummy reloc.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,12 +35,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
#include "i830_reg.h"
IGT_TEST_DESCRIPTION("Basic check of non-secure batches.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -36,11 +37,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test pwrite/pread consistency when touching partial"
" cachelines.");
@@ -26,6 +26,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -39,12 +40,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_debugfs.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test persistent relocations as used by uxa/libva.");
@@ -27,6 +27,7 @@
/* Exercises pinning of small bo */
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -38,11 +39,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Exercises pinning of small buffer objects.");
@@ -31,6 +31,7 @@
* Writes a counter-value into an always newly allocated target bo (by disabling
* buffer reuse). Decently trashes on tlb inconsistencies, too.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -40,12 +41,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
IGT_TEST_DESCRIPTION("Test (TLB-)Coherency of pipe_control QW writes.");
@@ -21,6 +21,7 @@
* IN THE SOFTWARE.
*/
+#include "igt.h"
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
@@ -35,13 +36,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
#define WIDTH 512
#define STRIDE (WIDTH*4)
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -37,8 +38,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#define OBJECT_SIZE 16384
@@ -34,6 +34,7 @@
* ranged-buffer-flush paths in the kernel.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -45,12 +46,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_aux.h"
-#include "igt_gt.h"
IGT_TEST_DESCRIPTION("Test pread behavior when getting values out of"
" just-drawn-to buffers.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -37,9 +38,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_aux.h"
#define OBJECT_SIZE 16384
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -37,12 +38,7 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
#define OBJECT_SIZE 16384
@@ -22,6 +22,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
@@ -34,10 +35,6 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "intel_chipset.h"
-#include "drmtest.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION(
"pwrite to a snooped bo then make it uncached and check that the GPU sees the data.");
@@ -26,6 +26,7 @@
* This is a test of performance with multiple readers from the same source.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -39,15 +40,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_core.h"
-#include "igt_gt.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Test speed of concurrent reads between engines.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,8 +36,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#define OBJECT_SIZE 16384
@@ -25,14 +25,13 @@
*
*/
+#include "igt.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/utsname.h>
#include <time.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
static bool is_x86_64;
static bool has_proper_timestamp;
@@ -28,6 +28,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
@@ -43,10 +44,6 @@
#include <sys/time.h>
#include <sys/types.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "intel_chipset.h"
-#include "drmtest.h"
-#include "intel_io.h"
IGT_TEST_DESCRIPTION("Check that kernel relocation overflows are caught.");
@@ -26,6 +26,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -39,13 +40,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_debugfs.h"
-#include "igt_aux.h"
-#include "igt_gt.h"
IGT_TEST_DESCRIPTION("Test kernel relocations vs. gpu races.");
@@ -29,6 +29,7 @@
* workload for the 3D engine.
*/
+#include "igt.h"
#include <stdbool.h>
#include <unistd.h>
#include <cairo.h>
@@ -44,13 +45,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Basic test for the render_copy() function.");
@@ -32,6 +32,7 @@
* the execbuffer interface with a simple render workload.
*/
+#include "igt.h"
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
@@ -46,13 +47,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Advanced test for the render_copy() function.");
@@ -37,6 +37,7 @@
#include "config.h"
#endif
+#include "igt.h"
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
@@ -49,13 +50,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
#define WIDTH 512
#define STRIDE (WIDTH*4)
@@ -33,6 +33,7 @@
* The goal is to simply ensure the basics work.
*/
+#include "igt.h"
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
@@ -45,13 +46,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
#define WIDTH 512
#define STRIDE (WIDTH*4)
@@ -26,6 +26,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
@@ -40,12 +41,6 @@
#include <time.h>
#include <signal.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_gt.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_aux.h"
#define RS_NO_ERROR 0
#define RS_BATCH_ACTIVE (1 << 0)
@@ -47,13 +47,10 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdbool.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Ensure inter-ring dependencies are respected.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,13 +35,8 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
#include "i830_reg.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic check of ring<->ring sync using a dummy reloc.");
@@ -31,6 +31,7 @@
* catching failure to manage the ring properly near full.
*/
+#include "igt.h"
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
@@ -43,11 +44,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_aux.h"
struct bo {
const char *ring;
@@ -30,6 +30,7 @@
* boundary.
*/
+#include "igt.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>
@@ -41,15 +42,7 @@
#include <signal.h>
#include <errno.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_core.h"
-#include "igt_aux.h"
-#include "igt_debugfs.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Runs blitcopy -> rendercopy with multiple buffers over"
" wrap boundary.");
@@ -44,6 +44,7 @@
* transitions (i.e. changing stride).
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -54,12 +55,7 @@
#include <sys/time.h>
#include <stdbool.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
IGT_TEST_DESCRIPTION("Check for proper synchronization of tiling changes vs."
" tiled gpu access.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,10 +36,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Check set_tiling vs gtt mmap coherency.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,9 +36,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
IGT_TEST_DESCRIPTION("Check set_tiling vs pwrite coherency.");
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_chipset.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
static drm_intel_bufmgr *bufmgr;
static drm_intel_bo *target_bo;
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic CS check using MI_STORE_DATA_IMM.");
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic blitter MI check using MI_STORE_DATA_IMM.");
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic bsd MI check using MI_STORE_DATA_IMM.");
@@ -26,6 +26,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -35,12 +36,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic render MI check using MI_STORE_DATA_IMM.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -34,12 +35,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Basic vebox MI check using MI_STORE_DATA_IMM.");
@@ -26,6 +26,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -37,11 +38,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_aux.h"
-#include "intel_chipset.h"
#define OBJECT_SIZE 1024*1024
#define CHUNK_SIZE 32
@@ -49,6 +49,7 @@
* In short: designed for maximum evilness.
*/
+#include "igt.h"
#include <stdlib.h>
#include <sys/ioctl.h>
#include <stdio.h>
@@ -61,13 +62,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("General gem coherency test.");
@@ -24,14 +24,13 @@
* Mika Kuoppala <mika.kuoppala@intel.com>
*/
+#include "igt.h"
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
-#include "drmtest.h"
-#include "ioctl_wrappers.h"
#include "intel_bufmgr.h"
IGT_TEST_DESCRIPTION("Check parallel access to tiled memory.");
@@ -41,6 +41,7 @@
* resulted.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -52,11 +53,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test doing many tiled blits, with a working set larger"
" than the aperture size.");
@@ -41,6 +41,7 @@
* resulted.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -52,13 +53,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
static drm_intel_bufmgr *bufmgr;
struct intel_batchbuffer *batch;
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -36,11 +37,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test pwrite/pread consistency when touching partial"
" cachelines.");
@@ -35,6 +35,7 @@
* other systems.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -45,10 +46,6 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Test pread behavior on tiled objects with respect to the"
@@ -44,6 +44,7 @@
* Note that this test will use swap in an effort to test all of ram.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -56,10 +57,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test swizzling by testing pwrite does the inverse of"
" pread.");
@@ -44,6 +44,7 @@
* This test obviously needs swap present (and exits if none is detected).
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -57,11 +58,6 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "igt_aux.h"
-#include "igt_debugfs.h"
IGT_TEST_DESCRIPTION("Exercise swizzle code for swapping.");
@@ -32,6 +32,7 @@
* to userspace, and that userspace has to respect the swizzle.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -42,10 +43,6 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("This is a test of write-combining mmap's behavior on"
" tiled objects with respect to the reported swizzling"
@@ -32,6 +32,7 @@
* to userspace, and that userspace has to respect the swizzle.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -42,10 +43,6 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
#define WIDTH 512
#define HEIGHT 512
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -36,10 +37,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Check that max fence stride works.");
@@ -38,6 +38,7 @@
* problem - the race window is too small.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -48,12 +49,7 @@
#include <sys/time.h>
#include <stdbool.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Check for use-after-free in the fence stealing code.");
@@ -32,6 +32,7 @@
* will be the last one to hold a reference on them. Usually libdrm bo caching
* prevents that by keeping another reference.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -41,12 +42,7 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Test unreferencing of active buffers.");
@@ -36,6 +36,7 @@
* The goal is to simply ensure the basics work.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -52,11 +53,7 @@
#include "drm.h"
#include "i915_drm.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "ioctl_wrappers.h"
#include "eviction_common.c"
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
@@ -39,13 +40,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
#define MSEC_PER_SEC 1000L
#define USEC_PER_MSEC 1000L
@@ -26,6 +26,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
@@ -40,12 +41,6 @@
#include <time.h>
#include <signal.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_gt.h"
-#include "igt_aux.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
enum operation {
GPU_RESET = 0x01,
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -36,12 +37,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_io.h"
#include "i830_reg.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Check read/write syncpoints when switching rings.");
@@ -33,6 +33,7 @@
* The goal is to simply ensure the basics work.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -43,13 +44,8 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
#include "i915_reg.h"
-#include "i915_3d.h"
#define WIDTH (512)
#define HEIGHT (512)
@@ -33,6 +33,7 @@
* The goal is to simply ensure the basics work.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -42,13 +43,8 @@
#include <sys/stat.h>
#include <sys/time.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
#include "i915_reg.h"
-#include "i915_3d.h"
#define WIDTH 512
#define HEIGHT 512
@@ -33,6 +33,7 @@
* The goal is to simply ensure the basics work.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -43,13 +44,8 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
#include "i915_reg.h"
-#include "i915_3d.h"
#define WIDTH 512
#define HEIGHT 512
@@ -33,6 +33,7 @@
* The goal is to simply ensure the basics work.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -43,13 +44,8 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
#include "i915_reg.h"
-#include "i915_3d.h"
#define WIDTH 512
#define HEIGHT 512
@@ -33,6 +33,7 @@
* The goal is to simply ensure the basics work.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -43,13 +44,8 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
#include "i915_reg.h"
-#include "i915_3d.h"
#define WIDTH 512
#define HEIGHT 512
@@ -30,16 +30,12 @@
*
*/
+#include "igt.h"
#include <sys/types.h>
#include <pthread.h>
#include <string.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "i915_pciids.h"
-#include "drmtest.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Exercise a suspect workaround required for"
" FORCEWAKE_MT.");
@@ -22,9 +22,7 @@
*
*/
-#include "igt_core.h"
-#include "igt_kms.h"
-#include "drmtest.h"
+#include "igt.h"
IGT_TEST_DESCRIPTION("Tests 3D mode setting.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,10 +36,7 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "drm_fourcc.h"
-#include "intel_chipset.h"
uint32_t gem_bo;
uint32_t gem_bo_small;
@@ -22,12 +22,9 @@
*
*/
+#include "igt.h"
#include <math.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "igt_core.h"
IGT_TEST_DESCRIPTION("Test crtc background color feature");
@@ -22,17 +22,13 @@
*
*/
+#include "igt.h"
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION(
"Use the display CRC support to validate cursor plane functionality. "
@@ -24,12 +24,7 @@
/* This program tests whether the igt_draw library actually works. */
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_draw.h"
-#include "igt_debugfs.h"
-#include "igt_fb.h"
-#include "igt_kms.h"
+#include "igt.h"
#define MAX_CONNECTORS 32
@@ -22,18 +22,12 @@
*
*/
+#include "igt.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "intel_chipset.h"
-#include "intel_batchbuffer.h"
-#include "ioctl_wrappers.h"
IGT_TEST_DESCRIPTION(
"Performs various write operations to the scanout buffer while FBC is "
@@ -24,15 +24,11 @@
*
*/
+#include "igt.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_debugfs.h"
-#include "igt_draw.h"
-#include "igt_kms.h"
IGT_TEST_DESCRIPTION("Test the relationship between fbcon and the frontbuffer "
"tracking infrastructure.");
@@ -22,18 +22,13 @@
*
*/
+#include "igt.h"
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "ioctl_wrappers.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Exercises full ppgtt fence pin_count leak in the "
"kernel.");
@@ -25,6 +25,7 @@
#include "config.h"
#endif
+#include "igt.h"
#include <cairo.h>
#include <errno.h>
#include <fcntl.h>
@@ -42,13 +43,6 @@
#include <time.h>
#include <pthread.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
-#include "intel_batchbuffer.h"
-#include "igt_kms.h"
-#include "igt_aux.h"
-#include "igt_gt.h"
#define TEST_DPMS (1 << 0)
#define TEST_WITH_DUMMY_BCS (1 << 1)
@@ -22,17 +22,12 @@
*
*/
+#include "igt.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "intel_chipset.h"
-#include "intel_batchbuffer.h"
-#include "ioctl_wrappers.h"
typedef struct {
int drm_fd;
@@ -24,16 +24,12 @@
* Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
*/
+#include "igt.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "ioctl_wrappers.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Test page flips and tiling scenarios");
@@ -22,9 +22,7 @@
*
*/
-#include "igt_core.h"
-#include "igt_kms.h"
-#include "drmtest.h"
+#include "igt.h"
IGT_TEST_DESCRIPTION("Check the debugfs force connector/edid features work"
" correctly.");
@@ -24,19 +24,13 @@
*
*/
+#include "igt.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <poll.h>
#include <pthread.h>
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_draw.h"
-#include "igt_kms.h"
-#include "igt_debugfs.h"
-#include "intel_chipset.h"
-#include "ioctl_wrappers.h"
IGT_TEST_DESCRIPTION("Test the Kernel's frontbuffer tracking mechanism and "
"its related features: FBC and PSR");
@@ -21,11 +21,9 @@
* IN THE SOFTWARE.
*/
+#include "igt.h"
#include <errno.h>
-#include "drmtest.h"
-#include "igt_kms.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Check that the legacy set colorkey ioctl only works on sprite planes.");
@@ -21,17 +21,13 @@
* IN THE SOFTWARE.
*/
+#include "igt.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "intel_chipset.h"
-#include "ioctl_wrappers.h"
typedef struct {
int drm_fd;
@@ -22,14 +22,9 @@
*
*/
+#include "igt.h"
#include <math.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "igt_core.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test display panel fitting");
@@ -24,9 +24,7 @@
* Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
*/
-#include "drmtest.h"
-#include "igt_kms.h"
-#include "intel_chipset.h"
+#include "igt.h"
IGT_TEST_DESCRIPTION(
"Exercise the FDI lane bifurcation code for IVB in the kernel by setting"
@@ -22,16 +22,12 @@
*
*/
+#include "igt.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_gt.h"
-#include "igt_kms.h"
-#include "igt_aux.h"
-#include "ioctl_wrappers.h"
typedef struct {
int drm_fd;
@@ -24,15 +24,12 @@
* Damien Lespiau <damien.lespiau@intel.com>
*/
+#include "igt.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "igt_aux.h"
typedef struct {
float red;
@@ -22,14 +22,9 @@
*
*/
+#include "igt.h"
#include <math.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "igt_core.h"
-#include "intel_chipset.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION("Test display plane scaling");
@@ -22,19 +22,13 @@
*
*/
+#include "igt.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "igt_aux.h"
bool running_with_psr_disabled;
@@ -22,18 +22,13 @@
*
*/
+#include "igt.h"
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "intel_chipset.h"
-#include "ioctl_wrappers.h"
-#include "igt_aux.h"
IGT_TEST_DESCRIPTION(
"Use the display CRC support to validate pwrite to an already uncached future scanout buffer.");
@@ -24,19 +24,14 @@
#include "config.h"
#endif
+#include "igt.h"
#include <cairo.h>
#include <errno.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/time.h>
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "igt_kms.h"
-#include "ioctl_wrappers.h"
drmModeRes *resources;
int drm_fd;
@@ -22,13 +22,9 @@
*
*/
+#include "igt.h"
#include <math.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "igt_core.h"
-#include "intel_chipset.h"
typedef struct {
int gfx_fd;
@@ -24,6 +24,7 @@
#include "config.h"
#endif
+#include "igt.h"
#include <cairo.h>
#include <errno.h>
#include <stdint.h>
@@ -31,11 +32,7 @@
#include <string.h>
#include <sys/time.h>
-#include "drmtest.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "igt_kms.h"
#define MAX_CONNECTORS 10
#define MAX_CRTCS 3
@@ -22,6 +22,7 @@
*
*/
+#include "igt.h"
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
@@ -30,9 +31,6 @@
#include "drm_fourcc.h"
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
#define CRC_BLACK "000000000000"
@@ -21,15 +21,12 @@
* IN THE SOFTWARE.
*/
+#include "igt.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
-#include "drmtest.h"
-#include "igt_debugfs.h"
-#include "igt_kms.h"
-#include "intel_chipset.h"
typedef struct {
int drm_fd;
@@ -26,6 +26,7 @@
* This is a test of performance of drmWaitVblank.
*/
+#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -39,15 +40,7 @@
#include <drm.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_aux.h"
-#include "igt_core.h"
-#include "igt_gt.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
IGT_TEST_DESCRIPTION("Test speed of WaitVblank.");
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -34,7 +35,6 @@
#include <unistd.h>
#include <time.h>
-#include "igt_core.h"
#define TOLERANCE 5 /* percent */
#define BACKLIGHT_PATH "/sys/class/backlight/intel_backlight"
@@ -24,15 +24,12 @@
*
*/
+#include "igt.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
-#include "drmtest.h"
-#include "igt_kms.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
/* We know that if we don't enable audio runtime PM, snd_hda_intel will never
* release its power well refcount, and we'll never reach the LPSP sate. OTOH
@@ -26,14 +26,13 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
-#include "drmtest.h"
-#include "intel_chipset.h"
#define SLEEP_DURATION 3000 // in milliseconds
#define CODE_TIME 50 // in microseconfs
@@ -25,6 +25,7 @@
*
*/
+#include "igt.h"
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
@@ -42,14 +43,6 @@
#include <drm.h>
-#include "drmtest.h"
-#include "intel_batchbuffer.h"
-#include "intel_io.h"
-#include "intel_chipset.h"
-#include "ioctl_wrappers.h"
-#include "igt_aux.h"
-#include "igt_kms.h"
-#include "igt_gt.h"
#define MSR_PC8_RES 0x630
#define MSR_PC9_RES 0x631
@@ -27,6 +27,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -37,13 +38,7 @@
#include <time.h>
#include <sys/wait.h>
-#include "drmtest.h"
-#include "intel_io.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "igt_gt.h"
-#include "ioctl_wrappers.h"
static int drm_fd;
@@ -24,20 +24,14 @@
* Jeff McGee <jeff.mcgee@intel.com>
*/
+#include "igt.h"
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <time.h>
-#include "drmtest.h"
#include "i915_drm.h"
-#include "intel_io.h"
#include "intel_bufmgr.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "ioctl_wrappers.h"
-#include "igt_debugfs.h"
-#include "media_spin.h"
IGT_TEST_DESCRIPTION("Tests slice/subslice/EU power gating functionality.\n");
@@ -8,6 +8,7 @@
test4 - export handle twice from intel, import into nouveau twice, check handle is the same
*/
+#include "igt.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -16,10 +17,6 @@
#include "intel_bufmgr.h"
#include "nouveau.h"
-#include "intel_io.h"
-#include "intel_batchbuffer.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
#define BO_SIZE (256*1024)
@@ -14,6 +14,7 @@
*/
+#include "igt.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -23,13 +24,8 @@
#include <sys/ioctl.h>
#include <errno.h>
-#include "ioctl_wrappers.h"
#include "intel_bufmgr.h"
#include "nouveau.h"
-#include "intel_io.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "drmtest.h"
static int intel_fd = -1, nouveau_fd = -1;
static drm_intel_bufmgr *bufmgr;
@@ -14,6 +14,7 @@
*/
+#include "igt.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -22,13 +23,8 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
-#include "ioctl_wrappers.h"
#include "intel_bufmgr.h"
#include "nouveau.h"
-#include "intel_io.h"
-#include "intel_batchbuffer.h"
-#include "intel_chipset.h"
-#include "drmtest.h"
int intel_fd = -1, nouveau_fd = -1;
drm_intel_bufmgr *bufmgr;
@@ -32,6 +32,7 @@
*/
#define _GNU_SOURCE
+#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -44,9 +45,6 @@
#include <pthread.h>
#include "drm.h"
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
-#include "igt_debugfs.h"
IGT_TEST_DESCRIPTION("Check whether prime import/export works on the same"
" device.");
@@ -14,6 +14,7 @@
*/
+#include "igt.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -26,12 +27,7 @@
#include "xf86drm.h"
#include <xf86drmMode.h>
-#include "ioctl_wrappers.h"
#include "intel_bufmgr.h"
-#include "intel_io.h"
-#include "intel_batchbuffer.h"
-#include "drmtest.h"
-#include "intel_chipset.h"
int intel_fd = -1, udl_fd = -1;
drm_intel_bufmgr *bufmgr;
@@ -24,7 +24,7 @@
*
*/
-#include "drmtest.h"
+#include "igt.h"
IGT_TEST_DESCRIPTION("Template test.");
@@ -49,6 +49,7 @@
#include "config.h"
#endif
+#include "igt.h"
#include <cairo.h>
#include <errno.h>
#include <getopt.h>
@@ -64,11 +65,7 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include "ioctl_wrappers.h"
-#include "drmtest.h"
#include "testdisplay.h"
-#include "igt_kms.h"
-#include "igt_core.h"
#include <stdlib.h>
#include <signal.h>
@@ -21,6 +21,7 @@
* IN THE SOFTWARE.
*/
+#include "igt.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -32,7 +33,6 @@
#include "config.h"
#endif
-#include "igt_core.h"
#if HAVE_UDEV
#include <libudev.h>
Add a header that includes all the headers for the library. This allows reorganisation of the library without affecting programs using it and also simplifies the headers that need to be included to use the library. Signed-off-by: Thomas Wood <thomas.wood@intel.com> --- lib/igt.h | 49 ++++++++++++++++++++++++++++++++++ tests/core_get_client_auth.c | 3 +-- tests/core_getclient.c | 2 +- tests/core_getstats.c | 3 +-- tests/core_getversion.c | 2 +- tests/drm_auth.c | 4 +-- tests/drm_import_export.c | 3 +-- tests/drm_read.c | 4 +-- tests/drm_vma_limiter.c | 6 +---- tests/drm_vma_limiter_cached.c | 6 +---- tests/drm_vma_limiter_cpu.c | 6 +---- tests/drm_vma_limiter_gtt.c | 6 +---- tests/drv_getparams_basic.c | 3 +-- tests/drv_hangman.c | 6 +---- tests/drv_suspend.c | 5 +--- tests/eviction_common.c | 3 +-- tests/gem_alive.c | 2 +- tests/gem_bad_address.c | 6 +---- tests/gem_bad_batch.c | 6 +---- tests/gem_bad_blit.c | 6 +---- tests/gem_bad_length.c | 3 +-- tests/gem_bad_reloc.c | 5 +--- tests/gem_basic.c | 3 +-- tests/gem_caching.c | 7 +---- tests/gem_close_race.c | 4 +-- tests/gem_concurrent_all.c | 9 +------ tests/gem_cpu_reloc.c | 7 +---- tests/gem_cs_prefetch.c | 7 +---- tests/gem_cs_tlb.c | 5 +--- tests/gem_ctx_bad_destroy.c | 3 +-- tests/gem_ctx_bad_exec.c | 3 +-- tests/gem_ctx_basic.c | 6 +---- tests/gem_ctx_create.c | 3 +-- tests/gem_ctx_exec.c | 5 +--- tests/gem_ctx_param_basic.c | 4 +-- tests/gem_ctx_thrash.c | 5 +--- tests/gem_double_irq_loop.c | 6 +---- tests/gem_dummy_reloc_loop.c | 6 +---- tests/gem_eio.c | 6 +---- tests/gem_evict_alignment.c | 6 +---- tests/gem_evict_everything.c | 5 +--- tests/gem_exec_alignment.c | 4 +-- tests/gem_exec_bad_domains.c | 6 +---- tests/gem_exec_big.c | 5 +--- tests/gem_exec_blt.c | 5 +--- tests/gem_exec_faulting_reloc.c | 6 +---- tests/gem_exec_lut_handle.c | 4 +-- tests/gem_exec_nop.c | 5 +--- tests/gem_exec_params.c | 6 +---- tests/gem_exec_parse.c | 4 +-- tests/gem_fd_exhaustion.c | 4 +-- tests/gem_fence_thrash.c | 3 +-- tests/gem_fence_upload.c | 3 +-- tests/gem_fenced_exec_thrash.c | 6 +---- tests/gem_flink_basic.c | 3 +-- tests/gem_flink_race.c | 4 +-- tests/gem_gpgpu_fill.c | 6 +---- tests/gem_gtt_cpu_tlb.c | 4 +-- tests/gem_gtt_hog.c | 4 +-- tests/gem_gtt_speed.c | 3 +-- tests/gem_hang.c | 6 +---- tests/gem_hangcheck_forcewake.c | 6 +---- tests/gem_largeobject.c | 3 +-- tests/gem_linear_blits.c | 6 +---- tests/gem_lut_handle.c | 3 +-- tests/gem_madvise.c | 3 +-- tests/gem_media_fill.c | 6 +---- tests/gem_mmap.c | 4 +-- tests/gem_mmap_gtt.c | 5 +--- tests/gem_mmap_offset_exhaustion.c | 3 +-- tests/gem_mmap_wc.c | 4 +-- tests/gem_multi_bsd_sync_loop.c | 6 +---- tests/gem_non_secure_batch.c | 6 +---- tests/gem_partial_pwrite_pread.c | 6 +---- tests/gem_persistent_relocs.c | 7 +---- tests/gem_pin.c | 6 +---- tests/gem_pipe_control_store_loop.c | 6 +---- tests/gem_ppgtt.c | 7 +---- tests/gem_pread.c | 3 +-- tests/gem_pread_after_blit.c | 7 +---- tests/gem_pwrite.c | 4 +-- tests/gem_pwrite_pread.c | 6 +---- tests/gem_pwrite_snooped.c | 5 +--- tests/gem_read_read_speed.c | 9 +------ tests/gem_readwrite.c | 3 +-- tests/gem_reg_read.c | 3 +-- tests/gem_reloc_overflow.c | 5 +--- tests/gem_reloc_vs_gpu.c | 8 +----- tests/gem_render_copy.c | 7 +---- tests/gem_render_copy_redux.c | 7 +---- tests/gem_render_linear_blits.c | 7 +---- tests/gem_render_tiled_blits.c | 7 +---- tests/gem_reset_stats.c | 7 +---- tests/gem_ring_sync_copy.c | 5 +--- tests/gem_ring_sync_loop.c | 6 +---- tests/gem_ringfill.c | 6 +---- tests/gem_seqno_wrap.c | 9 +------ tests/gem_set_tiling_vs_blt.c | 6 +---- tests/gem_set_tiling_vs_gtt.c | 5 +--- tests/gem_set_tiling_vs_pwrite.c | 4 +-- tests/gem_storedw_batches_loop.c | 6 +---- tests/gem_storedw_loop.c | 6 +---- tests/gem_storedw_loop_blt.c | 6 +---- tests/gem_storedw_loop_bsd.c | 6 +---- tests/gem_storedw_loop_render.c | 6 +---- tests/gem_storedw_loop_vebox.c | 6 +---- tests/gem_streaming_writes.c | 6 +---- tests/gem_stress.c | 7 +---- tests/gem_threaded_access_tiled.c | 3 +-- tests/gem_tiled_blits.c | 6 +---- tests/gem_tiled_fence_blits.c | 7 +---- tests/gem_tiled_partial_pwrite_pread.c | 6 +---- tests/gem_tiled_pread_basic.c | 5 +--- tests/gem_tiled_pread_pwrite.c | 5 +--- tests/gem_tiled_swapping.c | 6 +---- tests/gem_tiled_wb.c | 5 +--- tests/gem_tiled_wc.c | 5 +--- tests/gem_tiling_max_stride.c | 5 +--- tests/gem_unfence_active_buffers.c | 6 +---- tests/gem_unref_active_buffers.c | 6 +---- tests/gem_userptr_blits.c | 5 +--- tests/gem_wait.c | 7 +---- tests/gem_workarounds.c | 7 +---- tests/gem_write_read_ring_switch.c | 6 +---- tests/gen3_mixed_blits.c | 6 +---- tests/gen3_render_linear_blits.c | 6 +---- tests/gen3_render_mixed_blits.c | 6 +---- tests/gen3_render_tiledx_blits.c | 6 +---- tests/gen3_render_tiledy_blits.c | 6 +---- tests/gen7_forcewake_mt.c | 6 +---- tests/kms_3d.c | 4 +-- tests/kms_addfb_basic.c | 4 +-- tests/kms_crtc_background_color.c | 5 +--- tests/kms_cursor_crc.c | 6 +---- tests/kms_draw_crc.c | 7 +---- tests/kms_fbc_crc.c | 8 +----- tests/kms_fbcon_fbt.c | 6 +---- tests/kms_fence_pin_leak.c | 7 +---- tests/kms_flip.c | 8 +----- tests/kms_flip_event_leak.c | 7 +---- tests/kms_flip_tiling.c | 6 +---- tests/kms_force_connector.c | 4 +-- tests/kms_frontbuffer_tracking.c | 8 +----- tests/kms_legacy_colorkey.c | 4 +-- tests/kms_mmio_vs_cs_flip.c | 6 +---- tests/kms_panel_fitting.c | 7 +---- tests/kms_pipe_b_c_ivb.c | 4 +-- tests/kms_pipe_crc_basic.c | 6 +---- tests/kms_plane.c | 5 +--- tests/kms_plane_scaling.c | 7 +---- tests/kms_psr_sink_crc.c | 8 +----- tests/kms_pwrite_crc.c | 7 +---- tests/kms_render.c | 7 +---- tests/kms_rotation_crc.c | 6 +---- tests/kms_setmode.c | 5 +--- tests/kms_sink_crc_basic.c | 4 +-- tests/kms_universal_plane.c | 5 +--- tests/kms_vblank.c | 9 +------ tests/pm_backlight.c | 2 +- tests/pm_lpsp.c | 5 +--- tests/pm_rc6_residency.c | 3 +-- tests/pm_rpm.c | 9 +------ tests/pm_rps.c | 7 +---- tests/pm_sseu.c | 8 +----- tests/prime_nv_api.c | 5 +--- tests/prime_nv_pcopy.c | 6 +---- tests/prime_nv_test.c | 6 +---- tests/prime_self_import.c | 4 +-- tests/prime_udl.c | 6 +---- tests/template.c | 2 +- tests/testdisplay.c | 5 +--- tests/testdisplay_hotplug.c | 2 +- 172 files changed, 220 insertions(+), 741 deletions(-) create mode 100644 lib/igt.h