glx: stop exporting GL functions from libGLX_mesa.so

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33634>
This commit is contained in:
Marek Olšák
2025-02-21 02:45:55 -05:00
committed by Marge Bot
parent 628608672c
commit 71bb62e3c9
2 changed files with 14 additions and 1 deletions

View File

@@ -424,7 +424,20 @@ static const __DRIextension *kopper_extensions_noshm[] = {
static void
drisw_wait_gl(struct glx_context *context)
{
/* TODO: Calling glFinish directly is the only thing that causes libGL.so
* to export all GL functions. This is fragile and needs a proper solution.
*
* On top of that, this code is only compiled with GLX_DIRECT_RENDERING,
* which means that indirect-only libGL (-Dglx-direct=false) doesn't export
* any GL functions.
*
* TODO: Always use CALL_Finish instead of glFinish.
*/
#if USE_LIBGLVND
CALL_Finish(GET_DISPATCH(), ());
#else
glFinish();
#endif
}
static void

View File

@@ -1678,7 +1678,7 @@ for name in all_functions:
function_count = i
# Exported from libGL.so and libGLX_mesa.so (libEGL_mesa.so doesn't export any)
# Exported from libGL.so
libgl_public_functions = {
"Accum",
"ActiveShaderProgram",