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 <eric.engestrom@intel.com>
This commit is contained in:
Bas Nieuwenhuizen
2019-08-03 18:44:44 +02:00
parent d7ca1efc6c
commit 9f37c9903b
18 changed files with 57 additions and 57 deletions
+2 -2
View File
@@ -660,7 +660,7 @@ extern int __glXDebug;
extern void __glXSetCurrentContext(struct glx_context * c);
# if defined( GLX_USE_TLS )
# if defined( USE_ELF_TLS )
extern __thread void *__glX_tls_Context
__attribute__ ((tls_model("initial-exec")));
@@ -671,7 +671,7 @@ extern __thread void *__glX_tls_Context
extern struct glx_context *__glXGetCurrentContext(void);
# endif /* defined( GLX_USE_TLS ) */
# endif /* defined( USE_ELF_TLS ) */
extern void __glXSetCurrentContextNull(void);
+2 -2
View File
@@ -67,7 +67,7 @@ struct glx_context dummyContext = {
_X_HIDDEN pthread_mutex_t __glXmutex = PTHREAD_MUTEX_INITIALIZER;
# if defined( GLX_USE_TLS )
# if defined( USE_ELF_TLS )
/**
* Per-thread GLX context pointer.
@@ -132,7 +132,7 @@ __glXGetCurrentContext(void)
return (v == NULL) ? &dummyContext : (struct glx_context *) v;
}
# endif /* defined( GLX_USE_TLS ) */
# endif /* defined( USE_ELF_TLS ) */
_X_HIDDEN void
+1 -1
View File
@@ -102,7 +102,7 @@ struct glx_context dummyContext = {
};
__thread void *__glX_tls_Context = &dummyContext;
#if !defined(GLX_USE_TLS)
#if !defined(USE_ELF_TLS)
extern "C" struct glx_context *
__glXGetCurrentContext()
{