[igt-dev] [PATCH i-g-t] tests/i915/gem_tiled_.*blits: skip the tests on newer gens

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Thu Jan 30 15:17:57 UTC 2020


Skip the tests on newer gens when no fences are available
and gem_set_tiling() cannot succeed.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/i915/gem_tiled_blits.c       | 1 +
 tests/i915/gem_tiled_fence_blits.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/i915/gem_tiled_blits.c b/tests/i915/gem_tiled_blits.c
index df0699f3..ba0920da 100644
--- a/tests/i915/gem_tiled_blits.c
+++ b/tests/i915/gem_tiled_blits.c
@@ -204,6 +204,7 @@ igt_main
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
 		gem_require_blitter(fd);
+		gem_require_mappable_ggtt(fd);
 
 		bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
 		drm_intel_bufmgr_gem_enable_reuse(bufmgr);
diff --git a/tests/i915/gem_tiled_fence_blits.c b/tests/i915/gem_tiled_fence_blits.c
index 93c79dc2..62fd1328 100644
--- a/tests/i915/gem_tiled_fence_blits.c
+++ b/tests/i915/gem_tiled_fence_blits.c
@@ -214,6 +214,7 @@ igt_main
 		fd = drm_open_driver(DRIVER_INTEL);
 		igt_require_gem(fd);
 		gem_require_blitter(fd);
+		gem_require_mappable_ggtt(fd);
 	}
 
 	igt_subtest("basic")
-- 
2.23.0



More information about the igt-dev mailing list