vk/vulkan.h: Remove the pass argument from EndRenderPass
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Jul 2015 23:22:23 +0000 (16:22 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Jul 2015 23:22:23 +0000 (16:22 -0700)
include/vulkan/vulkan.h
src/vulkan/device.c
src/vulkan/meta.c

index a243f41f61f55a26fe00c2b4fccdcf1c73ba7a75..0c50b877573459cce0abf6e6b3291e8204e02dc0 100644 (file)
@@ -2010,7 +2010,7 @@ typedef void (VKAPI *PFN_vkCmdPushConstants)(VkCmdBuffer cmdBuffer, VkPipelineLa
 typedef VkResult (VKAPI *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer);
 typedef VkResult (VKAPI *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass);
 typedef void (VKAPI *PFN_vkCmdBeginRenderPass)(VkCmdBuffer cmdBuffer, const VkRenderPassBegin* pRenderPassBegin);
-typedef void (VKAPI *PFN_vkCmdEndRenderPass)(VkCmdBuffer cmdBuffer, VkRenderPass renderPass);
+typedef void (VKAPI *PFN_vkCmdEndRenderPass)(VkCmdBuffer cmdBuffer);
 typedef void (VKAPI *PFN_vkCmdExecuteCommands)(VkCmdBuffer cmdBuffer, uint32_t cmdBuffersCount, const VkCmdBuffer* pCmdBuffers);
 
 #ifdef VK_PROTOTYPES
@@ -2632,8 +2632,7 @@ void VKAPI vkCmdBeginRenderPass(
     const VkRenderPassBegin*                    pRenderPassBegin);
 
 void VKAPI vkCmdEndRenderPass(
-    VkCmdBuffer                                 cmdBuffer,
-    VkRenderPass                                renderPass);
+    VkCmdBuffer                                 cmdBuffer);
 
 void VKAPI vkCmdExecuteCommands(
     VkCmdBuffer                                 cmdBuffer,
index 9654637b6e1fc62be10dd64208cb52e27ded4a5e..69fd335634b62c975961abf53c570769ae7a58ce 100644 (file)
@@ -3726,8 +3726,7 @@ void anv_CmdBeginRenderPass(
 }
 
 void anv_CmdEndRenderPass(
-    VkCmdBuffer                                 cmdBuffer,
-    VkRenderPass                                renderPass)
+    VkCmdBuffer                                 cmdBuffer)
 {
    /* Emit a flushing pipe control at the end of a pass.  This is kind of a
     * hack but it ensures that render targets always actually get written.
index f4479512ea6d894f02c91c388602e590aa8f66aa..9bba3540a3711aad28010494f67a5b5e25d751cb 100644 (file)
@@ -653,7 +653,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer,
 
    anv_CmdDraw((VkCmdBuffer) cmd_buffer, 0, 3, 0, 1);
 
-   anv_CmdEndRenderPass((VkCmdBuffer) cmd_buffer, pass);
+   anv_CmdEndRenderPass((VkCmdBuffer) cmd_buffer);
 
    /* At the point where we emit the draw call, all data from the
     * descriptor sets, etc. has been used.  We are free to delete it.
@@ -1272,7 +1272,7 @@ void anv_CmdClearColorImage(
 
             meta_emit_clear(cmd_buffer, 1, &instance_data);
 
-            anv_CmdEndRenderPass((VkCmdBuffer) cmd_buffer, pass);
+            anv_CmdEndRenderPass((VkCmdBuffer) cmd_buffer);
          }
       }
    }