mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
anv/pass: Store the depth-stencil attachment's last subpass index
Commit968ffd6c86stored the last subpass index of all the attachments but that of the depth-stencil attachment. This could cause depth buffers used in multiple subpasses not to be in the requested final layout. Fix this error. Cc: "17.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> (cherry picked from commit043d92fef9)
This commit is contained in:
parent
ebbca2f7bb
commit
19f029ce63
1 changed files with 1 additions and 0 deletions
|
|
@ -172,6 +172,7 @@ VkResult anv_CreateRenderPass(
|
|||
pass->attachments[a].usage |=
|
||||
VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT;
|
||||
pass->attachments[a].subpass_usage[i] |= ANV_SUBPASS_USAGE_DRAW;
|
||||
pass->attachments[a].last_subpass_idx = i;
|
||||
}
|
||||
} else {
|
||||
subpass->depth_stencil_attachment = VK_ATTACHMENT_UNUSED;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue