mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
anv: Add anv_subpass::has_resolve
Indicates that the subpass has at least one resolve attachment.
This commit is contained in:
parent
3d863e8dad
commit
22258e279d
2 changed files with 7 additions and 2 deletions
|
|
@ -118,8 +118,10 @@ VkResult anv_CreateRenderPass(
|
|||
p += desc->colorAttachmentCount;
|
||||
|
||||
for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
|
||||
subpass->resolve_attachments[j]
|
||||
= desc->pResolveAttachments[j].attachment;
|
||||
uint32_t a = desc->pResolveAttachments[j].attachment;
|
||||
subpass->resolve_attachments[j] = a;
|
||||
if (a != VK_ATTACHMENT_UNUSED)
|
||||
subpass->has_resolve = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1712,6 +1712,9 @@ struct anv_subpass {
|
|||
uint32_t * color_attachments;
|
||||
uint32_t * resolve_attachments;
|
||||
uint32_t depth_stencil_attachment;
|
||||
|
||||
/** Subpass has at least one resolve attachment */
|
||||
bool has_resolve;
|
||||
};
|
||||
|
||||
struct anv_render_pass_attachment {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue