summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-04-27 09:18:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-04-27 09:28:10 +0100
commitb0e8b6095be8ba994d3b6eb10aaa634cb8cea569 (patch)
tree09da5f713a58bfe426b0c2c71851bb6dca58c076
parent1a61cf4da0490d3a41793afa2f70833fcfed5195 (diff)
igt/gem_workarounds: Mark up the requirement for an active GPU
We need to use the GPU to read back the registers using GPU commands, ergo we need igt_require_gem() to check the GPU is alive first. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/gem_workarounds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_workarounds.c b/tests/gem_workarounds.c
index 5d2a1086..c7286d86 100644
--- a/tests/gem_workarounds.c
+++ b/tests/gem_workarounds.c
@@ -132,6 +132,8 @@ igt_main
size_t line_size;
int i, fd;
+ igt_require_gem(device);
+
pci_dev = intel_get_pci_device();
igt_require(pci_dev);