pvr: check for unused attachments

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta
2025-02-03 13:34:22 +00:00
committed by Marge Bot
parent ba9b6f2d57
commit 3c6ed32d3c
+3
View File
@@ -2479,6 +2479,9 @@ pvr_create_renderpass_state(const VkGraphicsPipelineCreateInfo *const info)
assert(info->subpass < pass->subpass_count);
for (uint32_t i = 0; i < subpass->color_count; i++) {
if (subpass->color_attachments[i] == VK_ATTACHMENT_UNUSED)
continue;
if (pass->attachments[subpass->color_attachments[i]].aspects)
attachments |= MESA_VK_RP_ATTACHMENT_COLOR_0_BIT << i;
}