From 92768ee62758b3a28e46182b1bd5e242003d94cc Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 23 Sep 2021 16:15:02 +0200 Subject: [PATCH] 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 Reviewed-by: Tomeu Vizoso Part-of: --- src/panfrost/vulkan/panvk_vX_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/vulkan/panvk_vX_pipeline.c b/src/panfrost/vulkan/panvk_vX_pipeline.c index f1bcbc50e80..c27758fc691 100644 --- a/src/panfrost/vulkan/panvk_vX_pipeline.c +++ b/src/panfrost/vulkan/panvk_vX_pipeline.c @@ -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;