mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
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:
parent
5cf568ce09
commit
5e3d84e30a
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -289,6 +289,7 @@ struct lvp_subpass {
|
|||
};
|
||||
|
||||
struct lvp_render_pass_attachment {
|
||||
uint32_t attachment; //index
|
||||
VkFormat format;
|
||||
uint32_t samples;
|
||||
VkAttachmentLoadOp load_op;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue