Commit 2b7dd10a authored by Chris Wilson's avatar Chris Wilson

i915/gem_eio: Not everyone actually has contexts!

Eek, I assumed the 'banned' subtest only applied to context platforms,
it doesn't. The basic test works for all, checking whether a second
context works after the first is banned however only applies to
platforms with contexts!
Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Antonio Argenziano's avatarAntonio Argenziano <antonio.argenziano@intel.com>
parent 8ca0b308
Pipeline #20595 failed with stages
in 8 minutes and 57 seconds
......@@ -331,13 +331,13 @@ static void __test_banned(int fd)
/* Only this context, not the file, should be banned */
igt_assert_neq(__gem_context_create(fd, &ctx), -EIO);
igt_assert_neq(ctx, 0);
if (ctx) { /* remember the contextless! */
/* And check it actually works! */
execbuf.rsvd1 = ctx;
gem_execbuf(fd, &execbuf);
/* And check it actually works! */
execbuf.rsvd1 = ctx;
gem_execbuf(fd, &execbuf);
gem_context_destroy(fd, ctx);
gem_context_destroy(fd, ctx);
}
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment