[igt-dev] [PATCH i-g-t 1/1] i915/gem_blits: Add check for hardware based FENCE support

Ayaz A Siddiqui ayaz.siddiqui at intel.com
Wed Feb 5 10:21:36 UTC 2020


This test is verifying various tiled source and destination data
combination for blitter using FENCE based tiling. Since blitter don't use
FENCE after Gen4+ so this test can only be useful for Platform prior to Gen4.

A check has been added to skip this test if fences are not available in
platform.

Signed-off-by: Ayaz A Siddiqui <ayaz.siddiqui at intel.com>
---
 tests/i915/gem_blits.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_blits.c b/tests/i915/gem_blits.c
index f9cb12bb..cc24a6c8 100644
--- a/tests/i915/gem_blits.c
+++ b/tests/i915/gem_blits.c
@@ -722,10 +722,12 @@ igt_main
 		device.fd = drm_open_driver_render(DRIVER_INTEL);
 		igt_require_gem(device.fd);
 		gem_require_blitter(device.fd);
+		igt_require(gem_available_fences(device.fd) > 0);
 
 		device.pciid = intel_get_drm_devid(device.fd);
 		device.gen = intel_gen(device.pciid);
 		device.llc = gem_has_llc(device.fd);
+
 	}
 
 	igt_subtest("basic") {
-- 
2.24.0



More information about the igt-dev mailing list