Module: Mesa
Branch: main
Commit: 53efd35acca14858666365c7e6772708ec8b2f42
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=53efd35acca14858666365c7e6772708ec8b2f42

Author: Gert Wollny <gert.wol...@collabora.com>
Date:   Tue Dec 12 13:01:12 2023 +0100

zink: Don't pass a blend state when we have full ds3 support

The blend state is considered to be dynamic when no
VkPipelineColorBlendStateCreateInfo  is passed in at pipeline creation.

Fixes:
 VUID-VkGraphicsPipelineCreateInfo-renderPass-06055 when running
  "Quern - Undying thoughts" when the GFX level enables blending.

Signed-off-by: Gert Wollny <gert.wol...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26718>

---

 src/gallium/drivers/zink/zink_pipeline.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_pipeline.c 
b/src/gallium/drivers/zink/zink_pipeline.c
index 3186ba5e5cf..dc7de3443d3 100644
--- a/src/gallium/drivers/zink/zink_pipeline.c
+++ b/src/gallium/drivers/zink/zink_pipeline.c
@@ -617,7 +617,8 @@ zink_create_gfx_pipeline_output(struct zink_screen *screen, 
struct zink_gfx_pipe
    if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB)
       pci.flags |= VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT;
    pipelineDynamicStateCreateInfo.dynamicStateCount = state_count;
-   pci.pColorBlendState = &blend_state;
+   if (!screen->have_full_ds3)
+      pci.pColorBlendState = &blend_state;
    pci.pMultisampleState = &ms_state;
    pci.pDynamicState = &pipelineDynamicStateCreateInfo;
 

Reply via email to