vk/graphics: fix CWE handling with DS3
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 14 Aug 2023 15:39:31 +0000 (11:39 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 17 Aug 2023 11:01:36 +0000 (11:01 +0000)
commit0fb9064231687ff7af4cb48697ee24b48715b80f
tree67a40b23fc056579ed210526337a82f3aca772a0
parente13bdbbd5bfc1cef00cf504b0567238ae8f45524
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>
src/vulkan/runtime/vk_graphics_state.c