mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
vk/graphics: fix CWE handling with DS3
VkPipelineColorBlendStateCreateInfo::attachmentCount cannot be used to
generate the CWE mask since it cannot be read if enough dynamic state is in use
instead just pass the max mask and let drivers figure it out
cc: mesa-stable
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24673>
(cherry picked from commit 0fb9064231)
This commit is contained in:
parent
0ecc582677
commit
6865c117ab
2 changed files with 2 additions and 2 deletions
|
|
@ -6794,7 +6794,7 @@
|
|||
"description": "vk/graphics: fix CWE handling with DS3",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -992,7 +992,7 @@ vk_color_blend_state_init(struct vk_color_blend_state *cb,
|
|||
}
|
||||
cb->color_write_enables = color_write_enables;
|
||||
} else {
|
||||
cb->color_write_enables = BITFIELD_MASK(cb_info->attachmentCount);
|
||||
cb->color_write_enables = BITFIELD_MASK(MESA_VK_MAX_COLOR_ATTACHMENTS);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue