From 6d341aac2124836443ce74e8e97a4508ac8d5095 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 13 Jul 2018 18:28:29 +0100 Subject: igt/gem_pwrite_snooped: Check for GEM before use As we try to blit into the buffer to check CPU<->GPU snooping, we have to check we have a functional GPU first. Signed-off-by: Chris Wilson Reviewed-by: Vinay Belgaumkar --- tests/gem_pwrite_snooped.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/gem_pwrite_snooped.c b/tests/gem_pwrite_snooped.c index b1933956..47ccce8b 100644 --- a/tests/gem_pwrite_snooped.c +++ b/tests/gem_pwrite_snooped.c @@ -130,6 +130,8 @@ igt_simple_main igt_skip_on_simulation(); fd = drm_open_driver(DRIVER_INTEL); + igt_require_gem(fd); + devid = intel_get_drm_devid(fd); bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); -- cgit v1.2.3