[igt-dev] [PATCH i-g-t 10/24] kms_fence_pin_leak: Ask for the GPU before use

Chris Wilson
2019-03-22T09:21:41Z

Check that the GPU even exists before submitting a batch.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109589
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
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 62c52b627..e6c8b33c3 100644
--- a/tests/kms_fence_pin_leak.c
+++ b/tests/kms_fence_pin_leak.c
@@ -201,6 +201,7 @@ igt_simple_main
igt_skip_on_simulation();

data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
+ igt_require_gem(data.drm_fd);

data.devid = intel_get_drm_devid(data.drm_fd);

--
2.20.1