[igt-dev] [PATCH i-g-t] kms_fence_pin_leak: check for availabile fences

Ashutosh Dixit ashutosh.dixit at intel.com
Fri Feb 7 05:26:52 UTC 2020


Need fences to leak fences.

Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
 tests/kms_fence_pin_leak.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/kms_fence_pin_leak.c b/tests/kms_fence_pin_leak.c
index 8c9e10a56..1ac65e8a1 100644
--- a/tests/kms_fence_pin_leak.c
+++ b/tests/kms_fence_pin_leak.c
@@ -200,6 +200,7 @@ igt_simple_main
 
 	data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
 	igt_require_gem(data.drm_fd);
+	igt_require(gem_available_fences(data.drm_fd) > 0);
 
 	data.devid = intel_get_drm_devid(data.drm_fd);
 
-- 
2.25.0



More information about the igt-dev mailing list