[Mesa-dev] [PATCH v2 06/21] meson: always set GLX_USE_TLS

Dylan Baker dylan at pnwbakers.com
Thu Oct 12 17:38:33 UTC 2017


This can be applied to all GLX implementations, and in autotools this is
guarded only by the --enable-glx-tls flag. Since this is on by default
in autotools, and is strictly better than being off, the meson build
doesn't even have a toggle for it.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index b6f6c32d92d..70199a57a25 100644
--- a/meson.build
+++ b/meson.build
@@ -144,9 +144,9 @@ else
   with_gbm = false
 endif
 
+pre_args += '-DGLX_USE_TLS'
 with_glx = get_option('glx')
 if with_glx != 'disabled'
-  pre_args += '-DGLX_USE_TLS'
   if not (with_platform_x11 and with_any_opengl) and with_glx != 'auto'
     error('Cannot build GLX support without X11 platform support and at least one OpenGL API')
   elif with_glx == 'gallium-xlib' 
-- 
2.14.2



More information about the mesa-dev mailing list