From 1cdffe82db194909cc51bf8592794640e996acd3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 22 Apr 2017 21:43:08 +0100 Subject: lib: spinning batches requires working GEM, so add the precheck Signed-off-by: Chris Wilson --- lib/igt_dummyload.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c index b25e023a..a95b2462 100644 --- a/lib/igt_dummyload.c +++ b/lib/igt_dummyload.c @@ -163,6 +163,8 @@ igt_spin_batch_new(int fd, int engine, unsigned int dep_handle) { igt_spin_t *spin; + igt_require_gem(fd); + spin = calloc(1, sizeof(struct igt_spin)); igt_assert(spin); -- cgit v1.2.3