tu: Support resolve ops with sysmem rendering
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 6 Feb 2020 16:57:20 +0000 (17:57 +0100)
committerJonathan Marek <jonathan@marek.ca>
Thu, 13 Feb 2020 02:37:01 +0000 (21:37 -0500)
commitc1b3f9e83297494fb0ea5d41077c60a33daf37c9
treefb8718b44dadbecb666d8f8b368fcfd16974004a
parent8647a24a8d66a0a3663563d4d713a5a5b28d8d64
tu: Support resolve ops with sysmem rendering

Similar to vkCmdClearAttachments(), we use CP_COND_REG_EXEC to
conditionally execute both the gmem and sysmem paths, except for after
the last subpass where it's known whether we're using sysmem rendering
or not.

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