Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_shared: Resolve missing context for exec_shared_gtt
@ 2021-11-01 19:43 Arjun Melkaveri
  2021-11-01 21:18 ` Dixit, Ashutosh
  2021-11-01 22:25 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Arjun Melkaveri @ 2021-11-01 19:43 UTC (permalink / raw)
  To: arjun.melkaveri, igt-dev

Resolved missing context id in exec buf by passing first context i.e
ctx[0].

This change would fix test assertion in gem_execbuf for
"exec_shared_gtt" subtest.

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

diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
index ea1b5dd1..3bf700fe 100644
--- a/tests/i915/gem_ctx_shared.c
+++ b/tests/i915/gem_ctx_shared.c
@@ -277,6 +277,7 @@ static void exec_shared_gtt(int i915, const intel_ctx_cfg_t *cfg,
 	scratch = gem_create(i915, 16384);
 	gem_write(i915, scratch, 0, &bbe, sizeof(bbe));
 	obj.handle = scratch;
+	execbuf.rsvd1 = ctx[0]->id;
 	gem_execbuf(i915, &execbuf);
 	obj.flags |= EXEC_OBJECT_PINNED; /* reuse this address */
 	execbuf.rsvd1 = ctx[1]->id; /* and bind the second context image */
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-01 22:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-01 19:43 [igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_shared: Resolve missing context for exec_shared_gtt Arjun Melkaveri
2021-11-01 21:18 ` Dixit, Ashutosh
2021-11-01 22:25 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox