Browse Source

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>
tags/17.1-branchpoint
Nanley Chery 9 years ago
parent
commit
8f6a17c8e7
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/intel/vulkan/anv_pass.c

+ 1
- 2
src/intel/vulkan/anv_pass.c View File

@@ -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…
Cancel
Save