pvr: Remove framebuffer NULL check from pvr_CmdBeginRenderPass2.

Framebuffer can not be NULL in pvr_CmdBeginRenderPass2.

Fixes: CID 1503259.

Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18866>
This commit is contained in:
Rajnesh Kanwal
2022-09-25 19:43:47 +01:00
committed by Marge Bot
parent 6cef99c536
commit d1eb75ecec

View File

@@ -2210,10 +2210,8 @@ pvr_cmd_buffer_setup_attachments(struct pvr_cmd_buffer *cmd_buffer,
return state->status;
}
if (framebuffer) {
for (uint32_t i = 0; i < pass->attachment_count; i++)
info->attachments[i] = framebuffer->attachments[i];
}
for (uint32_t i = 0; i < pass->attachment_count; i++)
info->attachments[i] = framebuffer->attachments[i];
return VK_SUCCESS;
}