mesa/src/gallium/targets
Jesse Natalie ddbbe96c88 Fix static glapi on Windows
On Linux, the static glapi path sees libGL.so implementing the static
glapi, and the drivers (libgallium_dri.so) updating/reading the TLS
vars.

On Windows, to allow libgallium_wgl.dll to be a full ICD, it's
responsible for implementing the actual static glapi. However, before
this change, OpenGL32.dll was also implementing the static glapi,
meaning that GL API calls from OpenGL32.dll didn't route to the driver
correctly because the TLS vars were never actually set - the driver set
its copy, and OpenGL32.dll read its own copy.

Now, always build a bridge and static version of glapi when not using
shared. The bridge version is linked into OpenGL32.dll, and the static
version is linked into the driver on Windows. GLES only builds with
shared glapi - but after this, shared glapi is not really needed on
Windows for GLES, since the driver has all of the data.

Fixes: f36921ef ("wgl: Refactor drivers to a libgallium_wgl.dll")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6560
Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16713>
2022-07-14 20:01:22 +00:00
..
d3d10sw meson: Using get_argument_syntax as the `--compiler_id` option for gen_vs_module_defs.py 2022-06-16 19:59:58 +00:00
d3dadapter9 mesa: move common/dri into gallium 2021-12-03 23:53:06 +00:00
dri kmsro: add 'imx-lcdif' driver support 2022-07-06 12:37:02 +00:00
graw-gdi
graw-null
graw-xlib targets/graw-xlib: Add missing dep_x11 2021-07-23 15:02:15 +00:00
haiku-softpipe mesa: Merge libmesa_gallium and libmesa_common 2021-12-03 23:53:06 +00:00
lavapipe lavapipe: Use the correct ICD path on Win32 2022-05-19 21:53:06 +00:00
libgl-d3d12 mesa: Merge libmesa_gallium and libmesa_common 2021-12-03 23:53:06 +00:00
libgl-gdi Fix static glapi on Windows 2022-07-14 20:01:22 +00:00
libgl-xlib gallium/swr: Remove common code and build options 2021-12-06 23:37:50 +00:00
omx
opencl gallium/opencl: set OCL_ICD_FILENAMES with devenv 2022-03-21 16:58:14 +00:00
osmesa meson: Using get_argument_syntax as the `--compiler_id` option for gen_vs_module_defs.py 2022-06-16 19:59:58 +00:00
pipe-loader meson: add build-id to pipe libraries 2022-05-17 18:50:54 +00:00
va meson: Add build option for gallium-d3d12-video feature 2022-05-24 16:36:31 +00:00
vdpau meson: Add build option for gallium-d3d12-video feature 2022-05-24 16:36:31 +00:00
wgl meson: Using get_argument_syntax as the `--compiler_id` option for gen_vs_module_defs.py 2022-06-16 19:59:58 +00:00
xa
xvmc
dri-vdpau.dyn