turnip: Allow load/store skipping in vkCmdClearAttachments().
authorEmma Anholt <emma@anholt.net>
Wed, 1 Jun 2022 22:01:44 +0000 (15:01 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Jun 2022 00:00:28 +0000 (00:00 +0000)
commita92fad45e9580bacc070843b158bc1ac6f7ce647
tree0025742b2d675c0f12a2375d2f2dc52369aefa02
parentb8619ef343fbeba5ec9cad558d3b0f15f93ef34b
turnip: Allow load/store skipping in vkCmdClearAttachments().

We have to use a 3D draw to make it possible (so it goes through the
binner's visibility calcs), but hopefully the increased overhead for apps
with non-skippable rendering balances against skipping in others.

The real motivation is to get draw-time state out of tile load setup.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16826>
src/freedreno/vulkan/tu_clear_blit.c
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_pass.c
src/freedreno/vulkan/tu_private.h