tu: Remove useless post-binning flushes
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 9 Jun 2020 13:25:40 +0000 (15:25 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 9 Jun 2020 14:40:51 +0000 (14:40 +0000)
commitdfb176a0acf2326d36d4867fc43751e1b7d0d66f
tree0bb9c43bbe668ba07d697b8e943b9384ab06da44
parent18c067f9f099d54eee1d5713b24ecca52295987c
tu: Remove useless post-binning flushes

The Vulkan blob doesn't do this, and based on my understanding of how
the blob works this is unnecessary. CACHE_FLUSH is already serialized
against all 3d commands so you don't need to wait for rendering commands
to finish before issuing it, and the subsequent wfi + WAIT_FOR_ME will
cause the CP to wait for the CACHE_FLUSH to finish, so there's also no
need to wait for it to complete. The CACHE_INVALIDATE also seems
unnecessary, and also isn't done by the blob.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4964>
src/freedreno/vulkan/tu_cmd_buffer.c