summaryrefslogtreecommitdiff
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorTobias Jakobi <liquid.acid@gmx.net>2008-09-27 08:51:45 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-09-27 08:51:45 +0100
commit2e5d717007ba6515b094b9af8ed869130185a308 (patch)
treedab1ae0d02edcddd28dee0b6a2fe36e6a0ece778 /src/mesa/glapi
parenta23026effca921a77fbaa0a7effdc2826212b11e (diff)
glapi: add DISPATCH_FUNCTION_SIZE
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/glapi.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index c92b096f68..c3ebf60719 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -302,6 +302,20 @@ extern const GLubyte gl_dispatch_functions_start[];
#endif /* USE_X86_ASM */
+#if defined(USE_X64_64_ASM) && defined(GLX_USE_TLS)
+# define DISPATCH_FUNCTION_SIZE 16
+#elif defined(USE_X86_ASM)
+# if defined(THREADS) && !defined(GLX_USE_TLS)
+# define DISPATCH_FUNCTION_SIZE 32
+# else
+# define DISPATCH_FUNCTION_SIZE 16
+# endif
+#endif
+
+#if !defined(DISPATCH_FUNCTION_SIZE) && !defined(XFree86Server) && !defined(XGLServer)
+# define NEED_FUNCTION_POINTER
+#endif
+
#if defined(PTHREADS) || defined(GLX_USE_TLS)
/**
* Perform platform-specific GL API entry-point fixups.