lvp: drop explicit u_gralloc init
u_gralloc will be initialized upon the initial vk_android_get_ugralloc. Acked-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35561>
This commit is contained in:
@@ -1401,10 +1401,6 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreateInstance(
|
||||
|
||||
// VG(VALGRIND_CREATE_MEMPOOL(instance, 0, false));
|
||||
|
||||
#if DETECT_OS_ANDROID
|
||||
vk_android_init_ugralloc();
|
||||
#endif
|
||||
|
||||
*pInstance = lvp_instance_to_handle(instance);
|
||||
|
||||
return VK_SUCCESS;
|
||||
@@ -1419,10 +1415,6 @@ VKAPI_ATTR void VKAPI_CALL lvp_DestroyInstance(
|
||||
if (!instance)
|
||||
return;
|
||||
|
||||
#if DETECT_OS_ANDROID
|
||||
vk_android_destroy_ugralloc();
|
||||
#endif
|
||||
|
||||
pipe_loader_release(&instance->devs, instance->num_devices);
|
||||
|
||||
vk_instance_finish(&instance->vk);
|
||||
|
||||
Reference in New Issue
Block a user