summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2017-01-31 19:01:18 -0800
committerNanley Chery <[email protected]>2017-02-02 10:36:14 -0800
commit043d92fef9315dcc303f36d472eb38b5511bb2cd (patch)
tree95e1033b66e697826b2611c6b4dd6a74e1cf3107 /src/intel
parenta020cb3a72019748fee1824fc542b3b8225226c9 (diff)
anv/pass: Store the depth-stencil attachment's last subpass index
Commit 968ffd6c868af7226e8f889573eef709888151cb stored 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" <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]> Signed-off-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_pass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c
index 5df6330c6af..2df18260d3a 100644
--- a/src/intel/vulkan/anv_pass.c
+++ b/src/intel/vulkan/anv_pass.c
@@ -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;