projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glthread: rename non_vbo helper functions
[mesa.git]
/
src
/
mapi
/
entry.c
diff --git
a/src/mapi/entry.c
b/src/mapi/entry.c
index 3d9168a724399a4600261da6ab8d6703bd7585c6..315829eb30bbd0aed6d07b03ffe4141cdd660a21 100644
(file)
--- a/
src/mapi/entry.c
+++ b/
src/mapi/entry.c
@@
-1,6
+1,5
@@
/*
* Mesa 3-D graphics library
/*
* Mesa 3-D graphics library
- * Version: 7.9
*
* Copyright (C) 2010 LunarG Inc.
*
*
* Copyright (C) 2010 LunarG Inc.
*
@@
-26,9
+25,15
@@
* Chia-I Wu <olv@lunarg.com>
*/
* Chia-I Wu <olv@lunarg.com>
*/
+#include <stdlib.h>
+#include <stdint.h>
+
#include "entry.h"
#include "u_current.h"
#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)
/* define macros for use by assembly dispatchers */
#define ENTRY_CURRENT_TABLE U_STRINGIFY(u_current_table)
@@
-37,28
+42,32
@@
#ifdef MAPI_MODE_BRIDGE
#define ENTRY_CURRENT_TABLE_GET "_glapi_get_dispatch"
#else
#ifdef MAPI_MODE_BRIDGE
#define ENTRY_CURRENT_TABLE_GET "_glapi_get_dispatch"
#else
-#define ENTRY_CURRENT_TABLE_GET U_STRINGIFY(u_current_get_internal)
+#define ENTRY_CURRENT_TABLE_GET U_STRINGIFY(u_current_get_
table_
internal)
#endif
#if defined(USE_X86_ASM) && defined(__GNUC__)
#endif
#if defined(USE_X86_ASM) && defined(__GNUC__)
-# ifdef
GLX_USE
_TLS
+# ifdef
USE_ELF
_TLS
# include "entry_x86_tls.h"
# else
# include "entry_x86_tsd.h"
# endif
# include "entry_x86_tls.h"
# else
# include "entry_x86_tsd.h"
# endif
-#elif defined(USE_X86_64_ASM) && defined(__GNUC__) && defined(
GLX_USE
_TLS)
+#elif defined(USE_X86_64_ASM) && defined(__GNUC__) && defined(
USE_ELF
_TLS)
# include "entry_x86-64_tls.h"
# include "entry_x86-64_tls.h"
+#elif defined(USE_PPC64LE_ASM) && defined(__GNUC__) && UTIL_ARCH_LITTLE_ENDIAN
+# ifdef USE_ELF_TLS
+# include "entry_ppc64le_tls.h"
+# else
+# include "entry_ppc64le_tsd.h"
+# endif
#else
#else
-#include <stdlib.h>
-
-static INLINE const struct mapi_table *
+static inline const struct _glapi_table *
entry_current_get(void)
{
#ifdef MAPI_MODE_BRIDGE
return GET_DISPATCH();
#else
entry_current_get(void)
{
#ifdef MAPI_MODE_BRIDGE
return GET_DISPATCH();
#else
- return u_current_get();
+ return u_current_get
_table
();
#endif
}
#endif
}