fd_batch_check_size() should be after fd_batch_unlock_submit(),
otherwise batch_flush() called from fd_batch_check_size()
would wait on mutex forever.
Fixes:
02298ed1 "freedreno: Add submit lock"
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8205>
if (fd_mesa_debug & FD_DBG_DDRAW)
fd_context_all_dirty(ctx);
- fd_batch_check_size(batch);
fd_batch_unlock_submit(batch);
+ fd_batch_check_size(batch);
fd_batch_reference(&batch, NULL);
if (info == &new_info)
}
}
- fd_batch_check_size(batch);
fd_batch_unlock_submit(batch);
+ fd_batch_check_size(batch);
if (fallback) {
fd_blitter_clear(pctx, buffers, color, depth, stencil);