From ec5de835c224e3d4873106a1a82cd8972983737a 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: (cherry picked from commit 6e60612d4275778afaa6175e3f70965eff8d31b3) --- .pick_status.json | 2 +- src/vulkan/runtime/vk_graphics_state.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 0d565538599..53e0e6ffbfa 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -5944,7 +5944,7 @@ "description": "vulkan: track the right value on CmdSetColorWriteMasks", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "092be5a32905989f620ff1926c2e3056fc4fea39" }, 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]); } }