[Mesa-dev] [PATCH 5/5] anv/pipeline: Remove a meta hack from emit_ds_state

Jason Ekstrand jason at jlekstrand.net
Sat Oct 8 16:18:39 UTC 2016


Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
---
 src/intel/vulkan/genX_pipeline_util.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/intel/vulkan/genX_pipeline_util.h b/src/intel/vulkan/genX_pipeline_util.h
index b390c5c..c518cfd 100644
--- a/src/intel/vulkan/genX_pipeline_util.h
+++ b/src/intel/vulkan/genX_pipeline_util.h
@@ -737,10 +737,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);
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list