Skip to content
Snippets Groups Projects
Commit fceead55 authored by Chris Wilson's avatar Chris Wilson :thinking:
Browse files

i915/gem_exec_balancer: Cleanup skipped bonded-sync phases


Since we create a few GPU objects in the locals, if we decided to skip
this bonded-sync phase, we need to jump to the cleanup.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Acked-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
parent ad5a470c
No related branches found
No related tags found
No related merge requests found
......@@ -1444,17 +1444,13 @@ static void __bonded_sync(int i915,
.flags = EXEC_OBJECT_PINNED
};
unsigned long cycles = 0;
int timeline;
int timeline = sw_sync_timeline_create();
if (!(flags & B_HOSTILE)) { /* always non-preemptible */
*out = 0;
return;
}
if (!(flags & B_HOSTILE)) /* always non-preemptible */
goto out;
set_load_balancer(i915, execbuf.rsvd1, siblings, count, NULL);
timeline = sw_sync_timeline_create();
srandom(getpid());
igt_until_timeout(2) {
int master;
......@@ -1504,6 +1500,7 @@ static void __bonded_sync(int i915,
igt_swap(a, b);
}
out:
close(timeline);
gem_close(i915, a.handle);
gem_close(i915, b.handle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment