Commit 8930e836 authored by Rob Clark's avatar Rob Clark 💬

freedreno: fix potential hang when destroying batch

batch_flush_reset_dependencies() expects to be called unlocked, and can
call fd_batch_reference() which can try to aquire the screen lock again.
Signed-off-by: Rob Clark's avatarRob Clark <robdclark@gmail.com>
parent ef6d15f8
......@@ -235,10 +235,10 @@ __fd_batch_destroy(struct fd_batch *batch)
debug_assert(batch->resources->entries == 0);
_mesa_set_destroy(batch->resources, NULL);
fd_context_unlock(ctx);
batch_flush_reset_dependencies(batch, false);
debug_assert(batch->dependents_mask == 0);
fd_context_unlock(ctx);
util_copy_framebuffer_state(&batch->framebuffer, NULL);
batch_fini(batch);
free(batch);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment