diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-27 09:18:03 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-27 09:28:10 +0100 |
commit | b0e8b6095be8ba994d3b6eb10aaa634cb8cea569 (patch) | |
tree | 09da5f713a58bfe426b0c2c71851bb6dca58c076 /tests/gem_workarounds.c | |
parent | 1a61cf4da0490d3a41793afa2f70833fcfed5195 (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>
Diffstat (limited to 'tests/gem_workarounds.c')
-rw-r--r-- | tests/gem_workarounds.c | 2 |
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); |