mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
v3dv: implement vkDestroyImage and vkDestroyImageView
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
parent
4075f8e221
commit
14f72ee4f6
1 changed files with 10 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue