diff options
author | George Sapountzis <gsapountzis@gmail.com> | 2010-03-09 22:03:24 +0200 |
---|---|---|
committer | George Sapountzis <gsapountzis@gmail.com> | 2010-03-09 22:04:51 +0200 |
commit | 54ba95a4de749de1da73b3917aac99eb1d57d7fa (patch) | |
tree | 8425b8adcb98dc3a31d68ec8dbd079141f3a419b /src/mesa/glapi/glapi_priv.h | |
parent | 2c8b5ffed9a787e896b540a95be48ef401d5f007 (diff) |
glapi: split out arch-specific code for entrypoints
Diffstat (limited to 'src/mesa/glapi/glapi_priv.h')
-rw-r--r-- | src/mesa/glapi/glapi_priv.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mesa/glapi/glapi_priv.h b/src/mesa/glapi/glapi_priv.h index 05eda99ccf..7cd81ee8dc 100644 --- a/src/mesa/glapi/glapi_priv.h +++ b/src/mesa/glapi/glapi_priv.h @@ -40,4 +40,27 @@ extern void init_glapi_relocs_once(void); +extern _glapi_proc +generate_entrypoint(GLuint functionOffset); + + +extern void +fill_in_entrypoint_offset(_glapi_proc entrypoint, GLuint offset); + + +extern _glapi_proc +get_entrypoint_address(GLuint functionOffset); + + +#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 + + #endif |