zink: only set VkPipelineColorBlendStateCreateInfo::attachmentCount without full ds3
this should be ignored by drivers/layers, but it isn't, and the crashing is immense Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21025>
This commit is contained in:
committed by
Marge Bot
parent
fd0562693d
commit
ff5a761232
@@ -451,7 +451,8 @@ zink_create_gfx_pipeline_output(struct zink_screen *screen, struct zink_gfx_pipe
|
||||
blend_state.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;
|
||||
if (state->rast_attachment_order)
|
||||
blend_state.flags |= VK_PIPELINE_COLOR_BLEND_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_BIT_EXT;
|
||||
blend_state.attachmentCount = state->rendering_info.colorAttachmentCount;
|
||||
if (!screen->have_full_ds3)
|
||||
blend_state.attachmentCount = state->rendering_info.colorAttachmentCount;
|
||||
if (state->blend_state)
|
||||
blend_state.logicOp = state->blend_state->logicop_func;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user