diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-08-03 18:44:44 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-08-03 20:18:17 +0200 |
commit | 9f37c9903b87f86a533bfaffa72f0ecb285b02b2 (patch) | |
tree | 94192c3b35f90699cf748ad66d0f3b444b286e6c /src/egl | |
parent | d7ca1efc6c814947af5b0a0c75b40673b61c31c4 (diff) |
mesa: Rename GLX_USE_TLS to USE_ELF_TLS.
These days it is not GLX only and it does not work with all TLS
implementations.
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/main/eglcurrent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/main/eglcurrent.c b/src/egl/main/eglcurrent.c index 2e7d164bce1..29be4268025 100644 --- a/src/egl/main/eglcurrent.c +++ b/src/egl/main/eglcurrent.c @@ -44,7 +44,7 @@ static EGLBoolean _egl_TSDInitialized; static tss_t _egl_TSD; static void _eglDestroyThreadInfo(_EGLThreadInfo *t); -#ifdef GLX_USE_TLS +#ifdef USE_ELF_TLS static __thread const _EGLThreadInfo *_egl_TLS __attribute__ ((tls_model("initial-exec"))); #endif @@ -52,14 +52,14 @@ static __thread const _EGLThreadInfo *_egl_TLS static inline void _eglSetTSD(const _EGLThreadInfo *t) { tss_set(_egl_TSD, (void *) t); -#ifdef GLX_USE_TLS +#ifdef USE_ELF_TLS _egl_TLS = t; #endif } static inline _EGLThreadInfo *_eglGetTSD(void) { -#ifdef GLX_USE_TLS +#ifdef USE_ELF_TLS return (_EGLThreadInfo *) _egl_TLS; #else return (_EGLThreadInfo *) tss_get(_egl_TSD); |