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/mapi/u_current.h | |
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/mapi/u_current.h')
-rw-r--r-- | src/mapi/u_current.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mapi/u_current.h b/src/mapi/u_current.h index 3c9a414ee84..9a79f0bf93a 100644 --- a/src/mapi/u_current.h +++ b/src/mapi/u_current.h @@ -10,7 +10,7 @@ #include "glapi/glapi.h" -#ifdef GLX_USE_TLS +#ifdef USE_ELF_TLS #define u_current_table _glapi_tls_Dispatch #define u_current_context _glapi_tls_Context #else @@ -27,7 +27,7 @@ struct _glapi_table; -#ifdef GLX_USE_TLS +#ifdef USE_ELF_TLS extern __thread struct _glapi_table *u_current_table __attribute__((tls_model("initial-exec"))); @@ -35,12 +35,12 @@ extern __thread struct _glapi_table *u_current_table extern __thread void *u_current_context __attribute__((tls_model("initial-exec"))); -#else /* GLX_USE_TLS */ +#else /* USE_ELF_TLS */ extern struct _glapi_table *u_current_table; extern void *u_current_context; -#endif /* GLX_USE_TLS */ +#endif /* USE_ELF_TLS */ #endif /* MAPI_MODE_UTIL || MAPI_MODE_GLAPI || MAPI_MODE_BRIDGE */ @@ -65,7 +65,7 @@ u_current_get_context_internal(void); static inline const struct _glapi_table * u_current_get_table(void) { -#ifdef GLX_USE_TLS +#ifdef USE_ELF_TLS return u_current_table; #else return (likely(u_current_table) ? @@ -76,7 +76,7 @@ u_current_get_table(void) static inline const void * u_current_get_context(void) { -#ifdef GLX_USE_TLS +#ifdef USE_ELF_TLS return u_current_context; #else return likely(u_current_context) ? u_current_context : u_current_get_context_internal(); |