mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 20:58:31 +09:00
[Test] (piglit-android): add on-device piglit harness for MobileGL - patched waffle (WAFFLE_EGL_LIBRARY/WAFFLE_GL_LIBRARY overrides so waffle drives libMobileGL.so directly, AImageReader-backed windows for DirectVulkan since Android ICDs lack VK_EXT_headless_surface, WAFFLE_FORCE_GL_CONTEXT_VERSION to upgrade piglit's low compat context requests to 3.3 core, meson cross fixes) and patched piglit (Android platform support, EGL support decoupled from the X11-dependent EGL tests, and a dispatch-init fix: the waffle resolvers were never installed because gl_fw is NULL during framework construction, so gl* silently bound to the system driver via the DT_NEEDED libEGL's eglGetProcAddress), plus the adb chunked runner with PIGLIT-result parsing, a results comparator, cross-file examples, and the piglit-on-android skill
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
; meson cross file for waffle -> aarch64 Android
|
||||
; Replace NDK_TOOLCHAIN with e.g.
|
||||
; $HOME/Library/Android/sdk/ndk/27.3.13750724/toolchains/llvm/prebuilt/darwin-x86_64
|
||||
; and PKGCONFIG_DIR with the directory holding the stub egl.pc.
|
||||
[binaries]
|
||||
c = 'NDK_TOOLCHAIN/bin/aarch64-linux-android26-clang'
|
||||
cpp = 'NDK_TOOLCHAIN/bin/aarch64-linux-android26-clang++'
|
||||
ar = 'NDK_TOOLCHAIN/bin/llvm-ar'
|
||||
strip = 'NDK_TOOLCHAIN/bin/llvm-strip'
|
||||
pkg-config = '/usr/bin/pkg-config'
|
||||
|
||||
[host_machine]
|
||||
system = 'android'
|
||||
cpu_family = 'aarch64'
|
||||
cpu = 'aarch64'
|
||||
endian = 'little'
|
||||
|
||||
[properties]
|
||||
pkg_config_libdir = 'PKGCONFIG_DIR'
|
||||
@@ -0,0 +1,8 @@
|
||||
# Stub egl.pc for cross-building waffle/piglit against the NDK.
|
||||
# The NDK's own EGL headers are 1.4-era; point Cflags at MobileGL's bundled
|
||||
# EGL 1.5 headers (include/EGL) instead. -lEGL resolves to the NDK stub.
|
||||
Name: egl
|
||||
Description: EGL 1.5 headers (MobileGL bundled) + NDK libEGL stub
|
||||
Version: 1.5
|
||||
Libs: -lEGL
|
||||
Cflags: -IMOBILEGL_REPO/include
|
||||
Reference in New Issue
Block a user