From 6c7c50b625c9c16ac2aaf5ccdfd7f6824d50feb7 Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Tue, 17 Nov 2026 04:35:25 -0500 Subject: [PATCH] fix(bionic): load the runtime's X11 Mesa before the layer's Wayland-only one The bionic layer's lib/ carries its own Mesa (libEGL.so.1, libgallium) built for winewayland only, and it came first on the library path, so winex11's EGL backend got no configs and OpenGL did not start (AIO: "Failed to get any configs from eglChooseConfig"; Zink never loaded Vulkan). The runtime's egl/ (Bannerlator's Fast OpenGL set, x11 + wayland) now comes first, as Bannerlator orders it. Tested: AIO OpenGL on DroidDeck-Bionic, 1714.6 fps, Zink on the adapter and Turnip. --- tools/bionic-runtime/tool/launch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/bionic-runtime/tool/launch.sh b/tools/bionic-runtime/tool/launch.sh index 371a990e31..921439f505 100644 --- a/tools/bionic-runtime/tool/launch.sh +++ b/tools/bionic-runtime/tool/launch.sh @@ -104,7 +104,8 @@ export SDL_GAMECONTROLLER_IGNORE_DEVICES="$(echo "${SDL_GAMECONTROLLER_IGNORE_DE export WINE_USE_EGL=1 WINE_X11FORCEGLX=1 GALLIUM_DRIVER=zink MESA_LOADER_DRIVER_OVERRIDE=zink LIBGL_KOPPER_DRI2=1 export ZINK_DESCRIPTORS=${ZINK_DESCRIPTORS:-lazy} ZINK_DEBUG=${ZINK_DEBUG:-compact} vblank_mode=${vblank_mode:-0} -LIBS=$F/lib:$PACK/egl:$PACK/lib:/system/lib64 +# egl/ first: the layer's own lib/ carries a Wayland-only Mesa EGL of the same names, which winex11 cannot use +LIBS=$PACK/egl:$F/lib:$PACK/lib:/system/lib64 PRELOAD=$PACK/preload/libexecshim.so:$PACK/preload/libnotag.so:$PACK/preload/libfakeinput.so wine_() { LD_LIBRARY_PATH=$LIBS LD_PRELOAD=$PRELOAD "$LINKER" "$F/lib/wine/aarch64-unix/wine" "$@"; } wineserver_() { LD_LIBRARY_PATH=$LIBS LD_PRELOAD=$PRELOAD "$LINKER" "$F/bin/wineserver" "$@"; }