aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_pass.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-11-16 10:39:15 -0800
committerJason Ekstrand <[email protected]>2016-11-22 13:44:55 -0800
commit140d041fac24b6140f8df8f02418b8bc1503d4a8 (patch)
tree40d1cb5341186a9e3f52bcb19b5abb069bd84a6a /src/intel/vulkan/anv_pass.c
parent0b01262844561cbd505dfcff396d3f4de2b30300 (diff)
anv/pipeline: Handle depth/stencil self-dependencies
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pass.c')
-rw-r--r--src/intel/vulkan/anv_pass.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c
index 1b40ef14670..c1c149b48b5 100644
--- a/src/intel/vulkan/anv_pass.c
+++ b/src/intel/vulkan/anv_pass.c
@@ -116,6 +116,10 @@ VkResult anv_CreateRenderPass(
subpass->input_attachments[j] = a;
pass->attachments[a].usage |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT;
pass->attachments[a].subpass_usage[i] |= ANV_SUBPASS_USAGE_INPUT;
+
+ if (desc->pDepthStencilAttachment &&
+ a == desc->pDepthStencilAttachment->attachment)
+ subpass->has_ds_self_dep = true;
}
}