Module: Mesa Branch: main Commit: 6e60612d4275778afaa6175e3f70965eff8d31b3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e60612d4275778afaa6175e3f70965eff8d31b3
Author: Iván Briano <[email protected]> Date: Thu Feb 23 11:52:58 2023 -0800 vulkan: track the right value on CmdSetColorWriteMasks Fixes: 092be5a3290 ("vulkan: Add more dynamic color blend states") Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21509> --- src/vulkan/runtime/vk_graphics_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_graphics_state.c b/src/vulkan/runtime/vk_graphics_state.c index 36fb0be59d6..3679281e1ca 100644 --- a/src/vulkan/runtime/vk_graphics_state.c +++ b/src/vulkan/runtime/vk_graphics_state.c @@ -2542,7 +2542,7 @@ vk_common_CmdSetColorWriteMaskEXT(VkCommandBuffer commandBuffer, uint32_t a = firstAttachment + i; assert(a < ARRAY_SIZE(dyn->cb.attachments)); - SET_DYN_VALUE(dyn, CB_BLEND_EQUATIONS, + SET_DYN_VALUE(dyn, CB_WRITE_MASKS, cb.attachments[a].write_mask, pColorWriteMasks[i]); } }
