From b0e8b6095be8ba994d3b6eb10aaa634cb8cea569 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 27 Apr 2017 09:18:03 +0100 Subject: 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 --- tests/gem_workarounds.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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); -- cgit v1.2.3