freedreno/drm: Simplify deferred submit flushing
authorRob Clark <robdclark@chromium.org>
Wed, 14 Dec 2022 21:18:14 +0000 (13:18 -0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 19:14:12 +0000 (19:14 +0000)
commit932ce591ac70c920d62543c3e9018a0acbef134f
treebf2a84494e792584a2ffc926171d2d325dd94b08
parent48b5164356c3ffe15182be92db9fd28baa1d1b35
freedreno/drm: Simplify deferred submit flushing

Once we are sharing an out-fence for multiple deferred/merged submits
the complicated logic in fd_pipe_sp_flush() no longer works (or makes
sense), so just simplify all the paths into a single helper.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20263>
src/freedreno/drm/freedreno_device.c
src/freedreno/drm/freedreno_ringbuffer_sp.c