turnip: add cache invalidate to fix input attachment cases
authorJonathan Marek <jonathan@marek.ca>
Tue, 17 Dec 2019 22:59:45 +0000 (17:59 -0500)
committerJonathan Marek <jonathan@marek.ca>
Thu, 19 Dec 2019 00:03:37 +0000 (19:03 -0500)
commit4a59bc6df2baf3be1d8bc8dbcd04b7b02df13560
tree9ede7a886e787402ac28f874cafe29b76a3da26a
parentfc2552b6445a1295c18acf8798411da85bbc5387
turnip: add cache invalidate to fix input attachment cases

Fixes artifacts in the subpasses demo.

Workaround texture cache with input attachments from GMEM by adding a cache
invalidate between subpasses.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3143>
src/freedreno/vulkan/tu_cmd_buffer.c