head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.11.23.10.29.52; author adam; state Exp; branches; next ; commitid iRvtCaPzqXxxxz4H; desc @@ 1.1 log @mesa: added version 26.2.7 The Mesa project began as an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics. Over the years the project has grown to implement more graphics APIs, including OpenGL ES (versions 1, 2, 3), OpenCL, OpenMAX, VDPAU, VA API, XvMC and Vulkan. A variety of device drivers allows the Mesa libraries to be used in many different environments ranging from software emulation to complete hardware acceleration for modern GPUs. @ text @$NetBSD$ NetBSD only supports zero-initialized initial-exec tls variables in conjuction with dlopen(3) at the moment. --- src/glx/glxcurrent.c.orig 2025-08-13 14:41:43.198379856 +0000 +++ src/glx/glxcurrent.c @@@@ -51,7 +51,11 @@@@ pthread_mutex_t __glXmutex = PTHREAD_MUT * \b never be \c NULL. This is important! Because of this * \c __glXGetCurrentContext can be implemented as trivial macro. */ +#if defined(__NetBSD__) +__THREAD_INITIAL_EXEC void *__glX_tls_Context = NULL; /* non-zero initializers not supported with dlopen */ +#else __THREAD_INITIAL_EXEC void *__glX_tls_Context = &dummyContext; +#endif void __glXSetCurrentContext(struct glx_context * c) @