If the device doesn't support contexts, we expect them to fail with
-ENODEV before reporting -EIO if wedged.

Signed-off-by: Chris Wilson <[email protected]>
---
 tests/i915/gem_eio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c
index 21bf64285..292508521 100644
--- a/tests/i915/gem_eio.c
+++ b/tests/i915/gem_eio.c
@@ -122,6 +122,8 @@ static void test_context_create(int fd)
 {
        uint32_t ctx;
 
+       gem_require_contexts(fd);
+
        wedge_gpu(fd);
 
        igt_assert_eq(__gem_context_create(fd, &ctx), -EIO);
-- 
2.20.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to