anv/pass: Fix size of anv_render_pass:subpass_attachments
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>
This commit is contained in:
parent
608d17b80e
commit
8f6a17c8e7
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue