From ce0c70fb0c696d311e624fadc3890dad0534d8c5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 10 Aug 2023 09:16:34 +0200 Subject: [PATCH] vulkan: ignore VkPipelineColorWriteCreateInfoEXT if the state is dynamic Cc: mesa-stable Signed-off-by: Samuel Pitoiset Reviewed-by: Lionel Landwerlin Reviewed-by: Faith Ekstrand 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 04114fe3362..22935ffd8a2 100644 --- a/src/vulkan/runtime/vk_graphics_state.c +++ b/src/vulkan/runtime/vk_graphics_state.c @@ -983,7 +983,7 @@ vk_color_blend_state_init(struct vk_color_blend_state *cb, const VkPipelineColorWriteCreateInfoEXT *cw_info = vk_find_struct_const(cb_info->pNext, PIPELINE_COLOR_WRITE_CREATE_INFO_EXT); - if (cw_info != NULL) { + if (!IS_DYNAMIC(CB_COLOR_WRITE_ENABLES) && cw_info != NULL) { uint8_t color_write_enables = 0; assert(cb_info->attachmentCount == cw_info->attachmentCount); for (uint32_t a = 0; a < cw_info->attachmentCount; a++) {