From: Chad Versace Date: Mon, 11 Jan 2016 22:07:35 +0000 (-0800) Subject: anv/gen7: Remove unheeded helper begin_render_pass() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52d4af6a3c37641586a18b8437644729270c67d2;p=mesa.git anv/gen7: Remove unheeded helper begin_render_pass() 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. --- diff --git a/src/vulkan/gen7_cmd_buffer.c b/src/vulkan/gen7_cmd_buffer.c index e69bf47782e..d3a9de5038f 100644 --- a/src/vulkan/gen7_cmd_buffer.c +++ b/src/vulkan/gen7_cmd_buffer.c @@ -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); }