anv: Rename has_resolve to has_color_resolve
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 Jun 2018 16:35:35 +0000 (09:35 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 14 Jan 2019 16:16:52 +0000 (10:16 -0600)
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_pass.c
src/intel/vulkan/anv_private.h

index f0b1faae14bf639bc15a1b6a9f5427a611c5a068..892eb5f6d8991321a67750d8e6806a7a52605888 100644 (file)
@@ -1311,7 +1311,7 @@ anv_cmd_buffer_resolve_subpass(struct anv_cmd_buffer *cmd_buffer)
    struct anv_framebuffer *fb = cmd_buffer->state.framebuffer;
    struct anv_subpass *subpass = cmd_buffer->state.subpass;
 
-   if (subpass->has_resolve) {
+   if (subpass->has_color_resolve) {
       struct blorp_batch batch;
       blorp_batch_init(&cmd_buffer->device->blorp, &batch, cmd_buffer, 0);
 
index 83c57d0697dcd3ae15f3d6e9f1eb21cf5475b1fb..f0eca41935ee05a6dc21edcd79d03ce4b74375bf 100644 (file)
@@ -100,7 +100,7 @@ anv_render_pass_compile(struct anv_render_pass *pass)
       }
 
       /* We have to handle resolve attachments specially */
-      subpass->has_resolve = false;
+      subpass->has_color_resolve = false;
       if (subpass->resolve_attachments) {
          for (uint32_t j = 0; j < subpass->color_count; j++) {
             struct anv_subpass_attachment *color_att =
@@ -110,7 +110,7 @@ anv_render_pass_compile(struct anv_render_pass *pass)
             if (resolve_att->attachment == VK_ATTACHMENT_UNUSED)
                continue;
 
-            subpass->has_resolve = true;
+            subpass->has_color_resolve = true;
 
             assert(resolve_att->usage == VK_IMAGE_USAGE_TRANSFER_DST_BIT);
             color_att->usage |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
index 770254e93eafe1be138819ca23556eb157bbf71c..15d693eee47ce203d58db8960a557c0b6ce5d24c 100644 (file)
@@ -3229,8 +3229,8 @@ struct anv_subpass {
    /** Subpass has a depth/stencil self-dependency */
    bool                                         has_ds_self_dep;
 
-   /** Subpass has at least one resolve attachment */
-   bool                                         has_resolve;
+   /** Subpass has at least one color resolve attachment */
+   bool                                         has_color_resolve;
 };
 
 static inline unsigned