tu: Fix DST_INCOHERENT_FLUSH copy/paste error
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 7 Jul 2020 15:10:44 +0000 (17:10 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 4 Aug 2020 13:37:51 +0000 (15:37 +0200)
commit9e48e31fa544582682bf8fae26eabb9bba023dde
treecebdd0be119c13e91b1ff3dacc25bb06422bc866
parent95db96d75b495f5aa6f399d782c50ebc01696d2c
tu: Fix DST_INCOHERENT_FLUSH copy/paste error

This was meant to handle incoherent accesses by always flushing them,
but it accidentally checked for the coherent variant instead. As a
result e.g. a vkCmdClearImage() followed by a renderpass using the image
didn't get any flushes, resulting in the same sort of corruption seen
with sysmem renderpass clears. This happened to be exposed via some
tests that used multiview.

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