[igt-dev] [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use
Chris Wilson
chris at chris-wilson.co.uk
Thu Jul 12 15:37:08 UTC 2018
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 at chris-wilson.co.uk>
---
tests/gem_gpgpu_fill.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/gem_gpgpu_fill.c b/tests/gem_gpgpu_fill.c
index 8ef05a3f0..dfb581652 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);
--
2.18.0
More information about the igt-dev
mailing list