diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-04 22:22:23 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-05 00:04:29 +0000 |
commit | 212e55b9aa9e98a3ef63f37a50fd5b69761fbecd (patch) | |
tree | c3745d1b3e255ea59f346d4162c343f4252f3b4b /tests/i915/gem_exec_parallel.c | |
parent | 9c583f7e2a6638b5ff6a3682fea548a1313512e7 (diff) |
i915/gem_exec_parallel: Reopen the existing device
Avoid any unnecessary filtering inside drm_open_driver() by explicitly
reopening the same device.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/i915/gem_exec_parallel.c')
-rw-r--r-- | tests/i915/gem_exec_parallel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c index bdb8e3e9..1a988b95 100644 --- a/tests/i915/gem_exec_parallel.c +++ b/tests/i915/gem_exec_parallel.c @@ -77,7 +77,7 @@ static void *thread(void *data) pthread_mutex_unlock(t->mutex); if (t->flags & FDS) { - fd = drm_open_driver(DRIVER_INTEL); + fd = gem_reopen_driver(t->fd); gem_context_copy_engines(t->fd, 0, fd, 0); } else { fd = t->fd; |