panvk: Don't expect subpasses to use all RTs

Some might use a subset, and that's fine, we just need to disable unused
RTs when beginning a subpass, which we do.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13077>
This commit is contained in:
Boris Brezillon 2021-09-23 16:15:02 +02:00 committed by Marge Bot
parent 96f006539f
commit 92768ee627
1 changed files with 1 additions and 1 deletions

View File

@ -947,7 +947,7 @@ panvk_pipeline_builder_init_graphics(struct panvk_pipeline_builder *builder,
builder->use_depth_stencil_attachment =
subpass->zs_attachment.idx != VK_ATTACHMENT_UNUSED;
assert(subpass->color_count == create_info->pColorBlendState->attachmentCount);
assert(subpass->color_count <= create_info->pColorBlendState->attachmentCount);
builder->active_color_attachments = 0;
for (uint32_t i = 0; i < subpass->color_count; i++) {
uint32_t idx = subpass->color_attachments[i].idx;