freedreno/drm: Allow submit merging with explicit sync

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20263>
This commit is contained in:
Rob Clark 2022-12-03 08:23:05 -08:00 committed by Marge Bot
parent 87f89a0383
commit 1bf88d0bf9

View file

@ -297,6 +297,12 @@ fd_submit_sp_flush(struct fd_submit *submit, int in_fence_fd,
bool has_shared = fd_submit_sp_flush_prep(submit, in_fence_fd, out_fence);
/* The rule about skipping submit merging with shared buffers is only
* needed for implicit-sync.
*/
if (pipe->no_implicit_sync)
has_shared = false;
assert(fd_fence_before(pipe->last_enqueue_fence, submit->fence));
pipe->last_enqueue_fence = submit->fence;