radv: fix emitting RBPLUS state when MRTs are compacted
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 26 Sep 2022 09:44:13 +0000 (11:44 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 28 Sep 2022 11:48:16 +0000 (11:48 +0000)
commitbad75ed3f162880270a0593ad8c9b6753a228eb7
tree33db6b9e94159d68bfb2e9b36aecd74601395839
parent1dd5d94f65df53f67f01a013486653ec4de061c0
radv: fix emitting RBPLUS state when MRTs are compacted

The RBPLUS state needs the non-compacted SPI_SHADER_COL_FORMAT value,
otherwise the state is wrongly emitted if there is holes.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7348
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7319
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7365
Fixes: 8fcb4aa0ebd ("radv: compact MRTs to save PS export memory space")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18818>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h