Don't allocate space for resolve attachments if the subpass has none. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>tags/17.1-branchpoint
| @@ -88,8 +88,7 @@ VkResult anv_CreateRenderPass( | |||
| subpass_attachment_count += | |||
| desc->inputAttachmentCount + | |||
| desc->colorAttachmentCount + | |||
| /* Count colorAttachmentCount again for resolve_attachments */ | |||
| desc->colorAttachmentCount; | |||
| (desc->pResolveAttachments ? desc->colorAttachmentCount : 0); | |||
| } | |||
| pass->subpass_attachments = | |||