vk/device: Add an explicit destructor for RenderPass

This commit is contained in:
Jason Ekstrand 2015-07-10 12:33:04 -07:00
parent 8b342b39a3
commit 7552e026da
2 changed files with 12 additions and 0 deletions

View file

@ -3723,6 +3723,17 @@ VkResult anv_CreateRenderPass(
return VK_SUCCESS;
}
VkResult anv_DestroyRenderPass(
VkDevice _device,
VkRenderPass renderPass)
{
ANV_FROM_HANDLE(anv_device, device, _device);
anv_device_free(device, anv_render_pass_from_handle(renderPass));
return VK_SUCCESS;
}
VkResult anv_GetRenderAreaGranularity(
VkDevice device,
VkRenderPass renderPass,

View file

@ -949,6 +949,7 @@ VkResult anv_DestroyBufferView(VkDevice device, VkBufferView bufferView);
VkResult anv_DestroyColorAttachmentView(VkDevice device,
VkColorAttachmentView view);
VkResult anv_DestroyDepthStencilView(VkDevice device, VkDepthStencilView view);
VkResult anv_DestroyRenderPass(VkDevice device, VkRenderPass renderPass);
#define ANV_DEFINE_CASTS(__anv_type, __VkType) \
static inline struct __anv_type * \