android: Fix zink build failure

Otherwise we run into following build error on Android:

    ld.lld: error: undefined symbol: galliumvk_driver_extensions

Fixes: cfa955ed78 ("glx/egl: fix LIBGL_KOPPER_DISABLE")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29475>
(cherry picked from commit 38dfbae116)
This commit is contained in:
Amit Pundir 2024-05-30 14:21:24 +05:30 committed by Eric Engestrom
parent 749a2f92bb
commit 9e63dfe52d
2 changed files with 5 additions and 1 deletions

View file

@ -224,7 +224,7 @@
"description": "android: Fix zink build failure",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "cfa955ed78bef56ba025a64468e8b841149fab18",
"notes": null

View file

@ -142,6 +142,9 @@ DEFINE_LOADER_DRM_ENTRYPOINT(lima)
#endif
#if defined(GALLIUM_ZINK)
#if DETECT_OS_ANDROID
DEFINE_LOADER_DRM_ENTRYPOINT(zink);
#else
const __DRIextension **__driDriverGetExtensions_zink(void);
PUBLIC const __DRIextension **__driDriverGetExtensions_zink(void)
@ -149,6 +152,7 @@ PUBLIC const __DRIextension **__driDriverGetExtensions_zink(void)
return debug_get_bool_option("LIBGL_KOPPER_DISABLE", false) ? galliumdrm_driver_extensions : galliumvk_driver_extensions;
}
#endif
#endif
#if defined(GALLIUM_D3D12)
DEFINE_LOADER_DRM_ENTRYPOINT(d3d12);