anv: Remove unused anv_render_pass members
authorChad Versace <chad.versace@intel.com>
Wed, 4 Nov 2015 23:54:38 +0000 (15:54 -0800)
committerChad Versace <chad.versace@intel.com>
Wed, 4 Nov 2015 23:54:38 +0000 (15:54 -0800)
Remove members
  num_color_clear_attachments
  has_depth_clear_attachment
  has_stencil_clear_attachment

The new clear code in anv_meta_clear.c does not use them.

src/vulkan/anv_pass.c
src/vulkan/anv_private.h

index c30602399066e44b29a5014919207c99f260deaa..bf0f830f3c1ef47f0a5eb88f36902a45fab99ffe 100644 (file)
@@ -62,22 +62,6 @@ VkResult anv_CreateRenderPass(
       att->stencil_load_op = pCreateInfo->pAttachments[i].stencilLoadOp;
       // att->store_op = pCreateInfo->pAttachments[i].storeOp;
       // att->stencil_store_op = pCreateInfo->pAttachments[i].stencilStoreOp;
-
-      if (anv_format_is_color(att->format)) {
-         if (att->load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) {
-            ++pass->num_color_clear_attachments;
-         }
-      } else {
-         if (att->format->depth_format &&
-             att->load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) {
-            pass->has_depth_clear_attachment = true;
-         }
-
-         if (att->format->has_stencil &&
-             att->stencil_load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) {
-            pass->has_stencil_clear_attachment = true;
-         }
-      }
    }
 
    for (uint32_t i = 0; i < pCreateInfo->subpassCount; i++) {
index be87bb59bf6afc48bf2db07eb8a5314b634ee5f1..396d4138dc1404c2b03ba66c2ee61fb3863c6320 100644 (file)
@@ -1410,11 +1410,6 @@ struct anv_render_pass_attachment {
 struct anv_render_pass {
    uint32_t                                     attachment_count;
    uint32_t                                     subpass_count;
-
-   uint32_t                                     num_color_clear_attachments;
-   bool                                         has_depth_clear_attachment;
-   bool                                         has_stencil_clear_attachment;
-
    struct anv_render_pass_attachment *          attachments;
    struct anv_subpass                           subpasses[0];
 };