summaryrefslogtreecommitdiff
path: root/tests/gem_ppgtt.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-04-08 00:32:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-04-08 00:34:08 +0100
commitc3268d9a2698c7e91de48600283c701473f4c85d (patch)
treeddae71da987bb1ed66dc97df6c66c65612e04bef /tests/gem_ppgtt.c
parentd7db79d971b8f1bb2177d14718b136789b337d39 (diff)
tests: More require GEM markup
A few more tests that use i915/gem without first checking that the GPU is working. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_ppgtt.c')
-rw-r--r--tests/gem_ppgtt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gem_ppgtt.c b/tests/gem_ppgtt.c
index 37d601ce..bed95db8 100644
--- a/tests/gem_ppgtt.c
+++ b/tests/gem_ppgtt.c
@@ -297,6 +297,12 @@ int main(int argc, char **argv)
{
igt_subtest_init(argc, argv);
+ igt_fixture {
+ int fd = drm_open_driver(DRIVER_INTEL);
+ igt_require_gem(fd);
+ close(fd);
+ }
+
igt_subtest("blt-vs-render-ctx0") {
drm_intel_bo *bcs[1], *rcs[N_CHILD];