mesa/src/glx
duncan.hopkins 97b6851815 apple: Extended Apple feature support using GLX_USE_APPLE.
On MacOS/Apple/Dawin you can only get MESA to forward the GL funtions to
the systems OpenGL.framework or run SWRast directly. There is no way to use a gallium driver, even if they have been compiled.
The two gallium drivers of interest are SWRast and Zink, as the rest are hardware drivers and not relavent on MacOS.

The code changes add a new define GLX_USE_APPLE. This is used in combination with the existing GLX_USE_APPLEGL.
GLX_USE_APPLEGL calls the systems OpenGL.framework, Apple's OpenGL.
GLX_USE_APPLE calls the non-system OpenGL code, i.e. Gallium, hence the subtle naming difference. Apple systems are still used, just not the GL ones.
When GLX_USE_APPLE is defined the code will use the DRI/gallium driver sub-system so SWRast and Zink can selected at runtime on MacOS.

This also allows Zink to be run on MacOS, once it is fixed up.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28205>
2024-03-18 18:06:45 +00:00
..
apple glx: fix typos 2023-04-26 23:52:21 +00:00
tests glx: fix typos 2023-04-26 23:52:21 +00:00
windows treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
applegl_glx.c glx: Clean up some funny business from context bind/unbind 2023-01-13 19:59:26 +00:00
clientattrib.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
clientinfo.c glx: fix typos 2023-04-26 23:52:21 +00:00
compsize.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
create_context.c glx: fix dead code when gc var cannot be null due to earlier check 2023-07-25 08:55:56 +00:00
dri2.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
dri2.h gallium/dri: Switch xf86drm.h for util/libdrm.h to allow for the no-op shim to be used. 2024-03-15 10:50:12 +00:00
dri2_glx.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
dri2_priv.h mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat 2023-11-21 23:15:32 +00:00
dri3_glx.c glx/dri3: handle zink fallback if loader picks it. 2024-02-21 11:16:22 +10:00
dri3_priv.h mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat 2023-11-21 23:15:32 +00:00
dri_common.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
dri_common.h glx/dri: Use X/GLX error codes for our create_context_attribs 2023-04-06 21:29:54 +00:00
dri_common_interop.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
dri_common_query_renderer.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
drisw_glx.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
drisw_priv.h glx: only print zink failure-to-load messages if explicitly requested 2024-02-29 13:13:09 +00:00
driwindows_glx.c glx: Clean up some funny business from context bind/unbind 2023-01-13 19:59:26 +00:00
eval.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
g_glxglvnddispatchfuncs.c mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat 2023-11-21 23:15:32 +00:00
g_glxglvnddispatchindices.h glx: Export the MESA GL Interop functions through glXGetProcAddress 2023-08-19 01:08:30 +00:00
glx_error.c
glx_error.h
glx_pbuffer.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
glx_query.c
glxclient.h apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
glxcmds.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
glxconfig.c glx: Delete support for GLX_OML_swap_method. 2023-10-20 10:03:43 +00:00
glxconfig.h glx: Delete support for GLX_OML_swap_method. 2023-10-20 10:03:43 +00:00
glxcurrent.c glx: add fail check for current context in another thread 2023-04-26 00:20:08 +00:00
glxext.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
glxextensions.c glx: Delete support for GLX_OML_swap_method. 2023-10-20 10:03:43 +00:00
glxextensions.h glx: Delete support for GLX_OML_swap_method. 2023-10-20 10:03:43 +00:00
glxglvnd.c
glxglvnd.h
glxglvnddispatchfuncs.h
glxhash.c
glxhash.h
indirect_glx.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
indirect_init.h
indirect_texture_compression.c
indirect_transpose_matrix.c
indirect_vertex_array.c glx: fix typos 2023-04-26 23:52:21 +00:00
indirect_vertex_array.h
indirect_vertex_array_priv.h glx: fix typos 2023-04-26 23:52:21 +00:00
indirect_vertex_program.c
indirect_window_pos.c
meson.build meson: relaxed some meson restrictions on MacOS/Apple allowing for wider build support. 2024-03-18 18:06:45 +00:00
packrender.h glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
packsingle.h glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
pixel.c glx: fix typos 2023-04-26 23:52:21 +00:00
pixelstore.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
query_renderer.c
render2.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
renderpix.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
single2.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
singlepix.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
vertarr.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
xfont.c glx: Remove DEBUG code in xfont.c 2024-03-11 00:09:58 +00:00