vk/0.170.2: Update VkRenderPassBeginInfo
authorChad Versace <chad.versace@intel.com>
Sun, 4 Oct 2015 16:26:25 +0000 (09:26 -0700)
committerChad Versace <chad.versace@intel.com>
Sun, 4 Oct 2015 16:26:25 +0000 (09:26 -0700)
Rename members:
    attachmentCount -> clearValueCount
    pAttachmentClearValues -> pClearValues

include/vulkan/vulkan.h
src/vulkan/anv_meta.c
src/vulkan/gen7_cmd_buffer.c
src/vulkan/gen8_cmd_buffer.c

index 6b8ca6022eebd3c1c8df4937063a354667527d9b..16ed3f8dd67b3a9274fc663dbd29e3c3871b017c 100644 (file)
@@ -2020,8 +2020,8 @@ typedef struct {
     VkRenderPass                                renderPass;
     VkFramebuffer                               framebuffer;
     VkRect2D                                    renderArea;
-    uint32_t                                    attachmentCount;
-    const VkClearValue*                         pAttachmentClearValues;
+    uint32_t                                    clearValueCount;
+    const VkClearValue*                         pClearValues;
 } VkRenderPassBeginInfo;
 
 typedef struct {
index d7efdf69b623bd7369f6db540d3718bb0dcdc43d..11b8557805c577452b042a40a7ec7ca9a3c86595 100644 (file)
@@ -428,6 +428,9 @@ anv_cmd_buffer_clear_attachments(struct anv_cmd_buffer *cmd_buffer,
    if (pass->has_stencil_clear_attachment)
       anv_finishme("stencil clear");
 
+   /* FINISHME: Rethink how we count clear attachments in light of
+    * 0.138.2 -> 0.170.2 diff.
+    */
    if (pass->num_color_clear_attachments == 0 &&
        !pass->has_depth_clear_attachment)
       return;
@@ -889,8 +892,8 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer,
             .offset = { dest_offset.x, dest_offset.y },
             .extent = { dest_extent.width, dest_extent.height },
          },
-         .attachmentCount = 1,
-         .pAttachmentClearValues = NULL,
+         .clearValueCount = 0,
+         .pClearValues = NULL,
       }, VK_RENDER_PASS_CONTENTS_INLINE);
 
    VkPipeline pipeline;
@@ -1621,8 +1624,8 @@ void anv_CmdClearColorImage(
                   },
                   .renderPass = pass,
                   .framebuffer = fb,
-                  .attachmentCount = 1,
-                  .pAttachmentClearValues = NULL,
+                  .clearValueCount = 1,
+                  .pClearValues = NULL,
                }, VK_RENDER_PASS_CONTENTS_INLINE);
 
             struct clear_instance_data instance_data = {
index 95d1e28698f9a5f64df15ef97018ec5cc6e08131..323022b13f91bc6ab0763b2eb1abb05cfddbb212 100644 (file)
@@ -641,7 +641,7 @@ begin_render_pass(struct anv_cmd_buffer *cmd_buffer,
                   .DrawingRectangleOriginX = 0);
 
    anv_cmd_buffer_clear_attachments(cmd_buffer, pass,
-                                    pRenderPassBegin->pAttachmentClearValues);
+                                    pRenderPassBegin->pClearValues);
 }
 
 void gen7_CmdBeginRenderPass(
index 0e830b4427df797dbc7f6e97fa2ada20973aacd2..d82a409d886030a5c2e7060794d321761a6b9de3 100644 (file)
@@ -580,7 +580,7 @@ void gen8_CmdBeginRenderPass(
                   .DrawingRectangleOriginX = 0);
 
    anv_cmd_buffer_clear_attachments(cmd_buffer, pass,
-                                    pRenderPassBegin->pAttachmentClearValues);
+                                    pRenderPassBegin->pClearValues);
 
    gen8_cmd_buffer_begin_subpass(cmd_buffer, pass->subpasses);
 }