freedreno/drm: Move no_implicit_sync accounting
No need to duplicate this. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20263>
This commit is contained in:
@@ -302,6 +302,9 @@ fd_submit_sp_flush(struct fd_submit *submit, int in_fence_fd, bool use_fence_fd)
|
||||
|
||||
bool has_shared = fd_submit_sp_flush_prep(submit, in_fence_fd, out_fence);
|
||||
|
||||
if ((in_fence_fd != -1) || out_fence->use_fence_fd)
|
||||
pipe->no_implicit_sync = true;
|
||||
|
||||
/* The rule about skipping submit merging with shared buffers is only
|
||||
* needed for implicit-sync.
|
||||
*/
|
||||
|
||||
@@ -105,7 +105,6 @@ flush_submit_list(struct list_head *submit_list)
|
||||
if (fd_submit->in_fence_fd != -1) {
|
||||
req.flags |= MSM_SUBMIT_FENCE_FD_IN;
|
||||
req.fence_fd = fd_submit->in_fence_fd;
|
||||
pipe->no_implicit_sync = true;
|
||||
}
|
||||
|
||||
if (pipe->no_implicit_sync) {
|
||||
|
||||
@@ -183,10 +183,6 @@ flush_submit_list(struct list_head *submit_list)
|
||||
*/
|
||||
out_fence->use_fence_fd = true;
|
||||
|
||||
if (fd_submit->in_fence_fd != -1) {
|
||||
pipe->no_implicit_sync = true;
|
||||
}
|
||||
|
||||
if (pipe->no_implicit_sync) {
|
||||
req->flags |= MSM_SUBMIT_NO_IMPLICIT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user