mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
meson: Do not use GLX_USE_TLS on Android.
The asm code expects a specific kind of implementation, but Android
uses something different (emutls).
Turns out mesa has a fallback with pthread_getspecific, with an
optimizaiton if only a single thread is used. emutls also uses
getspecific, so lets just use the optimized mesa implementation.
Fixes: 20294dceeb "mesa: Enable asm unconditionally, now that gen_matypes is gone."
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
2dd598c129
commit
d7ca1efc6c
1 changed files with 5 additions and 1 deletions
|
|
@ -375,7 +375,11 @@ if with_egl and not (with_platform_drm or with_platform_surfaceless or with_plat
|
|||
endif
|
||||
endif
|
||||
|
||||
pre_args += '-DGLX_USE_TLS'
|
||||
# Android uses emutls for versions <= P/28. For GLX_USE_TLS we need ELF TLS.
|
||||
if not with_platform_android or get_option('platform-sdk-version') >= 29
|
||||
pre_args += '-DGLX_USE_TLS'
|
||||
endif
|
||||
|
||||
if with_glx != 'disabled'
|
||||
if not (with_platform_x11 and with_any_opengl)
|
||||
error('Cannot build GLX support without X11 platform support and at least one OpenGL API')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue