[igt-dev] [PATCH i-g-t 1/2] test/i915: gem_ctx_exec: Fix for using context engine map

Venkata Sandeep Dhanalakota venkata.s.dhanalakota at intel.com
Tue Nov 19 11:01:16 UTC 2019


Since engines are now looked up based on context engine map,
context should be setup with engines before using in execbuf.

Fixes: 1a7f2e59 igt("gem_ctx_exec: use the gem_engine_topology"

Cc: Andi Shyti <andi.shyti at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin at linux.intel.com>
Signed-off-by: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota at intel.com>
---
 tests/i915/gem_ctx_exec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c
index 6c2cd922..2bf47cf2 100644
--- a/tests/i915/gem_ctx_exec.c
+++ b/tests/i915/gem_ctx_exec.c
@@ -132,6 +132,7 @@ static void invalid_context(int fd, const struct intel_execution_engine2 *e,
 	gem_execbuf(fd, &execbuf);
 
 	ctx = gem_context_create(fd);
+	gem_context_set_all_engines(fd, ctx);
 	i915_execbuffer2_set_context_id(execbuf, ctx);
 	gem_execbuf(fd, &execbuf);
 
-- 
2.21.0.5.gaeb582a983



More information about the igt-dev mailing list