This was causing excessive flushes, because requesting an out-fence fd
triggers the drm layer to flush deferred submits instead of continued
merging.
Fixes:
48b5164356c ("freedreno/drm: Return fence from submit flush")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20465>
bool use_fence_fd = false;
if (batch->fence)
- use_fence_fd = batch->fence;
+ use_fence_fd = batch->fence->use_fence_fd;
struct fd_fence *fence =
fd_submit_flush(batch->submit, batch->in_fence_fd, use_fence_fd);