mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
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:
parent
fd0562693d
commit
ff5a761232
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue