vk/0.132: Add vkDestroyRenderPass()
authorChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 18:21:01 +0000 (11:21 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 18:21:31 +0000 (11:21 -0700)
include/vulkan/vulkan.h
src/vulkan/device.c
src/vulkan/private.h

index 23c87de9dd938af5103980c8637c21b3e776cf32..20672e325a3fcdfb60bb1d518c2417fba9ea2abd 100644 (file)
@@ -2073,6 +2073,7 @@ typedef VkResult (VKAPI *PFN_vkDestroyDynamicDepthStencilState)(VkDevice device,
 typedef VkResult (VKAPI *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer);
 typedef VkResult (VKAPI *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer);
 typedef VkResult (VKAPI *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass);
+typedef VkResult (VKAPI *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass);
 typedef VkResult (VKAPI *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity);
 typedef VkResult (VKAPI *PFN_vkCreateCommandBuffer)(VkDevice device, const VkCmdBufferCreateInfo* pCreateInfo, VkCmdBuffer* pCmdBuffer);
 typedef VkResult (VKAPI *PFN_vkDestroyCommandBuffer)(VkDevice device, VkCmdBuffer commandBuffer);
@@ -2589,6 +2590,10 @@ VkResult VKAPI vkCreateRenderPass(
     const VkRenderPassCreateInfo*               pCreateInfo,
     VkRenderPass*                               pRenderPass);
 
+VkResult VKAPI vkDestroyRenderPass(
+    VkDevice                                    device,
+    VkRenderPass                                renderPass);
+
 VkResult VKAPI vkGetRenderAreaGranularity(
     VkDevice                                    device,
     VkRenderPass                                renderPass,
index 7d764f336434d3fa8fd79552d247b206867c1313..b7cbac97b7875be6b1f1e4a1d3a7fb101d5a1288 100644 (file)
@@ -3951,11 +3951,12 @@ VkResult anv_CreateRenderPass(
 
 VkResult anv_DestroyRenderPass(
     VkDevice                                    _device,
-    VkRenderPass                                renderPass)
+    VkRenderPass                                _pass)
 {
    ANV_FROM_HANDLE(anv_device, device, _device);
+   ANV_FROM_HANDLE(anv_render_pass, pass, _pass);
 
-   anv_device_free(device, anv_render_pass_from_handle(renderPass));
+   anv_device_free(device, pass);
 
    return VK_SUCCESS;
 }
index d5a2da2e35d5ac78babcf23dc8a6f2d049ebe6eb..a8ff24214fdf56cd052116aad16ddf292d56e447 100644 (file)
@@ -944,8 +944,6 @@ anv_cmd_buffer_clear(struct anv_cmd_buffer *cmd_buffer,
 void *
 anv_lookup_entrypoint(const char *name);
 
-VkResult anv_DestroyRenderPass(VkDevice device, VkRenderPass renderPass);
-
 #define ANV_DEFINE_CASTS(__anv_type, __VkType)     \
 static inline struct __anv_type *                  \
 __anv_type ## _from_handle(__VkType _handle)       \