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>
This commit is contained in:
Mike Blumenkrantz 2023-08-14 11:39:31 -04:00 committed by Marge Bot
parent e13bdbbd5b
commit 0fb9064231

View file

@ -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);
}
}