lavapipe: add attachment index to lvp_render_pass_attachment

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13349>
This commit is contained in:
Mike Blumenkrantz 2021-10-01 15:00:36 -04:00 committed by Marge Bot
parent 5cf568ce09
commit 5e3d84e30a
2 changed files with 2 additions and 0 deletions

View file

@ -170,6 +170,7 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreateRenderPass2(
att->load_op = pCreateInfo->pAttachments[i].loadOp;
att->stencil_load_op = pCreateInfo->pAttachments[i].stencilLoadOp;
att->first_subpass_idx = UINT32_MAX;
att->attachment = i;
bool is_zs = util_format_is_depth_or_stencil(lvp_vk_format_to_pipe_format(att->format));
pass->has_zs_attachment |= is_zs;

View file

@ -289,6 +289,7 @@ struct lvp_subpass {
};
struct lvp_render_pass_attachment {
uint32_t attachment; //index
VkFormat format;
uint32_t samples;
VkAttachmentLoadOp load_op;