tu: Rewrite remaining pipeline LRZ handling
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 11 Sep 2023 15:56:38 +0000 (17:56 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 19:03:56 +0000 (19:03 +0000)
commit1d74af8bb64ea59eb7b4e0a2c2332c07ad34007e
tree9bbb18f2bc0f1da0d450490c394f2cb00ee74e84
parent41797b9e94d5fc432b8650ea028725e6cfed37b5
tu: Rewrite remaining pipeline LRZ handling

Now that the FS-specific parts are split out, the only remaining part is
the blend state part. Use the same state that we use for dynamic
blending for static blending, eliminating the last use of the pipeline
in the LRZ code. While we're at it fix a bug where dynamic blending
didn't always disable LRZ writes (even though it only mattered with a
non-conformant debug flag because we invalidated LRZ anyway).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25276>
src/freedreno/vulkan/tu_cmd_buffer.cc
src/freedreno/vulkan/tu_cmd_buffer.h
src/freedreno/vulkan/tu_lrz.cc
src/freedreno/vulkan/tu_pipeline.cc
src/freedreno/vulkan/tu_pipeline.h