feat(bionic): D7VK for 32-bit Direct3D 7 and older games (PROTON_USE_D7VK)

As in DroidDeck-Proton: with PROTON_USE_D7VK set and not 0, the prefix's syswow64 ddraw.dll is D7VK's and
Wine's own sits beside it as ddraw_.dll, with ddraw=n,b; unset again, Wine's link comes back. Only the
prefix links change. The ddraw.dll is the one DroidDeck-Proton 11-12.8 ships (WinterSnowfall/d7vk
06656b9e, sha256 pinned), taken from that release's archive at build time; credited in NOTICE.
PROTON_USE_D7VK now passes the launcher's environment filter.
This commit is contained in:
The412Banner committed 2026-11-17 06:55:51 -05:00
1 parent 536a05e06c
commit 58125fc723
3 files changed
+33

No files matched your search

+5
View File
@@ -27,5 +27,10 @@ Taken unchanged from The412Banner's Bannerlator (GPL-3.0, https://github.com/The
with libwayland-client (MIT) and libarchive (BSD-2-Clause); egl/x11egl.json records the build. Bannerlator ships
the same set for its Fast OpenGL.
Taken unchanged from DroidDeck-Proton (https://github.com/Droid-Deck/DroidDeck-Proton, release DroidDeck-Proton-11-12.8):
- d7vk/ddraw.dll: D7VK by WinterSnowfall (zlib, https://github.com/WinterSnowfall/d7vk, commit 06656b9e), Direct3D 7
and older on Vulkan, based on DXVK by Philip Rebohle and contributors (zlib, https://github.com/doitsujin/dxvk);
32-bit build from DroidDeck-Proton's CI.
Not in this pack: the bionic DroidDeck-Proton layer (The412Banner/proton-wine releases), GPU drivers, DXVK/VKD3D
and FEX (DroidDeck components).
+12
View File
@@ -40,6 +40,12 @@ DXVK_URL=https://github.com/The412Banner/Nightlies/releases/download/Dxvk-gplasy
DXVK_SHA256=379b5dcde331de45a5f0ac7775d2c657c9c1510616afb9143ab8cdfbfa8e5342
VKD3D_URL=https://github.com/Droid-Deck/DroidDeck-Components/releases/download/linux-nightly/DD-vkd3d-proton-arm64ec-3.1%2B64-nightly.wcp
VKD3D_SHA256=92b8aa023e5242a6f7a69770b808b213474de7869f0d387ea99867a59e539b4e
# D7VK's 32-bit ddraw.dll (PROTON_USE_D7VK): the same file DroidDeck-Proton 11-12.8 ships, built there from
# WinterSnowfall/d7vk; only that file is taken out of the release archive.
D7VK_FROM=https://github.com/Droid-Deck/DroidDeck-Proton/releases/download/DroidDeck-Proton-11-12.8/DroidDeck-Proton-11-12.8-aarch64.tar.gz
D7VK_MEMBER="DroidDeck-Proton 11-12.8/files/lib/wine/d7vk/i386-windows/ddraw.dll"
D7VK_SHA256=aaf28d3dee147fd359d14bb08228f9d21335fb5fec334415e396353a967574aa
D7VK_COMMIT=06656b9e94bf275854e3d83d6426517253937738
case "$(uname -s):$(uname -m)" in
Linux:x86_64) NDK_HOST=linux-x86_64 ;;
@@ -82,6 +88,11 @@ echo "== Bannerlator assets (pinned): Wayland adapter, FFmpeg 8"
fetch "$BL_ASSETS/wayland/adapter/libvulkan_wrapper.so" "$ADAPTER_SHA256" "$PACK/adapter/libvulkan_wrapper.so"
fetch "$BL_ASSETS/wayland/adapter/adapter.json" "$ADAPTER_JSON_SHA256" "$PACK/adapter/adapter.json"
fetch "$BL_ASSETS/ffmpeg8.tzst" "$FFMPEG8_SHA256" "$WORK/ffmpeg8.tzst"
echo "== D7VK ddraw.dll (DroidDeck-Proton 11-12.8 release, that file only)"
mkdir -p "$PACK/d7vk"
curl -fsSL --retry 5 --retry-delay 3 --retry-connrefused "$D7VK_FROM" | tar -xzO -f - "$D7VK_MEMBER" > "$PACK/d7vk/ddraw.dll"
echo "$D7VK_SHA256 $PACK/d7vk/ddraw.dll" | sha256sum -c -
# OpenGL: Bannerlator's bionic Mesa (EGL + GLX + Zink, x11 and wayland platforms; Banners-Turnip exp/egl-x11-platform
# ab76cba3, run 36862058991) for winex11's EGL backend, as Bannerlator's Fast OpenGL uses it
mkdir -p "$PACK/egl"
@@ -166,6 +177,7 @@ cp "$HERE/NOTICE" "$PACK/NOTICE"
echo "imagefs $IMAGEFS_URL sha256 $IMAGEFS_SHA256"
echo "bannerlator $BL_COMMIT (wayland/adapter, ffmpeg8.tzst, x11/egl: Mesa EGL + GLX + Zink)"
echo "layer $LAYER_URL sha256 $LAYER_SHA256 (not packed)"
echo "d7vk $D7VK_COMMIT: i386 ddraw.dll from $D7VK_FROM"
echo "gamescope $GAMESCOPE_TAG $GAMESCOPE_COMMIT + $GAMESCOPE_PATCHES; vkroots $(git -C "$GS/subprojects/vkroots" rev-parse HEAD); Vulkan-Headers $VULKAN_HEADERS_TAG"
echo
(cd "$PACK" && find . -type f ! -name MANIFEST.txt | sort | xargs sha256sum)
+16
View File
@@ -32,6 +32,7 @@ for v in $(env | sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p'); do
TU_DEBUG|MESA_NO_ERROR|DXVK_CONFIG|DXVK_HUD|DROIDDECK_FORCE_SSBS) ;;
mesa_glthread|vblank_mode|ZINK_*|GALLIUM_HUD) ;;
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 ;;
esac
done
@@ -203,6 +204,21 @@ fi
prefix_busy || rm -f "$NTSYNC_SHM".v*
prepare_prefix
# D7VK (Direct3D 7 and older on Vulkan) for 32-bit games when PROTON_USE_D7VK is set and not 0, as DroidDeck-Proton:
# its ddraw.dll in syswow64 with Wine's own beside it as ddraw_.dll. Switched off, Wine's link goes back. Only the
# links in the prefix are removed, never the files they point to.
S=$COMPAT/pfx/drive_c/windows/syswow64
if [ -n "${PROTON_USE_D7VK:-}" ] && [ "$PROTON_USE_D7VK" != 0 ] && [ -f "$PACK/d7vk/ddraw.dll" ]; then
rm -f "$S/ddraw.dll" "$S/ddraw_.dll"
ln -s "$PACK/d7vk/ddraw.dll" "$S/ddraw.dll" && ln -s "$F/lib/wine/i386-windows/ddraw.dll" "$S/ddraw_.dll"
export WINEDLLOVERRIDES="$WINEDLLOVERRIDES;ddraw=n,b"
echo "$(date +%H:%M:%S) D7VK on (32-bit ddraw)"
elif [ -L "$S/ddraw_.dll" ] || [ -e "$S/ddraw_.dll" ]; then
rm -f "$S/ddraw.dll" "$S/ddraw_.dll"
ln -s "$F/lib/wine/i386-windows/ddraw.dll" "$S/ddraw.dll"
echo "$(date +%H:%M:%S) D7VK off: Wine's ddraw again"
fi
cd "$(dirname "$EXE")" || exit 1
if [ "$verb" = runinprefix ]; then