anv/pipeline: Remove a meta hack from emit_ds_state
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 8 Oct 2016 05:29:44 +0000 (22:29 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Oct 2016 22:40:39 +0000 (15:40 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/genX_pipeline_util.h

index c8f81ac21a966926fef35827db279fa194e5d637..c2de52376c6dc4c8bbdaec73780da5f4ca299408 100644 (file)
@@ -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);