summaryrefslogtreecommitdiff
path: root/tests/gem_pipe_control_store_loop.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-04-03 12:02:17 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-04-03 12:03:15 +0100
commit537e0b848660c65b9d235f5576f29ddea3629b07 (patch)
tree3595ad91b02523da713f99ea94cb9e4890f45bbd /tests/gem_pipe_control_store_loop.c
parent9f92893b11e83ed9ec71c3084ccb57f74b18705e (diff)
tests: More precautionary selfchecks to filter out broken GPUs
If the driver is already wedged, trying to use GEM will only result in misleading failure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_pipe_control_store_loop.c')
-rw-r--r--tests/gem_pipe_control_store_loop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_pipe_control_store_loop.c b/tests/gem_pipe_control_store_loop.c
index a155ad14..db23e33d 100644
--- a/tests/gem_pipe_control_store_loop.c
+++ b/tests/gem_pipe_control_store_loop.c
@@ -161,6 +161,8 @@ igt_main
{
igt_fixture {
fd = drm_open_driver(DRIVER_INTEL);
+ igt_require_gem(fd);
+
devid = intel_get_drm_devid(fd);
bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);