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:
committed by
Marge Bot
parent
ba9b6f2d57
commit
3c6ed32d3c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user