mapi: Hide OpenGL functions to be exported when shared-glapi is disabled
authorYonggang Luo <luoyonggang@gmail.com>
Mon, 5 Jun 2023 15:59:53 +0000 (23:59 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 27 Jun 2023 20:25:09 +0000 (20:25 +0000)
commitd5a09bf5944b7762f823cc93debee34bc0afb80b
treeb00b206326e5a81851bfd7cce8f89d17e97f830f
parenta8b832449466411e87cab6b9b6e9b4a311498d4c
mapi: Hide OpenGL functions to be exported when shared-glapi is disabled

Fixes the following test error:
135/154 mesa:gallium / osmesa-symbols-check                                                                       FAIL             0.07s   exit status 1

```
src/gallium/targets/osmesa/libOSMesa.so.8.0.0: unknown symbol exported: glAreTexturesResidentEXT
src/gallium/targets/osmesa/libOSMesa.so.8.0.0: unknown symbol exported: glDeleteTexturesEXT
src/gallium/targets/osmesa/libOSMesa.so.8.0.0: unknown symbol exported: glGenTexturesEXT
src/gallium/targets/osmesa/libOSMesa.so.8.0.0: unknown symbol exported: glIsTextureEXT
```
The build options is:
```
-D glx=xlib -D gles1=disabled -D gles2=disabled -D shared-glapi=disabled
```

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23409>
meson.build
src/mapi/glapi/gen/gl_SPARC_asm.py
src/mapi/glapi/gen/gl_apitemp.py
src/mapi/glapi/gen/gl_x86-64_asm.py
src/mapi/glapi/gen/gl_x86_asm.py
src/mapi/glapi/glapi_dispatch.c