mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
anv/pass: Make unused color attachments VK_ATTACHMENT_UNUSED
Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14961>
This commit is contained in:
parent
9bbecbed7a
commit
1ad0f1b004
1 changed files with 3 additions and 1 deletions
|
|
@ -493,8 +493,10 @@ anv_dynamic_pass_init(struct anv_dynamic_render_pass *dyn_render_pass,
|
|||
|
||||
uint32_t att;
|
||||
for (att = 0; att < info->colorAttachmentCount; att++) {
|
||||
if (info->pColorAttachmentFormats[att] == VK_FORMAT_UNDEFINED)
|
||||
if (info->pColorAttachmentFormats[att] == VK_FORMAT_UNDEFINED) {
|
||||
subpass->attachments[att].attachment = VK_ATTACHMENT_UNUSED;
|
||||
continue;
|
||||
}
|
||||
pass->attachments[att].format = info->pColorAttachmentFormats[att];
|
||||
pass->attachments[att].samples = info->rasterizationSamples;
|
||||
subpass->attachments[att].attachment = att;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue