summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-08-07 09:41:53 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-08-07 15:09:28 +0100
commit9f0977284d54ed37496260988dfcd6d2ad72dd1e (patch)
tree73723a3d8a5e9c2d86148281eccf86579536a998
parent0f91c80b4c809cf48afff65a2ea68590389aa5ba (diff)
i915/gem_exec_fence: Use default-context for syncobj-timeline-wait
syncobj-timeline-wait is only exercising waits on the syncobj along a single timeline, for which it can use the universally available default context, and so not try and fail to create a HW context on very old platforms. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2308 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-rw-r--r--tests/i915/gem_exec_fence.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/i915/gem_exec_fence.c b/tests/i915/gem_exec_fence.c
index c9b95fe6..b240c30b 100644
--- a/tests/i915/gem_exec_fence.c
+++ b/tests/i915/gem_exec_fence.c
@@ -1970,7 +1970,6 @@ static void test_syncobj_timeline_wait(int fd)
MI_BATCH_BUFFER_END,
MI_NOOP,
};
- uint32_t gem_context = gem_context_clone_with_engines(fd, 0);
struct drm_i915_gem_exec_object2 obj;
struct drm_i915_gem_execbuffer2 execbuf;
struct drm_i915_gem_execbuffer_ext_timeline_fences timeline_fences;
@@ -1988,7 +1987,7 @@ static void test_syncobj_timeline_wait(int fd)
gem_quiescent_gpu(fd);
- spin = igt_spin_new(fd, .ctx = gem_context, .engine = ALL_ENGINES);
+ spin = igt_spin_new(fd, .engine = ALL_ENGINES);
memset(&timeline_fences, 0, sizeof(timeline_fences));
timeline_fences.base.name = DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES;
@@ -2000,7 +1999,6 @@ static void test_syncobj_timeline_wait(int fd)
execbuf.buffers_ptr = to_user_pointer(&obj);
execbuf.buffer_count = 1;
execbuf.batch_len = sizeof(bbe);
- execbuf.rsvd1 = gem_context;
memset(&obj, 0, sizeof(obj));
obj.handle = gem_create(fd, 4096);
@@ -2055,8 +2053,6 @@ static void test_syncobj_timeline_wait(int fd)
gem_sync(fd, handle[i]);
gem_close(fd, handle[i]);
}
-
- gem_context_destroy(fd, gem_context);
}
static const char *test_syncobj_timeline_export_desc =