[igt-dev] [PATCH i-g-t] tests/i915/gem_threaded_access_tiled: Require fences

Antonio Argenziano antonio.argenziano at intel.com
Fri Feb 14 00:40:37 UTC 2020


The test tries to allocate tiled objects which is not possible without
fences.

Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Dixit, Ashutosh <ashutosh.dixit at intel.com>
---
 tests/i915/gem_threaded_access_tiled.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_threaded_access_tiled.c b/tests/i915/gem_threaded_access_tiled.c
index 64a00026..6442d589 100644
--- a/tests/i915/gem_threaded_access_tiled.c
+++ b/tests/i915/gem_threaded_access_tiled.c
@@ -98,6 +98,8 @@ igt_simple_main
 	fd = drm_open_driver(DRIVER_INTEL);
 	igt_assert(fd >= 0);
 
+	igt_require(gem_available_fences(fd) > 0);
+
 	bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
 	igt_assert(bufmgr);
 
-- 
2.21.0



More information about the igt-dev mailing list