mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
v3dv: implement vkDestroyInstance
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
parent
be1575c625
commit
dbce41f39b
1 changed files with 27 additions and 1 deletions
|
|
@ -201,11 +201,37 @@ v3dv_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
static void
|
||||
physical_device_finish(struct v3dv_physical_device *device)
|
||||
{
|
||||
/* FIXME: stub */
|
||||
}
|
||||
|
||||
void
|
||||
v3dv_DestroyInstance(VkInstance _instance,
|
||||
const VkAllocationCallbacks *pAllocator)
|
||||
{
|
||||
/* FIXME: stub */
|
||||
V3DV_FROM_HANDLE(v3dv_instance, instance, _instance);
|
||||
|
||||
if (!instance)
|
||||
return;
|
||||
|
||||
if (instance->physicalDeviceCount > 0) {
|
||||
/* We support at most one physical device. */
|
||||
assert(instance->physicalDeviceCount == 1);
|
||||
physical_device_finish(&instance->physicalDevice);
|
||||
}
|
||||
|
||||
vk_free(&instance->alloc, (char *)instance->app_info.app_name);
|
||||
vk_free(&instance->alloc, (char *)instance->app_info.engine_name);
|
||||
|
||||
VG(VALGRIND_DESTROY_MEMPOOL(instance));
|
||||
|
||||
vk_debug_report_instance_destroy(&instance->debug_report_callbacks);
|
||||
|
||||
glsl_type_singleton_decref();
|
||||
|
||||
vk_free(&instance->alloc, instance);
|
||||
}
|
||||
|
||||
VkResult
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue