Mesa (staging/19.2): turnip: Remove _mesa_locale_init/fini calls.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 4 16:07:29 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: ff9237e8eaa53ed8edb92e8f8879168ba6bcca1e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff9237e8eaa53ed8edb92e8f8879168ba6bcca1e

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Thu Oct 31 02:35:51 2019 +0100

turnip: Remove _mesa_locale_init/fini calls.

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 at lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
(cherry picked from commit 72f858fc07746eb1d7360b47636006202a075e84)

---

 src/freedreno/vulkan/tu_device.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index 8799f4109fb..901f024864e 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -39,7 +39,6 @@
 #include "compiler/glsl_types.h"
 #include "util/debug.h"
 #include "util/disk_cache.h"
-#include "util/strtod.h"
 #include "vk_format.h"
 #include "vk_util.h"
 
@@ -431,7 +430,6 @@ tu_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
       return vk_error(instance, result);
    }
 
-   _mesa_locale_init();
    glsl_type_singleton_init_or_ref();
 
    VG(VALGRIND_CREATE_MEMPOOL(instance, 0, false));
@@ -457,7 +455,6 @@ tu_DestroyInstance(VkInstance _instance,
    VG(VALGRIND_DESTROY_MEMPOOL(instance));
 
    glsl_type_singleton_decref();
-   _mesa_locale_fini();
 
    vk_debug_report_instance_destroy(&instance->debug_report_callbacks);
 




More information about the mesa-commit mailing list