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:
parent
96f006539f
commit
92768ee627
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue