[igt-dev] [PATCH i-g-t] i915: More gem_require_blitter()

Chris Wilson chris at chris-wilson.co.uk
Sun Sep 15 09:26:06 UTC 2019


Some more tests that used the less common blt interfaces.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/i915/gem_bad_reloc.c               | 1 +
 tests/i915/gem_caching.c                 | 1 +
 tests/i915/gem_exec_blt.c                | 1 +
 tests/i915/gem_partial_pwrite_pread.c    | 1 +
 tests/i915/gem_pipe_control_store_loop.c | 1 +
 tests/i915/gem_pwrite_pread.c            | 1 +
 tests/i915/gem_unfence_active_buffers.c  | 1 +
 tests/i915/gem_unref_active_buffers.c    | 1 +
 tests/i915/i915_pm_rpm.c                 | 1 +
 9 files changed, 9 insertions(+)

diff --git a/tests/i915/gem_bad_reloc.c b/tests/i915/gem_bad_reloc.c
index 7624cd8e0..c03e5beb3 100644
--- a/tests/i915/gem_bad_reloc.c
+++ b/tests/i915/gem_bad_reloc.c
@@ -191,6 +191,7 @@ igt_main
 	igt_fixture {
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
+		gem_require_blitter(fd);
 	}
 
 	for (e = intel_execution_engines; e->name; e++) {
diff --git a/tests/i915/gem_caching.c b/tests/i915/gem_caching.c
index 09e1a5f97..ce9e6345f 100644
--- a/tests/i915/gem_caching.c
+++ b/tests/i915/gem_caching.c
@@ -114,6 +114,7 @@ igt_main
 		fd = drm_open_driver(DRIVER_INTEL);
 
 		igt_require_gem(fd);
+		gem_require_blitter(fd);
 		gem_require_caching(fd);
 
 		devid = intel_get_drm_devid(fd);
diff --git a/tests/i915/gem_exec_blt.c b/tests/i915/gem_exec_blt.c
index 94de1a82f..ffb60d0cc 100644
--- a/tests/i915/gem_exec_blt.c
+++ b/tests/i915/gem_exec_blt.c
@@ -312,6 +312,7 @@ igt_main
 	igt_fixture {
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
+		gem_require_blitter(fd);
 
 		sysfs = igt_sysfs_open(fd);
 		igt_require(sysfs >= 0);
diff --git a/tests/i915/gem_partial_pwrite_pread.c b/tests/i915/gem_partial_pwrite_pread.c
index 35e39ad7f..49e086edf 100644
--- a/tests/i915/gem_partial_pwrite_pread.c
+++ b/tests/i915/gem_partial_pwrite_pread.c
@@ -253,6 +253,7 @@ igt_main
 	igt_fixture {
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
+		gem_require_blitter(fd);
 
 		bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
 		devid = intel_get_drm_devid(fd);
diff --git a/tests/i915/gem_pipe_control_store_loop.c b/tests/i915/gem_pipe_control_store_loop.c
index db23e33d2..b8a21d780 100644
--- a/tests/i915/gem_pipe_control_store_loop.c
+++ b/tests/i915/gem_pipe_control_store_loop.c
@@ -162,6 +162,7 @@ igt_main
 	igt_fixture {
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
+		gem_require_blitter(fd);
 
 		devid = intel_get_drm_devid(fd);
 
diff --git a/tests/i915/gem_pwrite_pread.c b/tests/i915/gem_pwrite_pread.c
index 3a58eae6a..422db34d8 100644
--- a/tests/i915/gem_pwrite_pread.c
+++ b/tests/i915/gem_pwrite_pread.c
@@ -285,6 +285,7 @@ igt_main_args("s:", NULL, help_str, opt_handler, NULL)
 
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
+		gem_require_blitter(fd);
 
 		dst = gem_create(fd, object_size);
 		src = gem_create(fd, object_size);
diff --git a/tests/i915/gem_unfence_active_buffers.c b/tests/i915/gem_unfence_active_buffers.c
index b78fbafa7..a357ec32c 100644
--- a/tests/i915/gem_unfence_active_buffers.c
+++ b/tests/i915/gem_unfence_active_buffers.c
@@ -75,6 +75,7 @@ igt_simple_main
 
 	fd = drm_open_driver(DRIVER_INTEL);
 	igt_require_gem(fd);
+	gem_require_blitter(fd);
 
 	bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
 	drm_intel_bufmgr_gem_enable_reuse(bufmgr);
diff --git a/tests/i915/gem_unref_active_buffers.c b/tests/i915/gem_unref_active_buffers.c
index 4fafdd048..b5d482064 100644
--- a/tests/i915/gem_unref_active_buffers.c
+++ b/tests/i915/gem_unref_active_buffers.c
@@ -58,6 +58,7 @@ igt_simple_main
 
 	fd = drm_open_driver(DRIVER_INTEL);
 	igt_require_gem(fd);
+	gem_require_blitter(fd);
 
 	bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
 	igt_assert(bufmgr);
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 2168ff72c..f6749275a 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -1266,6 +1266,7 @@ static void gem_execbuf_subtest(void)
 	uint32_t color;
 
 	igt_require_gem(drm_fd);
+	gem_require_blitter(drm_fd);
 
 	/* Create and set data while the device is active. */
 	enable_one_screen_and_wait(&ms_data);
-- 
2.23.0



More information about the igt-dev mailing list