Message ID | 20200127091910.14446-2-tvrtko.ursulin@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [CI,i-g-t,1/2] lib/i915: Add helper for copying engine maps from one context to another | expand |
diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c index cfbe78070873..0d4d6c6283e0 100644 --- a/tests/i915/gem_exec_parallel.c +++ b/tests/i915/gem_exec_parallel.c @@ -83,10 +83,12 @@ static void *thread(void *data) pthread_cond_wait(t->cond, t->mutex); pthread_mutex_unlock(t->mutex); - if (t->flags & FDS) + if (t->flags & FDS) { fd = drm_open_driver(DRIVER_INTEL); - else + gem_context_copy_engines(t->fd, 0, fd, 0); + } else { fd = t->fd; + } i = 0; batch[i] = MI_STORE_DWORD_IMM | (t->gen < 6 ? 1 << 22 : 0);