mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
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.
This commit is contained in:
1 parent
9436447f5d
commit
6c7c50b625
1 file changed
+2
-1
@@ -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" "$@"; }
|
||||
|
||||
Reference in new issue
Block a user