From 2da7b58139ed7996a6b1bad1effec1e1199f1b39 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 37cb170e2ba..f4a5d23a1c6 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -742,7 +742,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 80889b6ede0..f2c5c716d61 100644 --- a/src/vulkan/runtime/vk_graphics_state.c +++ b/src/vulkan/runtime/vk_graphics_state.c @@ -2527,7 +2527,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]); } }