[igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_exec_schedule: Execute spinner in valid context
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Tue May 31 10:30:33 UTC 2022
Running spinner in default context is not correct because it can
contain less engines than spinner expect. Fix this by setting
appropriate context for this spinner.
Fixes: semaphore-noskip and u-semaphore-noskip
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
tests/i915/gem_exec_schedule.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
index 43d9d06c09..8a2a4c0994 100644
--- a/tests/i915/gem_exec_schedule.c
+++ b/tests/i915/gem_exec_schedule.c
@@ -1269,6 +1269,7 @@ static void semaphore_noskip(int i915, const intel_ctx_cfg_t *cfg,
eb.buffer_count = 2;
eb.buffers_ptr = to_user_pointer(obj);
eb.flags = inner->flags;
+ eb.rsvd1 = ctx->id;
gem_execbuf(i915, &eb);
igt_spin_set_timeout(chain, NSEC_PER_SEC / 100);
--
2.32.0
More information about the igt-dev
mailing list