mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
fix(bionic): Gallium's threaded context off, so WineD3D stops crashing
AIO's Direct3D 7 (DirectDraw on WineD3D, Zink on the adapter) died of SIGSEGV in native code within seconds of its first frames, with no Wine error. GALLIUM_THREAD=0, which Bannerlator's Fast OpenGL also sets, stops it (mesa_glthread=false and BANNER_WSI_NO_DMABUF_WAIT=1 did not). A game's own GALLIUM_THREAD in DroidDeck's game environment still wins and now passes the launcher's filter. AIO on the Pocket FIT with r14's settings: Direct3D 7 1930 fps (was a crash); OpenGL 1932 / 1967 fps (2174 with the threaded context).
This commit is contained in:
1 parent
58125fc723
commit
e26ef06695
1 file changed
+4
-1
@@ -30,7 +30,7 @@ for v in $(env | sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p'); do
|
||||
FAKE_*|SDL_*|BL_WIDTH|BL_HEIGHT|BL_VK_DRIVER|WINEDLLOVERRIDES) ;;
|
||||
DISPLAY|GAMESCOPE_WAYLAND_DISPLAY|FEX_*) ;;
|
||||
TU_DEBUG|MESA_NO_ERROR|DXVK_CONFIG|DXVK_HUD|DROIDDECK_FORCE_SSBS) ;;
|
||||
mesa_glthread|vblank_mode|ZINK_*|GALLIUM_HUD) ;;
|
||||
mesa_glthread|vblank_mode|ZINK_*|GALLIUM_HUD|GALLIUM_THREAD) ;;
|
||||
BL_SYNC|BL_FSYNC_FIRST|BL_SYNC_FALLBACK|PROTON_NO_ESYNC|PROTON_NO_FSYNC|PROTON_NO_NTSYNC|WINEESYNC) ;;
|
||||
PROTON_USE_D7VK) ;;
|
||||
*) unset "$v" 2>/dev/null ;;
|
||||
@@ -108,6 +108,9 @@ export SDL_GAMECONTROLLER_IGNORE_DEVICES="$(echo "${SDL_GAMECONTROLLER_IGNORE_DE
|
||||
# backend (the runtime's egl/), the way Bannerlator's Fast OpenGL runs it; DroidDeck's GL settings above are kept.
|
||||
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}
|
||||
# Gallium's threaded context off, as in Bannerlator's Fast OpenGL: with it, WineD3D (DirectDraw / Direct3D 1-7)
|
||||
# crashed in native code within seconds (AIO Direct3D 7, SIGSEGV).
|
||||
export GALLIUM_THREAD=${GALLIUM_THREAD:-0}
|
||||
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user