diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-12 16:22:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-12 20:12:18 +0100 |
commit | 3806547319038879f1c7939671b9e35937f0cae6 (patch) | |
tree | 004f9ba828e1ceecd2f579183b2a285aa2b7d32d /tests | |
parent | 9d25d62bb6ff62694e5226b02d79075eab304402 (diff) |
igt/gem_gpgpu_fill: Check for GEM before use
As we need GEM and the GPU to do a GPGPU fill, we should check that it
is operable before using -- skipping rather than failing when the device
is wedged.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_gpgpu_fill.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_gpgpu_fill.c b/tests/gem_gpgpu_fill.c index 8ef05a3f..dfb58165 100644 --- a/tests/gem_gpgpu_fill.c +++ b/tests/gem_gpgpu_fill.c @@ -104,6 +104,7 @@ igt_simple_main data.drm_fd = drm_open_driver_render(DRIVER_INTEL); data.devid = intel_get_drm_devid(data.drm_fd); + igt_require_gem(data.drm_fd); data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096); igt_assert(data.bufmgr); |