anv/gen7: Remove unheeded helper begin_render_pass()
authorChad Versace <chad.versace@intel.com>
Mon, 11 Jan 2016 22:07:35 +0000 (14:07 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 11 Jan 2016 22:08:30 +0000 (14:08 -0800)
The helper didn't help much. It looks like a leftover from past
code-reuse.  Now it's called from exactly one location,
gen7_CmdBeginRenderPass(). So fold it into its caller.

src/vulkan/gen7_cmd_buffer.c

index e69bf47782e05d4369938e7bcb5cb076e5aab480..d3a9de5038fab5fddd09e44d46bb2c6e23a993c1 100644 (file)
@@ -805,10 +805,12 @@ genX(cmd_buffer_begin_subpass)(struct anv_cmd_buffer *cmd_buffer,
    cmd_buffer_emit_depth_stencil(cmd_buffer);
 }
 
-static void
-begin_render_pass(struct anv_cmd_buffer *cmd_buffer,
-                  const VkRenderPassBeginInfo* pRenderPassBegin)
+void genX(CmdBeginRenderPass)(
+    VkCommandBuffer                             commandBuffer,
+    const VkRenderPassBeginInfo*                pRenderPassBegin,
+    VkSubpassContents                           contents)
 {
+   ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
    ANV_FROM_HANDLE(anv_render_pass, pass, pRenderPassBegin->renderPass);
    ANV_FROM_HANDLE(anv_framebuffer, framebuffer, pRenderPassBegin->framebuffer);
 
@@ -829,17 +831,6 @@ begin_render_pass(struct anv_cmd_buffer *cmd_buffer,
 
    anv_cmd_buffer_clear_attachments(cmd_buffer, pass,
                                     pRenderPassBegin->pClearValues);
-}
-
-void genX(CmdBeginRenderPass)(
-    VkCommandBuffer                             commandBuffer,
-    const VkRenderPassBeginInfo*                pRenderPassBegin,
-    VkSubpassContents                           contents)
-{
-   ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
-   ANV_FROM_HANDLE(anv_render_pass, pass, pRenderPassBegin->renderPass);
-
-   begin_render_pass(cmd_buffer, pRenderPassBegin);
 
    gen7_cmd_buffer_begin_subpass(cmd_buffer, pass->subpasses);
 }