mesa/src/mapi
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
..
es1api meson: use the same workaround for setting 'lib' on windows 2023-01-19 23:06:07 +00:00
es2api meson: use the same workaround for setting 'lib' on windows 2023-01-19 23:06:07 +00:00
glapi apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
new mapi: #include "util/glheader.h" instead of #include "GL/gl.h" 2022-11-03 16:07:31 +00:00
shared-glapi mapi: Delete execmem support code. 2023-06-12 21:37:37 +00:00
entry.c mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
entry.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
entry_ppc64le_tls.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
entry_x86-64_tls.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
entry_x86_tls.h mapi: Delete dynamic stub generation. 2023-06-12 21:37:37 +00:00
mapi_abi.py mapi: Clean up mapi_stub struct. 2023-06-12 21:37:37 +00:00
mapi_tmp.h
meson.build glapi: inline the meson list files_mapi_util 2023-03-12 17:56:10 -04:00
u_current.c mapi: Improve comment about _glapi_tls_Dispatch and _glapi_tls_Context 2022-08-22 21:32:09 +00:00
u_current.h mapi: Move shared _glapi_set_context and _glapi_set_dispatch into u_current.c 2022-08-22 21:32:09 +00:00