diff options
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r-- | src/vulkan/anv_device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 7eed78c660e..76381e615d3 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -29,6 +29,7 @@ #include "anv_private.h" #include "mesa/main/git_sha1.h" +#include "util/strtod.h" static int anv_env_get_int(const char *name) @@ -142,6 +143,8 @@ VkResult anv_CreateInstance( instance->apiVersion = pCreateInfo->pAppInfo->apiVersion; instance->physicalDeviceCount = 0; + _mesa_locale_init(); + VG(VALGRIND_CREATE_MEMPOOL(instance, 0, false)); *pInstance = anv_instance_to_handle(instance); @@ -156,6 +159,8 @@ VkResult anv_DestroyInstance( VG(VALGRIND_DESTROY_MEMPOOL(instance)); + _mesa_locale_fini(); + instance->pfnFree(instance->pAllocUserData, instance); return VK_SUCCESS; |