[igt-dev] [PATCH i-g-t v2 1/1] tests/i915/gem_exec_parallel:Set engine map to default context
Sreedhar Telukuntla
sreedhar.telukuntla at intel.com
Fri Jan 24 14:16:31 UTC 2020
Set the potential engine map of the parent client's default
context to the newly created DRM client's default context.
Without doing so there is a mismatch between the intended
and actual engine used by the *-fds subtests.
v2: Fix FDS flags check
Signed-off-by: Sreedhar Telukuntla <sreedhar.telukuntla at intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
tests/i915/gem_exec_parallel.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c
index 56b26cf4..ddb34368 100644
--- a/tests/i915/gem_exec_parallel.c
+++ b/tests/i915/gem_exec_parallel.c
@@ -130,6 +130,8 @@ static void *thread(void *data)
execbuf.rsvd1 = gem_context_create(fd);
gem_context_set_all_engines(fd, execbuf.rsvd1);
}
+ if (t->flags & FDS)
+ gem_context_set_all_engines(fd, 0);
for (i = 0; i < 16; i++) {
obj[0].handle = t->scratch[i];
--
2.24.1
More information about the igt-dev
mailing list