dri: put shared-glapi into libgallium.*.so

so that we don't have to maintain a stable ABI for it.

This will allow removal of the remapping table to reduce CALL_* overhead
for GL dispatch tables.

Also we can now clean it up.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Eric Engestrom <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32789>
This commit is contained in:
Marek Olšák
2024-12-26 14:35:44 -05:00
committed by Marge Bot
parent 08560b8ff8
commit 44bda7c258
16 changed files with 58 additions and 75 deletions

View File

@@ -446,12 +446,9 @@ endif
_mesa_windows_args = []
if with_platform_windows
_mesa_windows_args += [
'-D_GLAPI_NO_EXPORTS',
'-D_GDI32_', # prevent gl* being declared __declspec(dllimport) in MS headers
]
if not with_shared_glapi
# prevent _glapi_* from being declared __declspec(dllimport)
_mesa_windows_args += '-D_GLAPI_NO_EXPORTS'
endif
endif
libmesa = static_library(

View File

@@ -8,7 +8,7 @@ test(
['st_format.c'],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
link_with : [
libmesa, libglapi, libgallium,
libmesa, shared_glapi_lib, libgallium,
],
dependencies : [idep_gtest, idep_mesautil],
),