llvmpipe: fix handling of unused color attachments
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 23 Mar 2023 16:48:53 +0000 (12:48 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 30 Mar 2023 12:04:22 +0000 (12:04 +0000)
commitdb1371cce1d4e0f0f4fa2518379db78efde53ea4
tree8b33a8c1007d610effe28af814d74ca20aab894b
parent6a5dcd2776fe70acb2d4699b4af01c6a3cb015f6
llvmpipe: fix handling of unused color attachments

if an attachment doesn't have blending or color output from the shader,
nothing should touch the attachment

this is consistent with vulkan spec and needed for upcoming cts coverage

cc: mesa-stable

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22135>
src/gallium/drivers/llvmpipe/lp_state_fs.c