diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-04-07 13:41:16 -0500 |
---|---|---|
committer | Jason Ekstrand <jason@jlekstrand.net> | 2021-07-08 12:45:33 -0500 |
commit | 6335332b420bc4fe7a125be2e938b9fcc927e86f (patch) | |
tree | ee16038606991be0a996ea6c7c0ae340ab1eca99 | |
parent | 6b93a057ee5ba51145d19517518406acda789811 (diff) |
tests/i915/gem_ctx_exec: Stop cloning contexts in close_race
Nothing in this subtest sets the set of engines on ctx0 so there's no
point in cloning them.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Zbigniew KempczyĆski <zbigniew.kempczynski@intel.com>
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-rw-r--r-- | tests/i915/gem_ctx_exec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c index a8616f95..6db2d598 100644 --- a/tests/i915/gem_ctx_exec.c +++ b/tests/i915/gem_ctx_exec.c @@ -351,7 +351,7 @@ static void close_race(int i915) igt_assert(contexts != MAP_FAILED); for (int child = 0; child < ncpus; child++) - contexts[child] = gem_context_clone_with_engines(i915, 0); + contexts[child] = gem_context_create(i915); igt_fork(child, ncpus) { spin = __igt_spin_new(i915, .flags = IGT_SPIN_POLL_RUN); @@ -405,8 +405,7 @@ static void close_race(int i915) */ for (int child = 0; child < ncpus; child++) { gem_context_destroy(i915, contexts[child]); - contexts[child] = - gem_context_clone_with_engines(i915, 0); + contexts[child] = gem_context_create(i915); } usleep(1000 + hars_petruska_f54_1_random_unsafe() % 2000); } |