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:
Mike Blumenkrantz 2023-08-14 11:39:31 -04:00 committed by Dylan Baker
parent 0ecc582677
commit 6865c117ab
2 changed files with 2 additions and 2 deletions

View file

@ -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

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