From 6e60612d4275778afaa6175e3f70965eff8d31b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Briano?= Date: Thu, 23 Feb 2023 11:52:58 -0800 Subject: [PATCH] vulkan: track the right value on CmdSetColorWriteMasks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: 092be5a3290 ("vulkan: Add more dynamic color blend states") Reviewed-by: Lionel Landwerlin Reviewed-by: Tapani Pälli Part-of: --- 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]); } }