freedreno: clear last_fence after resource tracking
authorRob Clark <robdclark@chromium.org>
Sat, 23 May 2020 17:52:52 +0000 (10:52 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 26 May 2020 19:14:22 +0000 (19:14 +0000)
commit8728c42031379be979e56a457a178ce6a5b87b08
tree2e6cd108238f712c9be789375f380ce3d87bc9e8
parent4c97a716a64a0d4990a2cc2f8185713459576ca4
freedreno: clear last_fence after resource tracking

The resource tracking in the clear/draw_vbo/blit paths could itself
trigger a flush.  Which would update last_fence.  So we need to clear
last_fence *after* all the dependency tracking.

Fixes: ddb7fadaf8b ("freedreno: avoid no-op flushes by re-using last-fence")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2992
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5188>
src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
src/gallium/drivers/freedreno/freedreno_draw.c