diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-12 16:39:21 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-12 23:57:32 +0100 |
commit | a742ebd9b4908c7eaca8a3d54f86b3d14583b5b5 (patch) | |
tree | 559daa24d06c8c26b1e89dc15d65714a9b013c51 /tests/gem_unfence_active_buffers.c | |
parent | 9d18e41efc423cb663a3617a04b5e662ecfb541d (diff) |
igt/gem_unfence_active_buffers: Check GEM before use
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 <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/gem_unfence_active_buffers.c')
-rw-r--r-- | tests/gem_unfence_active_buffers.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |