[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_schedule: Resolve missing context for independent subtest

Arjun Melkaveri arjun.melkaveri at intel.com
Mon Aug 30 19:59:10 UTC 2021


Resolved missing context id in exec buf, and passing created context
to igt spin .
This change would fix test assertion in gem_execbuf for independent
subtest

v2: Passing original ctx id to gem_execbuf

Signed-off-by: Arjun Melkaveri <arjun.melkaveri at intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
 tests/i915/gem_exec_schedule.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
index 62d616f3..e694482f 100644
--- a/tests/i915/gem_exec_schedule.c
+++ b/tests/i915/gem_exec_schedule.c
@@ -390,12 +390,13 @@ static void independent(int fd, const intel_ctx_t *ctx, unsigned int engine,
 			struct drm_i915_gem_execbuffer2 eb = {
 				.buffer_count = 1,
 				.buffers_ptr = to_user_pointer(&spin->obj[IGT_SPIN_BATCH]),
+				.rsvd1 = ctx->id,
 				.flags = e->flags,
 			};
 			gem_execbuf(fd, &eb);
 		}
 
-		store_dword_fenced(fd, ahnd, ctx, e->flags,
+		store_dword_fenced(fd, ahnd, tmp_ctx, e->flags,
 				   scratch, scratch_offset,
 				   0, e->flags, fence, 0);
 	}
-- 
2.25.1



More information about the igt-dev mailing list