radv: Remove _mesa_locale_init/fini calls.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 31 Oct 2019 01:33:46 +0000 (02:33 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 31 Oct 2019 09:47:56 +0000 (09:47 +0000)
The resulting locale is not used for Vulkan, and it is not reference
counted, giving issues when multiple instances are created.

CC: 19.2 19.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index 0ab421b23772b15b914a6b4a2741466b2a9f0047..fef5cab6ff202e0d32a168d92cfdb232513d9fb3 100644 (file)
@@ -47,7 +47,6 @@
 #include "radv_shader.h"
 #include "radv_cs.h"
 #include "util/disk_cache.h"
-#include "util/strtod.h"
 #include "vk_util.h"
 #include <xf86drm.h>
 #include <amdgpu.h>
@@ -682,7 +681,6 @@ VkResult radv_CreateInstance(
                                         VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
        instance->engineVersion = engine_version;
 
-       _mesa_locale_init();
        glsl_type_singleton_init_or_ref();
 
        VG(VALGRIND_CREATE_MEMPOOL(instance, 0, false));
@@ -713,7 +711,6 @@ void radv_DestroyInstance(
        VG(VALGRIND_DESTROY_MEMPOOL(instance));
 
        glsl_type_singleton_decref();
-       _mesa_locale_fini();
 
        driDestroyOptionCache(&instance->dri_options);
        driDestroyOptionInfo(&instance->available_dri_options);