From a742ebd9b4908c7eaca8a3d54f86b3d14583b5b5 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 12 Jul 2018 16:39:21 +0100 Subject: igt/gem_unfence_active_buffers: Check GEM before use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As we want to make the buffers active on the GPU before removing their fence, an operational GPU (not wedged!) is required. Signed-off-by: Chris Wilson Reviewed-by: Ville Syrjälä --- tests/gem_unfence_active_buffers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/gem_unfence_active_buffers.c') diff --git a/tests/gem_unfence_active_buffers.c b/tests/gem_unfence_active_buffers.c index 6df23cc5..b78fbafa 100644 --- a/tests/gem_unfence_active_buffers.c +++ b/tests/gem_unfence_active_buffers.c @@ -74,6 +74,7 @@ igt_simple_main data[i] = i; fd = drm_open_driver(DRIVER_INTEL); + igt_require_gem(fd); bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); drm_intel_bufmgr_gem_enable_reuse(bufmgr); -- cgit v1.2.3