X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmapi%2Fu_current.h;h=9a79f0bf93acec2cd985fac262cfe7a24f5c0471;hb=62154658426264c3f4dc5666ea04fc3fdd3d340a;hp=3c9a414ee84d86d3062be9302677a1cd381eb3a7;hpb=4562d88c1d6f02b0601abd97f421a72adf64b3a6;p=mesa.git 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();