mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
glapi: more organize code by arch
It seems that x86-64 with tls will fail to compile or load due to a missining gl_dispatch_functions_start symbol. Not changing though, since this is how it used to be and cannot test.
This commit is contained in:
parent
0ed0114de9
commit
9a649c8eaa
1 changed files with 10 additions and 4 deletions
|
|
@ -52,15 +52,21 @@ 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)
|
||||
#if defined(USE_X86_ASM)
|
||||
# if defined(GLX_USE_TLS)
|
||||
# define DISPATCH_FUNCTION_SIZE 16
|
||||
# elif defined(THREADS)
|
||||
# define DISPATCH_FUNCTION_SIZE 32
|
||||
# else
|
||||
# define DISPATCH_FUNCTION_SIZE 16
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(USE_X64_64_ASM)
|
||||
# if defined(GLX_USE_TLS)
|
||||
# define DISPATCH_FUNCTION_SIZE 16
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue