X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmapi%2Fentry.c;h=1e250122c4aa571e0219087f503e512281341cba;hb=fe3b7fe98295a26588053426feee01e8d2179061;hp=b6e8db28d5b3d7f2f4f3962d68ed615b169a89b5;hpb=846a7e86309ab3877af6b7d3a63880468dfacbd3;p=mesa.git diff --git a/src/mapi/entry.c b/src/mapi/entry.c index b6e8db28d5b..1e250122c4a 100644 --- a/src/mapi/entry.c +++ b/src/mapi/entry.c @@ -25,9 +25,15 @@ * Chia-I Wu */ +#include +#include + #include "entry.h" #include "u_current.h" -#include "u_macros.h" +#include "util/u_endian.h" + +#define _U_STRINGIFY(x) #x +#define U_STRINGIFY(x) _U_STRINGIFY(x) /* define macros for use by assembly dispatchers */ #define ENTRY_CURRENT_TABLE U_STRINGIFY(u_current_table) @@ -47,11 +53,15 @@ # endif #elif defined(USE_X86_64_ASM) && defined(__GNUC__) && defined(GLX_USE_TLS) # include "entry_x86-64_tls.h" +#elif defined(USE_PPC64LE_ASM) && defined(__GNUC__) && defined(PIPE_ARCH_LITTLE_ENDIAN) +# ifdef GLX_USE_TLS +# include "entry_ppc64le_tls.h" +# else +# include "entry_ppc64le_tsd.h" +# endif #else -#include - -static INLINE const struct mapi_table * +static inline const struct _glapi_table * entry_current_get(void) { #ifdef MAPI_MODE_BRIDGE