mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
zink: fix core support on Android
- use legacy EGL driver interface - use Android Vulkan loader - avoid unrelated kopper source files v2: update false #elif to #else Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> (v1) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18453>
This commit is contained in:
parent
8fe667afbb
commit
76397d18ae
3 changed files with 7 additions and 2 deletions
|
|
@ -56,6 +56,8 @@
|
|||
#include <unistd.h>
|
||||
#if DETECT_OS_APPLE
|
||||
#define VK_LIBNAME "libvulkan.1.dylib"
|
||||
#elif DETECT_OS_ANDROID
|
||||
#define VK_LIBNAME "libvulkan.so"
|
||||
#else
|
||||
#define VK_LIBNAME "libvulkan.so.1"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ if with_dri2
|
|||
endif
|
||||
|
||||
libdri_c_args = []
|
||||
if with_gallium_zink
|
||||
if with_gallium_zink and not with_platform_android
|
||||
if get_option('glvnd')
|
||||
libdri_c_args += '-DKOPPER_LIB_NAMES="libEGL_@0@ and libGLX_@0@"'.format(get_option('glvnd-vendor-name'))
|
||||
else
|
||||
|
|
|
|||
|
|
@ -125,13 +125,16 @@ DEFINE_LOADER_DRM_ENTRYPOINT(lima)
|
|||
#endif
|
||||
|
||||
#if defined(GALLIUM_ZINK) && !defined(__APPLE__)
|
||||
#if defined(ANDROID)
|
||||
DEFINE_LOADER_DRM_ENTRYPOINT(zink);
|
||||
#else
|
||||
const __DRIextension **__driDriverGetExtensions_zink(void);
|
||||
|
||||
PUBLIC const __DRIextension **__driDriverGetExtensions_zink(void)
|
||||
{
|
||||
return galliumvk_driver_extensions;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(GALLIUM_D3D12)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue