summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-04-22 21:43:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-04-22 21:45:27 +0100
commit1cdffe82db194909cc51bf8592794640e996acd3 (patch)
tree2d14fd2e1e6c7cf5c14a9d8b277c5963b0446c2a /lib/igt_dummyload.c
parentd9c856aef15280f49270158e801755cca0198577 (diff)
lib: spinning batches requires working GEM, so add the precheck
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r--lib/igt_dummyload.c2
1 files changed, 2 insertions, 0 deletions
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);