aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-10-07 22:29:44 -0700
committerJason Ekstrand <[email protected]>2016-10-14 15:40:39 -0700
commit9d65595c0632b0d8036b18553c12fe9fa972e5a2 (patch)
tree08ff7ce4f8761013df9f6a1b344e5569cea7d85b /src/intel
parent69b2e931d49ff0d0cac1aa39753a447c6d2c059a (diff)
anv/pipeline: Remove a meta hack from emit_ds_state
Signed-off-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/genX_pipeline_util.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/intel/vulkan/genX_pipeline_util.h b/src/intel/vulkan/genX_pipeline_util.h
index c8f81ac21a9..c2de52376c6 100644
--- a/src/intel/vulkan/genX_pipeline_util.h
+++ b/src/intel/vulkan/genX_pipeline_util.h
@@ -740,10 +740,7 @@ emit_ds_state(struct anv_pipeline *pipeline,
};
VkImageAspectFlags aspects = 0;
- if (pass->attachments == NULL) {
- /* This comes from meta. Assume we have verything. */
- aspects = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT;
- } else if (subpass->depth_stencil_attachment != VK_ATTACHMENT_UNUSED) {
+ if (subpass->depth_stencil_attachment != VK_ATTACHMENT_UNUSED) {
VkFormat depth_stencil_format =
pass->attachments[subpass->depth_stencil_attachment].format;
aspects = vk_format_aspects(depth_stencil_format);