turnip: move up LRZ invalidate in CmdClearAttachments
authorJonathan Marek <jonathan@marek.ca>
Thu, 3 Dec 2020 05:03:14 +0000 (00:03 -0500)
committerJonathan Marek <jonathan@marek.ca>
Tue, 8 Dec 2020 18:26:16 +0000 (13:26 -0500)
commitf24358e002de645388852dd85aee4b9b0d3d7652
treebe6a60bb8e1c5b46906ae1ee0195d7a7eb754683
parentaed7c5aa31f3896137a5cdd60f87c30cee3798b8
turnip: move up LRZ invalidate in CmdClearAttachments

There is an early return if cmd->state.predication_active is true, so do
the LRZ invalidate before that.

Fixes: 2f79e0066405 ("turnip: disable LRZ on vkCmdClearAttachments()")

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7899>
src/freedreno/vulkan/tu_clear_blit.c