v3dv: implement vkDestroyImage and vkDestroyImageView

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2019-12-17 08:47:08 +01:00 committed by Marge Bot
parent 4075f8e221
commit 14f72ee4f6

View file

@ -310,10 +310,13 @@ v3dv_CreateImage(VkDevice _device,
}
void
v3dv_DestroyImage(VkDevice device,
VkImage image,
v3dv_DestroyImage(VkDevice _device,
VkImage _image,
const VkAllocationCallbacks* pAllocator)
{
V3DV_FROM_HANDLE(v3dv_device, device, _device);
V3DV_FROM_HANDLE(v3dv_image, image, _image);
vk_free2(&device->alloc, pAllocator, image);
}
VkResult
@ -392,8 +395,12 @@ v3dv_CreateImageView(VkDevice _device,
}
void
v3dv_DestroyImageView(VkDevice device,
v3dv_DestroyImageView(VkDevice _device,
VkImageView imageView,
const VkAllocationCallbacks* pAllocator)
{
V3DV_FROM_HANDLE(v3dv_device, device, _device);
V3DV_FROM_HANDLE(v3dv_image_view, image_view, imageView);
vk_free2(&device->alloc, pAllocator, image_view);
}