Linux: build leonida.exe and run it under Proton or Wine #2577

Closed
shadowplay711 wants to merge 13 commits from upstream-pr/2577 into main
shadowplay711 commented 2026-11-28 15:37:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by shadowplay711 on 2026-11-28T15:37:25Z.


What and why

On Linux, PLAY runs scripts/play-linux.sh, which only looked for leonida.exe beside itself, and nothing in a checkout built it: ./Build.sh builds the Vulkan loader, not d3d12/. The script also started the system's wine with Wine's own dxgi.dll (on wined3d), which crashed the game when it created its swap chain; docs/boot.md requires DXVK's dxgi.dll. Under Proton the picture then stayed black: the two-plane composer and the trainer menu took their root signatures from a [RootSignature] shader attribute that Wine's d3dcompiler_47 (vkd3d-shader) ignores (W5302: Ignoring unknown attribute "RootSignature"), so CreateRootSignature failed with E_FAIL, the composer was never made and only the base plane was presented. The runtime is now built on Linux, runs under any installed Proton build or the system's Wine with DXVK's dxgi.dll and a VKD3D-Proton that has dxil-spirv's new structurizer, presents both planes and can write its output to a log file.

  • scripts/build-d3d12-linux.sh (new): cross-builds leonida.exe with cargo-xwin and fetches VKD3D-Proton and DXVK's dxgi.dll into d3d12/target/. It stops before any download unless XWIN_ACCEPT_LICENSE=1 accepts Microsoft's SDK licence.
  • scripts/fetch_dxvk.py (new): fetches the 64-bit dxgi.dll of DXVK 3.1.1 with its licence and a source note, checked against pinned SHA-256 sums.
  • scripts/play-linux.sh:
    • Finds the runtime, VKD3D-Proton and DXVK beside itself or under d3d12/target/. Its errors name the command that builds or fetches them.
    • Uses LEONIDA_PROTON, else LEONIDA_WINE, else the usable Proton build with the highest version, else wine on PATH. Every folder with files/bin/wine counts as a Proton build, whatever its name, in the Steam folders (including Flatpak, Snap, libraryfolders.vdf and STEAM_EXTRA_COMPAT_TOOLS_PATHS) and the system's compatibilitytools.d; it is usable when it also has files/lib/wine, and LEONIDA_PROTON naming another one is refused with the reason. Without any Proton or Wine it stops and says what to install. --find-proton prints the Proton or Wine it would use, --list-protons every usable build.
    • Runs a Proton build's Wine with its library paths. Takes DXVK's dxgi.dll from that Proton or, when it has none and under the system's Wine, from LEONIDA_DXVK, the package, the distribution's DXVK or another Proton. Copies it into the prefix and sets dxgi=n.
    • Makes or updates the prefix with the same Wine when it changes or the prefix lacks the Proton's vkd3d libraries. VKD3D-Proton's shader cache goes to the Leonida cache folder.
    • When the bundled d3d12core.dll has no new structurizer, uses VKD3D-Proton from the Proton in use or, if that one lacks it too (such as proton-cachyos 11.0-20261015), from another installed Proton build that has one. The start banner names the Wine, the DXVK and the VKD3D-Proton in use.
    • --log writes the output to ~/.local/share/leonida/logs/play-MMdd-HHmmss.log, beside the prefix, and keeps the five newest logs.
  • d3d12/crates/leonida-gpu/src/host.rs: root_signature serializes a root signature from parameters and static samplers with D3D12SerializeVersionedRootSignature as version 1.1, the version the HLSL compiler builds for a [RootSignature] attribute, and creates it.
  • d3d12/crates/leonida-gpu/src/compose.rs: the descriptor table of two SRVs at t0 (pixel stage, range flag DATA_STATIC_WHILE_SET_AT_EXECUTE) and the linear, clamping static sampler at s0 are described in code with the values the attribute declared; the attribute and its #define are removed from the shader source.
  • d3d12/crates/leonida-gpu/src/host/trainer.rs: eight root constants at b0 and a descriptor table of one SRV at t0, described the same way; the attribute and its #define are removed.
  • Launcher: PLAY checks for a Proton or Wine first and starts the script with --log when chosen. Settings has a Proton or Wine list (Linux only) with the usable Proton builds, highest version first, and "System Wine"; the first entry is the default. Browse picks another Proton folder, and a line below the list appears only when that folder cannot be used. On Linux the logs and captures folders are under ~/.local/share/leonida, the same folder as the prefix. Tools, Rebuild the runtime runs the new build script on Linux after a licence confirmation. Windows behavior of the launcher is unchanged.
  • Tests: tests/test_play_linux.py (new) runs the script against Proton folders and a Wine it creates; tests/test_leonida_launcher.py covers the Proton or Wine setting, the list entries, the Linux data folders and the Linux commands.
  • Docs: docs/linux.md, docs/launcher.md, docs/boot.md.

Tested

  • python -I tests/test_play_linux.py, python -I tests/test_leonida_launcher.py, python -I tests/test_shell_launchers.py: pass.
  • scripts/play-linux.sh --list-protons lists GE-Proton11-14, Proton Experimental, proton-cachyos 11.0-20261015 and dwproton-11.0-17, and leaves out an incomplete Proton-Wineland folder (no files/lib/wine).
  • Built leonida.exe with scripts/build-d3d12-linux.sh and started it from the launcher under GE-Proton11-14 on CachyOS Linux, RX 9070 XT, Mesa 26.3.1-arch3.5: both planes are presented, the trainer menu opens.

GPUs tested: n/a (the GPU tests in runtime/test were not run)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5541809502 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577). Originally posted by [shadowplay711](https://github.com/shadowplay711) on 2026-11-28T15:37:25Z. --- ### What and why On Linux, PLAY runs `scripts/play-linux.sh`, which only looked for `leonida.exe` beside itself, and nothing in a checkout built it: `./Build.sh` builds the Vulkan loader, not `d3d12/`. The script also started the system's `wine` with Wine's own `dxgi.dll` (on `wined3d`), which crashed the game when it created its swap chain; `docs/boot.md` requires DXVK's `dxgi.dll`. Under Proton the picture then stayed black: the two-plane composer and the trainer menu took their root signatures from a `[RootSignature]` shader attribute that Wine's `d3dcompiler_47` (vkd3d-shader) ignores (`W5302: Ignoring unknown attribute "RootSignature"`), so `CreateRootSignature` failed with `E_FAIL`, the composer was never made and only the base plane was presented. The runtime is now built on Linux, runs under any installed Proton build or the system's Wine with DXVK's `dxgi.dll` and a VKD3D-Proton that has dxil-spirv's new structurizer, presents both planes and can write its output to a log file. - **`scripts/build-d3d12-linux.sh`** (new): cross-builds `leonida.exe` with cargo-xwin and fetches VKD3D-Proton and DXVK's `dxgi.dll` into `d3d12/target/`. It stops before any download unless `XWIN_ACCEPT_LICENSE=1` accepts Microsoft's SDK licence. - **`scripts/fetch_dxvk.py`** (new): fetches the 64-bit `dxgi.dll` of DXVK 3.1.1 with its licence and a source note, checked against pinned SHA-256 sums. - **`scripts/play-linux.sh`**: - Finds the runtime, VKD3D-Proton and DXVK beside itself or under `d3d12/target/`. Its errors name the command that builds or fetches them. - Uses `LEONIDA_PROTON`, else `LEONIDA_WINE`, else the usable Proton build with the highest version, else `wine` on `PATH`. Every folder with `files/bin/wine` counts as a Proton build, whatever its name, in the Steam folders (including Flatpak, Snap, `libraryfolders.vdf` and `STEAM_EXTRA_COMPAT_TOOLS_PATHS`) and the system's `compatibilitytools.d`; it is usable when it also has `files/lib/wine`, and `LEONIDA_PROTON` naming another one is refused with the reason. Without any Proton or Wine it stops and says what to install. `--find-proton` prints the Proton or Wine it would use, `--list-protons` every usable build. - Runs a Proton build's Wine with its library paths. Takes DXVK's `dxgi.dll` from that Proton or, when it has none and under the system's Wine, from `LEONIDA_DXVK`, the package, the distribution's DXVK or another Proton. Copies it into the prefix and sets `dxgi=n`. - Makes or updates the prefix with the same Wine when it changes or the prefix lacks the Proton's vkd3d libraries. VKD3D-Proton's shader cache goes to the Leonida cache folder. - When the bundled `d3d12core.dll` has no new structurizer, uses VKD3D-Proton from the Proton in use or, if that one lacks it too (such as proton-cachyos 11.0-20261015), from another installed Proton build that has one. The start banner names the Wine, the DXVK and the VKD3D-Proton in use. - `--log` writes the output to `~/.local/share/leonida/logs/play-MMdd-HHmmss.log`, beside the prefix, and keeps the five newest logs. - **`d3d12/crates/leonida-gpu/src/host.rs`**: `root_signature` serializes a root signature from parameters and static samplers with `D3D12SerializeVersionedRootSignature` as version 1.1, the version the HLSL compiler builds for a `[RootSignature]` attribute, and creates it. - **`d3d12/crates/leonida-gpu/src/compose.rs`**: the descriptor table of two SRVs at `t0` (pixel stage, range flag `DATA_STATIC_WHILE_SET_AT_EXECUTE`) and the linear, clamping static sampler at `s0` are described in code with the values the attribute declared; the attribute and its `#define` are removed from the shader source. - **`d3d12/crates/leonida-gpu/src/host/trainer.rs`**: eight root constants at `b0` and a descriptor table of one SRV at `t0`, described the same way; the attribute and its `#define` are removed. - **Launcher**: PLAY checks for a Proton or Wine first and starts the script with `--log` when chosen. Settings has a Proton or Wine list (Linux only) with the usable Proton builds, highest version first, and "System Wine"; the first entry is the default. Browse picks another Proton folder, and a line below the list appears only when that folder cannot be used. On Linux the logs and captures folders are under `~/.local/share/leonida`, the same folder as the prefix. Tools, Rebuild the runtime runs the new build script on Linux after a licence confirmation. Windows behavior of the launcher is unchanged. - **Tests**: `tests/test_play_linux.py` (new) runs the script against Proton folders and a Wine it creates; `tests/test_leonida_launcher.py` covers the Proton or Wine setting, the list entries, the Linux data folders and the Linux commands. - **Docs**: `docs/linux.md`, `docs/launcher.md`, `docs/boot.md`. ### Tested - `python -I tests/test_play_linux.py`, `python -I tests/test_leonida_launcher.py`, `python -I tests/test_shell_launchers.py`: pass. - `scripts/play-linux.sh --list-protons` lists GE-Proton11-14, Proton Experimental, proton-cachyos 11.0-20261015 and dwproton-11.0-17, and leaves out an incomplete Proton-Wineland folder (no `files/lib/wine`). - Built `leonida.exe` with `scripts/build-d3d12-linux.sh` and started it from the launcher under GE-Proton11-14 on CachyOS Linux, RX 9070 XT, Mesa 26.3.1-arch3.5: both planes are presented, the trainer menu opens. GPUs tested: n/a (the GPU tests in runtime/test were not run) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lixonik commented 2026-11-28 15:50:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-28T15:50:34Z.

Code review location: scripts/play-linux.sh; line 21

@@ -1,54 +1,359 @@
 #!/bin/sh
-# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under Wine, with the VKD3D-Proton that comes in
-# the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside this script), so nothing else needs to be
-# downloaded for Direct3D 12. Wine itself and a Vulkan driver (Mesa or NVIDIA's) are the system's.
+# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under an installed Proton build or the system's
+# Wine, with the VKD3D-Proton that comes in the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside
+# this script) and DXVK's dxgi.dll (docs/linux.md says where both come from). A Vulkan driver (Mesa or NVIDIA's) is
+# the system's.
 #
-#   ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x]
+#   ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] [--log]
+#   ./play-linux.sh --find-proton | --list-protons
 #
 # Leonida keeps its own Wine prefix (LEONIDA_WINEPREFIX, default ~/.local/share/leonida/prefix): the bundled
 # d3d12.dll and d3d12core.dll are installed there and preferred over Wine's (WINEDLLOVERRIDES), so no other prefix
 # is changed. LEONIDA_* variables already set win over the defaults below.
 set -eu
 
+dxvk=files/lib/wine/dxvk/x86_64-windows
+proton_vkd3d=files/lib/wine/vkd3d-proton/x86_64-windows
+
+proton_problem() {
+    if [ ! -x "$1/files/bin/wine" ]; then
+        echo "no files/bin/wine"
+    elif [ ! -d "$1/files/lib/wine" ] && [ ! -d "$1/files/lib64/wine" ]; then

proton_problem accepts a Proton tree with only files/lib64/wine, but DXVK and VKD3D discovery and WINEDLLPATH only look under files/lib. I took the existing synthetic Proton fixture, verified --find-proton succeeds, then renamed its files/lib to files/lib64 with no other Proton or bundled DXVK. The same build still appears in --list-protons, but --find-proton exits 1 asking for DXVK even though that build contains it. Giving LEONIDA_DXVK explicitly lets the script reach the Wine stub, whose WINEDLLPATH still omits files/lib64/wine. Could discovery and launch use the same library roots and add this variant to the fixtures?

<!-- greyfinch-sync:ubiquitarianism/leonida:review-comment:4727744072 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#discussion_r4727744072). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-28T15:50:34Z. **Code review location:** `scripts/play-linux.sh`; line 21 ~~~~diff @@ -1,54 +1,359 @@ #!/bin/sh -# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under Wine, with the VKD3D-Proton that comes in -# the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside this script), so nothing else needs to be -# downloaded for Direct3D 12. Wine itself and a Vulkan driver (Mesa or NVIDIA's) are the system's. +# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under an installed Proton build or the system's +# Wine, with the VKD3D-Proton that comes in the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside +# this script) and DXVK's dxgi.dll (docs/linux.md says where both come from). A Vulkan driver (Mesa or NVIDIA's) is +# the system's. # -# ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] +# ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] [--log] +# ./play-linux.sh --find-proton | --list-protons # # Leonida keeps its own Wine prefix (LEONIDA_WINEPREFIX, default ~/.local/share/leonida/prefix): the bundled # d3d12.dll and d3d12core.dll are installed there and preferred over Wine's (WINEDLLOVERRIDES), so no other prefix # is changed. LEONIDA_* variables already set win over the defaults below. set -eu +dxvk=files/lib/wine/dxvk/x86_64-windows +proton_vkd3d=files/lib/wine/vkd3d-proton/x86_64-windows + +proton_problem() { + if [ ! -x "$1/files/bin/wine" ]; then + echo "no files/bin/wine" + elif [ ! -d "$1/files/lib/wine" ] && [ ! -d "$1/files/lib64/wine" ]; then ~~~~ --- `proton_problem` accepts a Proton tree with only `files/lib64/wine`, but DXVK and VKD3D discovery and `WINEDLLPATH` only look under `files/lib`. I took the existing synthetic Proton fixture, verified `--find-proton` succeeds, then renamed its `files/lib` to `files/lib64` with no other Proton or bundled DXVK. The same build still appears in `--list-protons`, but `--find-proton` exits 1 asking for DXVK even though that build contains it. Giving `LEONIDA_DXVK` explicitly lets the script reach the Wine stub, whose `WINEDLLPATH` still omits `files/lib64/wine`. Could discovery and launch use the same library roots and add this variant to the fixtures?
lixonik commented 2026-11-28 15:50:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-28T15:50:34Z.

Review: COMMENTED


Reviewed c99f7d131 merged locally with main c1ecf04ed. On Ubuntu 22.04 under WSL2, using synthetic Proton/Wine fixtures, all 70 checks passed across test_play_linux.py (42), test_leonida_launcher.py (21), and test_shell_launchers.py (7). Both shell scripts pass dash -n, and the changed files pass check_no_game_data.py.

One additional fixture reproduced the launch issue below. Coverage here is the launcher and shell paths with stub Wine processes.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6098865513 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#pullrequestreview-6098865513). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-28T15:50:34Z. **Review:** COMMENTED --- Reviewed `c99f7d131` merged locally with `main` `c1ecf04ed`. On Ubuntu 22.04 under WSL2, using synthetic Proton/Wine fixtures, all 70 checks passed across `test_play_linux.py` (42), `test_leonida_launcher.py` (21), and `test_shell_launchers.py` (7). Both shell scripts pass `dash -n`, and the changed files pass `check_no_game_data.py`. One additional fixture reproduced the launch issue below. Coverage here is the launcher and shell paths with stub Wine processes. AI-assisted.
shadowplay711 commented 2026-11-28 16:10:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by shadowplay711 on 2026-11-28T16:10:04Z.

Code review location: scripts/play-linux.sh; line 21

@@ -1,54 +1,359 @@
 #!/bin/sh
-# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under Wine, with the VKD3D-Proton that comes in
-# the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside this script), so nothing else needs to be
-# downloaded for Direct3D 12. Wine itself and a Vulkan driver (Mesa or NVIDIA's) are the system's.
+# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under an installed Proton build or the system's
+# Wine, with the VKD3D-Proton that comes in the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside
+# this script) and DXVK's dxgi.dll (docs/linux.md says where both come from). A Vulkan driver (Mesa or NVIDIA's) is
+# the system's.
 #
-#   ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x]
+#   ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] [--log]
+#   ./play-linux.sh --find-proton | --list-protons
 #
 # Leonida keeps its own Wine prefix (LEONIDA_WINEPREFIX, default ~/.local/share/leonida/prefix): the bundled
 # d3d12.dll and d3d12core.dll are installed there and preferred over Wine's (WINEDLLOVERRIDES), so no other prefix
 # is changed. LEONIDA_* variables already set win over the defaults below.
 set -eu
 
+dxvk=files/lib/wine/dxvk/x86_64-windows
+proton_vkd3d=files/lib/wine/vkd3d-proton/x86_64-windows
+
+proton_problem() {
+    if [ ! -x "$1/files/bin/wine" ]; then
+        echo "no files/bin/wine"
+    elif [ ! -d "$1/files/lib/wine" ] && [ ! -d "$1/files/lib64/wine" ]; then

Thanks for testing this and for the lib64 repro. You're right: discovery accepted files/lib64/wine, but the DXVK and VKD3D-Proton lookup and WINEDLLPATH only used files/lib.

Fixed in f1113352:

  • DXVK's dxgi.dll and VKD3D-Proton are looked up under files/lib and files/lib64, with and without the x86_64-windows folder (the older Proton layout).
  • WINEDLLPATH gets files/lib64/{vkd3d,wine} ahead of files/lib/{vkd3d,wine}, and LD_LIBRARY_PATH also gets files/lib64.
  • The prefix check looks for libvkd3d-1.dll under both roots.
  • New fixtures in tests/test_play_linux.py: a Proton with only files/lib64 (listed, --find-proton, start with its own DXVK and paths), one with both roots (lib64 first), and the older layout for DXVK and VKD3D-Proton. They fail on the previous head and pass now; test_play_linux.py runs 47 tests.
  • docs/linux.md names both files/lib/wine and files/lib64/wine.
<!-- greyfinch-sync:ubiquitarianism/leonida:review-comment:4727815008 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#discussion_r4727815008). Originally posted by [shadowplay711](https://github.com/shadowplay711) on 2026-11-28T16:10:04Z. **Code review location:** `scripts/play-linux.sh`; line 21 ~~~~diff @@ -1,54 +1,359 @@ #!/bin/sh -# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under Wine, with the VKD3D-Proton that comes in -# the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside this script), so nothing else needs to be -# downloaded for Direct3D 12. Wine itself and a Vulkan driver (Mesa or NVIDIA's) are the system's. +# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under an installed Proton build or the system's +# Wine, with the VKD3D-Proton that comes in the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside +# this script) and DXVK's dxgi.dll (docs/linux.md says where both come from). A Vulkan driver (Mesa or NVIDIA's) is +# the system's. # -# ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] +# ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] [--log] +# ./play-linux.sh --find-proton | --list-protons # # Leonida keeps its own Wine prefix (LEONIDA_WINEPREFIX, default ~/.local/share/leonida/prefix): the bundled # d3d12.dll and d3d12core.dll are installed there and preferred over Wine's (WINEDLLOVERRIDES), so no other prefix # is changed. LEONIDA_* variables already set win over the defaults below. set -eu +dxvk=files/lib/wine/dxvk/x86_64-windows +proton_vkd3d=files/lib/wine/vkd3d-proton/x86_64-windows + +proton_problem() { + if [ ! -x "$1/files/bin/wine" ]; then + echo "no files/bin/wine" + elif [ ! -d "$1/files/lib/wine" ] && [ ! -d "$1/files/lib64/wine" ]; then ~~~~ --- Thanks for testing this and for the lib64 repro. You're right: discovery accepted files/lib64/wine, but the DXVK and VKD3D-Proton lookup and WINEDLLPATH only used files/lib. Fixed in f1113352: - DXVK's dxgi.dll and VKD3D-Proton are looked up under files/lib and files/lib64, with and without the x86_64-windows folder (the older Proton layout). - WINEDLLPATH gets files/lib64/{vkd3d,wine} ahead of files/lib/{vkd3d,wine}, and LD_LIBRARY_PATH also gets files/lib64. - The prefix check looks for libvkd3d-1.dll under both roots. - New fixtures in tests/test_play_linux.py: a Proton with only files/lib64 (listed, --find-proton, start with its own DXVK and paths), one with both roots (lib64 first), and the older layout for DXVK and VKD3D-Proton. They fail on the previous head and pass now; test_play_linux.py runs 47 tests. - docs/linux.md names both files/lib/wine and files/lib64/wine.
lixonik commented 2026-11-28 20:00:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-28T20:00:04Z.

Review: APPROVED


Re-reviewed 32ae9bf82 (including f1113352 and the main merge) and re-tested on Ubuntu under WSL2.

Code audit:

  • scripts/play-linux.sh: proton_dxvk, proton_new_vkd3d, WINEDLLPATH, LD_LIBRARY_PATH, and the prefix libvkd3d-1.dll check now handle both files/lib and files/lib64 (with lib64 ordered first and older non-x86_64-windows layouts supported).
  • tests/test_play_linux.py: the 5 new fixtures cover lib64-only, both-roots ordering, and old-layout DXVK/VKD3D-Proton discovery.

Verification (Ubuntu under WSL2, synthetic Proton/Wine fixtures):

  • dash -n scripts/play-linux.sh: passed.
  • python3 -I tests/test_play_linux.py -v: 47/47 passed (1.62 s).
  • python3 -I tests/test_leonida_launcher.py -v: 23/23 passed (0.14 s).
  • python3 -I tests/test_shell_launchers.py -v: 7/7 passed (0.09 s).
  • python -I scripts/check_no_game_data.py: passed.

AI-assisted (Antigravity, Gemini).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6099867106 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#pullrequestreview-6099867106). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-28T20:00:04Z. **Review:** APPROVED --- Re-reviewed `32ae9bf82` (including `f1113352` and the `main` merge) and re-tested on Ubuntu under WSL2. Code audit: - `scripts/play-linux.sh`: `proton_dxvk`, `proton_new_vkd3d`, `WINEDLLPATH`, `LD_LIBRARY_PATH`, and the prefix `libvkd3d-1.dll` check now handle both `files/lib` and `files/lib64` (with `lib64` ordered first and older non-`x86_64-windows` layouts supported). - `tests/test_play_linux.py`: the 5 new fixtures cover lib64-only, both-roots ordering, and old-layout DXVK/VKD3D-Proton discovery. Verification (Ubuntu under WSL2, synthetic Proton/Wine fixtures): - `dash -n scripts/play-linux.sh`: passed. - `python3 -I tests/test_play_linux.py -v`: **47/47 passed** (1.62 s). - `python3 -I tests/test_leonida_launcher.py -v`: **23/23 passed** (0.14 s). - `python3 -I tests/test_shell_launchers.py -v`: **7/7 passed** (0.09 s). - `python -I scripts/check_no_game_data.py`: passed. AI-assisted (Antigravity, Gemini).
merzleckeier commented 2026-11-28 20:25:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-28T20:25:05Z.


I verified this PR at 32ae9bf82bb9fbcc8319f2762e5f2e2dcdb068fb on a desktop RTX 4070 SUPER (12 GiB), NVIDIA 620.73.04, CachyOS (kernel 7.3.6-3), and system Wine 11.22. Both offline Series S runs used vkd3d-proton 71cae091 and DXVK DXGI 3.1.1-97-ga78a467cadb22be-pcos from the distro's Proton-CachyOS. Mandy, vkd3d, and driver caches started cold in separate state directories.

  • With baseline 27130ea23 and only DXVK DXGI added, the 1920 × 1080 host swapchain opened and the original Wine DXGI crash was gone. The two-plane compositor failed with E_FAIL, leaving the base-plane fallback.
  • At the PR head, the 1920 × 1080 swapchain composited both planes with the overlay active. The window had visible output and I stopped the run after 117 seconds. This check was limited to startup and presentation.

One test issue on a system with Proton installed. test_an_old_layout_proton_dxvk_under_lib64_is_used lets normal discovery run, so the system-wide Proton-CachyOS outranks the proton-5.13-6 fixture and starts its own wineboot. I reproduced the failure with just this test. The complete file passed with the system Proton directory hidden (46 passed, 1 skipped). Explicitly selecting the fixture with self.run_script(str(self.game), LEONIDA_PROTON=str(proton)) also made the focused case pass on the same machine. Other tests already cover automatic discovery. Affected test

CachyOS retest at 7ff494f3c. I kept the system Proton-CachyOS installation visible. The old-layout DXVK case still failed at 32ae9bf82, and it passed at 7ff494f3c. The full launcher file improved from 36 passed, 1 failed, 10 skipped to 37 passed, 0 failed, 10 skipped. test_leonida_launcher.py had 22 passed and 1 skipped, and test_shell_launchers.py had 7 passed. This confirms the fixture-selection fix on the affected host. The retest used temporary launcher fixtures offline.

AI-assisted with Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7245271009 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7245271009). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-28T20:25:05Z. --- I verified this PR at `32ae9bf82bb9fbcc8319f2762e5f2e2dcdb068fb` on a desktop RTX 4070 SUPER (12 GiB), NVIDIA 620.73.04, CachyOS (kernel 7.3.6-3), and system Wine 11.22. Both offline Series S runs used vkd3d-proton `71cae091` and DXVK DXGI `3.1.1-97-ga78a467cadb22be-pcos` from the distro's Proton-CachyOS. Mandy, vkd3d, and driver caches started cold in separate state directories. - With baseline `27130ea23` and only DXVK DXGI added, the 1920 × 1080 host swapchain opened and the original Wine DXGI crash was gone. The two-plane compositor failed with `E_FAIL`, leaving the base-plane fallback. - At the PR head, the 1920 × 1080 swapchain composited both planes with the overlay active. The window had visible output and I stopped the run after 117 seconds. This check was limited to startup and presentation. One test issue on a system with Proton installed. `test_an_old_layout_proton_dxvk_under_lib64_is_used` lets normal discovery run, so the system-wide Proton-CachyOS outranks the `proton-5.13-6` fixture and starts its own `wineboot`. I reproduced the failure with just this test. The complete file passed with the system Proton directory hidden (46 passed, 1 skipped). Explicitly selecting the fixture with `self.run_script(str(self.game), LEONIDA_PROTON=str(proton))` also made the focused case pass on the same machine. Other tests already cover automatic discovery. [Affected test](https://github.com/ProjectLeonida/mandy/blob/32ae9bf82bb9fbcc8319f2762e5f2e2dcdb068fb/tests/test_play_linux.py#L505-L517) **CachyOS retest at `7ff494f3c`.** I kept the system Proton-CachyOS installation visible. The old-layout DXVK case still failed at `32ae9bf82`, and it passed at `7ff494f3c`. The full launcher file improved from 36 passed, 1 failed, 10 skipped to 37 passed, 0 failed, 10 skipped. `test_leonida_launcher.py` had 22 passed and 1 skipped, and `test_shell_launchers.py` had 7 passed. This confirms the fixture-selection fix on the affected host. The retest used temporary launcher fixtures offline. AI-assisted with Codex.
lixonik commented 2026-11-28 20:52:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-28T20:52:01Z.

Code review location: scripts/play-linux.sh; line 21

@@ -1,54 +1,359 @@
 #!/bin/sh
-# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under Wine, with the VKD3D-Proton that comes in
-# the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside this script), so nothing else needs to be
-# downloaded for Direct3D 12. Wine itself and a Vulkan driver (Mesa or NVIDIA's) are the system's.
+# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under an installed Proton build or the system's
+# Wine, with the VKD3D-Proton that comes in the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside
+# this script) and DXVK's dxgi.dll (docs/linux.md says where both come from). A Vulkan driver (Mesa or NVIDIA's) is
+# the system's.
 #
-#   ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x]
+#   ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] [--log]
+#   ./play-linux.sh --find-proton | --list-protons
 #
 # Leonida keeps its own Wine prefix (LEONIDA_WINEPREFIX, default ~/.local/share/leonida/prefix): the bundled
 # d3d12.dll and d3d12core.dll are installed there and preferred over Wine's (WINEDLLOVERRIDES), so no other prefix
 # is changed. LEONIDA_* variables already set win over the defaults below.
 set -eu
 
+dxvk=files/lib/wine/dxvk/x86_64-windows
+proton_vkd3d=files/lib/wine/vkd3d-proton/x86_64-windows
+
+proton_problem() {
+    if [ ! -x "$1/files/bin/wine" ]; then
+        echo "no files/bin/wine"
+    elif [ ! -d "$1/files/lib/wine" ] && [ ! -d "$1/files/lib64/wine" ]; then

Verified the follow-up at 7ff494f3c merged locally with main 1bc055e6c. All 77 launcher/script checks passed under Ubuntu 22.04 / WSL2, including the explicit old-layout Proton selection, automatic lib64-only discovery and launch, and the dual-root library order. Both shell scripts passed dash -n. This closes my lib64 finding. Synthetic Wine stubs.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review-comment:4728762669 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#discussion_r4728762669). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-28T20:52:01Z. **Code review location:** `scripts/play-linux.sh`; line 21 ~~~~diff @@ -1,54 +1,359 @@ #!/bin/sh -# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under Wine, with the VKD3D-Proton that comes in -# the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside this script), so nothing else needs to be -# downloaded for Direct3D 12. Wine itself and a Vulkan driver (Mesa or NVIDIA's) are the system's. +# Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under an installed Proton build or the system's +# Wine, with the VKD3D-Proton that comes in the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside +# this script) and DXVK's dxgi.dll (docs/linux.md says where both come from). A Vulkan driver (Mesa or NVIDIA's) is +# the system's. # -# ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] +# ./play-linux.sh /path/to/your/game_scarlett_master.exe [--series-x] [--log] +# ./play-linux.sh --find-proton | --list-protons # # Leonida keeps its own Wine prefix (LEONIDA_WINEPREFIX, default ~/.local/share/leonida/prefix): the bundled # d3d12.dll and d3d12core.dll are installed there and preferred over Wine's (WINEDLLOVERRIDES), so no other prefix # is changed. LEONIDA_* variables already set win over the defaults below. set -eu +dxvk=files/lib/wine/dxvk/x86_64-windows +proton_vkd3d=files/lib/wine/vkd3d-proton/x86_64-windows + +proton_problem() { + if [ ! -x "$1/files/bin/wine" ]; then + echo "no files/bin/wine" + elif [ ! -d "$1/files/lib/wine" ] && [ ! -d "$1/files/lib64/wine" ]; then ~~~~ --- Verified the follow-up at `7ff494f3c` merged locally with `main` `1bc055e6c`. All 77 launcher/script checks passed under Ubuntu 22.04 / WSL2, including the explicit old-layout Proton selection, automatic lib64-only discovery and launch, and the dual-root library order. Both shell scripts passed `dash -n`. This closes my lib64 finding. Synthetic Wine stubs. AI-assisted.
zmasi commented 2026-11-28 21:19:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T21:19:35Z.


Windows 11 + RTX 3090 D3D12 & WARP Verification (7ff494f3cf)

Verified commit 7ff494f3cf345c523738a46edded871d23fe9632 merged cleanly onto main (1bc055e6c2) on Windows 11 (x86_64-pc-windows-msvc) with physical NVIDIA GeForce RTX 3090 (Ampere, D3D12 driver 610.88) and WARP under the D3D12 debug layer (LEONIDA_D3D12_DEBUG=1).

Red -> Green Summary

  • Red (main 1bc055e6c2): python -I tests/test_leonida_launcher.py -> FAILED (failures=2, errors=5, skipped=3).
  • Green (7ff494f3cf + main 1bc055e6c2):
    1. D3D12 v1.1 Root Signature Serialization (compose.rs, host.rs::root_signature, host/trainer.rs):
      • LEONIDA_D3D12_DEBUG=1 cargo test --locked -p leonida-gpu --features diagnostics --lib -- --nocapture --test-threads=4 compose:
        • RTX 3090 (610.88): 3/3 passed (D3D12 display-plane readback RGBA: [127, 0, 0, 255, 64, 127, 0, 255, 0, 0, 255, 255], 0 D3D12 debug-layer errors).
        • WARP (LEONIDA_D3D12_WARP=1): 3/3 passed (D3D12 display-plane readback RGBA: [128, 0, 0, 255, 64, 128, 0, 255, 0, 0, 255, 255], 0 D3D12 debug-layer errors).
      • LEONIDA_D3D12_DEBUG=1 cargo test --locked -p leonida-gpu --features diagnostics --lib -- --nocapture --test-threads=4 trainer:
        • RTX 3090 (610.88): 4/4 passed (the_overlay_draws_the_menu_offscreen rendered cleanly, 0 D3D12 debug-layer errors).
        • WARP (LEONIDA_D3D12_WARP=1): 4/4 passed (0 D3D12 debug-layer errors).
      • cargo clippy --locked -p leonida-gpu --features diagnostics --lib --tests: 0 warnings in touched files.
    2. Launcher, Cross-Platform Guards, & Repo Hygiene on Windows 11:
      • python -I tests/test_leonida_launcher.py: 20 passed, 3 POSIX /bin/sh tests cleanly skipped (OK (skipped=3)).
      • python -I tests/test_play_linux.py: 47 Linux-host tests cleanly skipped (OK (skipped=47)).
      • python -I tests/test_ci_registration.py (18 OK), python -I tests/test_runner_calls_all_tests.py (3 OK), python -I tests/test_docs_encoding.py (1 OK), python -I tests/test_text_write_line_endings.py (3 OK), python -I scripts/check_no_game_data.py (0 issues), and git diff --check all passed cleanly.

No Windows regressions found.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7245936305 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7245936305). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T21:19:35Z. --- ### Windows 11 + RTX 3090 D3D12 & WARP Verification (`7ff494f3cf`) Verified commit `7ff494f3cf345c523738a46edded871d23fe9632` merged cleanly onto `main` (`1bc055e6c2`) on Windows 11 (`x86_64-pc-windows-msvc`) with physical **NVIDIA GeForce RTX 3090** (Ampere, D3D12 driver `610.88`) and **WARP** under the D3D12 debug layer (`LEONIDA_D3D12_DEBUG=1`). #### Red -> Green Summary - **Red (`main` `1bc055e6c2`)**: `python -I tests/test_leonida_launcher.py` -> `FAILED (failures=2, errors=5, skipped=3)`. - **Green (`7ff494f3cf` + `main` `1bc055e6c2`)**: 1. **D3D12 v1.1 Root Signature Serialization (`compose.rs`, `host.rs::root_signature`, `host/trainer.rs`)**: - `LEONIDA_D3D12_DEBUG=1 cargo test --locked -p leonida-gpu --features diagnostics --lib -- --nocapture --test-threads=4 compose`: - **RTX 3090 (`610.88`)**: **`3/3` passed** (`D3D12 display-plane readback RGBA: [127, 0, 0, 255, 64, 127, 0, 255, 0, 0, 255, 255]`, `0` D3D12 debug-layer errors). - **WARP (`LEONIDA_D3D12_WARP=1`)**: **`3/3` passed** (`D3D12 display-plane readback RGBA: [128, 0, 0, 255, 64, 128, 0, 255, 0, 0, 255, 255]`, `0` D3D12 debug-layer errors). - `LEONIDA_D3D12_DEBUG=1 cargo test --locked -p leonida-gpu --features diagnostics --lib -- --nocapture --test-threads=4 trainer`: - **RTX 3090 (`610.88`)**: **`4/4` passed** (`the_overlay_draws_the_menu_offscreen` rendered cleanly, `0` D3D12 debug-layer errors). - **WARP (`LEONIDA_D3D12_WARP=1`)**: **`4/4` passed** (`0` D3D12 debug-layer errors). - `cargo clippy --locked -p leonida-gpu --features diagnostics --lib --tests`: `0` warnings in touched files. 2. **Launcher, Cross-Platform Guards, & Repo Hygiene on Windows 11**: - `python -I tests/test_leonida_launcher.py`: **`20` passed, `3` POSIX `/bin/sh` tests cleanly skipped** (`OK (skipped=3)`). - `python -I tests/test_play_linux.py`: **`47` Linux-host tests cleanly skipped** (`OK (skipped=47)`). - `python -I tests/test_ci_registration.py` (`18 OK`), `python -I tests/test_runner_calls_all_tests.py` (`3 OK`), `python -I tests/test_docs_encoding.py` (`1 OK`), `python -I tests/test_text_write_line_endings.py` (`3 OK`), `python -I scripts/check_no_game_data.py` (`0` issues), and `git diff --check` all passed cleanly. No Windows regressions found. AI-assisted.
OreoFR commented 2026-11-28 22:05:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T22:05:06Z.


Verified by OreoFR

  • Base: main 54d27d988 + PR head f1113352a (tested at f1113352a, head is now 7ff494f3c)
  • Test: not run (merge conflict with main)
  • Red on main: not run
  • Green with the PR: not run
  • Verdict: CONFLICT (conflicts with main in tools/leonida_launcher.py. On an older main it merged: red 2 failures + 5 errors, green 21 OK (3 skipped); test_play_linux is skipped on Windows (POSIX shell script), to test on Linux; compose.rs and trainer.rs change the composer/F4 menu root signatures, so a game run is needed after the rebase)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246484467 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7246484467). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T22:05:06Z. --- **Verified by OreoFR** - Base: main `54d27d988` + PR head `f1113352a` (tested at `f1113352a`, head is now `7ff494f3c`) - Test: not run (merge conflict with main) - Red on main: not run - Green with the PR: not run - Verdict: CONFLICT (conflicts with main in tools/leonida_launcher.py. On an older main it merged: red 2 failures + 5 errors, green 21 OK (3 skipped); test_play_linux is skipped on Windows (POSIX shell script), to test on Linux; compose.rs and trainer.rs change the composer/F4 menu root signatures, so a game run is needed after the rebase) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
merzleckeier commented 2026-11-28 23:47:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-28T23:47:57Z.


One additional launcher edge case on 7ff494f3c (tested merged with a9e247cd6; the merge also resolves cleanly against e1d87a4a). vkd3d-proton documents VKD3D_SHADER_CACHE_PATH=0 as the switch to disable its internal shader cache. The new mkdir -p treats it as a path and creates a literal 0 in the caller's directory. From a read-only working directory it exits 1 before Wine is invoked.

A synthetic Wine fixture reproduced both cases. Preparing the Leonida cache/data directories unconditionally and calling mkdir -p "$VKD3D_SHADER_CACHE_PATH" only when its value differs from 0 fixed both. Wine still received the literal 0, and the default directory and an explicit path containing spaces still worked. With a regression case added, test_play_linux.py ran 48 tests with one skip in the isolated fixture environment. No game files used. AI-assisted with Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247670684 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7247670684). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-28T23:47:57Z. --- One additional launcher edge case on `7ff494f3c` (tested merged with `a9e247cd6`; the merge also resolves cleanly against `e1d87a4a`). [vkd3d-proton documents `VKD3D_SHADER_CACHE_PATH=0`](https://github.com/HansKristian-Work/vkd3d-proton/blob/71cae091b06571e/README.md#disable-cache) as the switch to disable its internal shader cache. The new `mkdir -p` treats it as a path and creates a literal `0` in the caller's directory. From a read-only working directory it exits 1 before Wine is invoked. A synthetic Wine fixture reproduced both cases. Preparing the Leonida cache/data directories unconditionally and calling `mkdir -p "$VKD3D_SHADER_CACHE_PATH"` only when its value differs from `0` fixed both. Wine still received the literal `0`, and the default directory and an explicit path containing spaces still worked. With a regression case added, `test_play_linux.py` ran 48 tests with one skip in the isolated fixture environment. No game files used. AI-assisted with Codex.
timbot103 commented 2026-11-29 01:06:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-29T01:06:30Z.

Review: COMMENTED


Static audit of 0299208f3 against 48bae6cad. Both shell scripts passed syntax checks. Real Wine, cross-build, and GPU verification are covered by the earlier reports on their stated revisions.

  • scripts/play-linux.sh:364 — Installing DXGI with cp can overwrite the target of a prefix DLL symlink or abort on a dangling link. Stage and atomically replace the prefix DLL entry for each of the three DLLs.
  • scripts/play-linux.sh:365 — Wine honors the last duplicate override. Appending inherited overrides lets an existing dxgi=b defeat the required DXVK selection. Put the required native rules last.
  • scripts/build-d3d12-linux.sh:35 — Pin the output directory passed to Cargo or resolve its configured path. A custom target directory currently leaves the build check looking at a missing or stale executable.
  • scripts/build-d3d12-linux.sh:60 — A failed late license download leaves a DLL that makes the next rebuild skip the fetch. Publish complete DXVK and VKD3D bundles and check completion before skipping.
  • tools/leonida_launcher.py:223 — Selecting the first named Proton can still use an inherited runner override. Give automatic selection its own entry and store the actual runner for named choices.
  • scripts/play-linux.sh:206 — Clear CDPATH before resolving relative paths. A nonempty search entry can put two lines into the Proton path.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6100840926 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#pullrequestreview-6100840926). Originally posted by [timbot103](https://github.com/timbot103) on 2026-11-29T01:06:30Z. **Review:** COMMENTED --- Static audit of `0299208f3` against `48bae6cad`. Both shell scripts passed syntax checks. Real Wine, cross-build, and GPU verification are covered by the earlier reports on their stated revisions. - `scripts/play-linux.sh:364` — Installing DXGI with `cp` can overwrite the target of a prefix DLL symlink or abort on a dangling link. Stage and atomically replace the prefix DLL entry for each of the three DLLs. - `scripts/play-linux.sh:365` — Wine honors the last duplicate override. Appending inherited overrides lets an existing `dxgi=b` defeat the required DXVK selection. Put the required native rules last. - `scripts/build-d3d12-linux.sh:35` — Pin the output directory passed to Cargo or resolve its configured path. A custom target directory currently leaves the build check looking at a missing or stale executable. - `scripts/build-d3d12-linux.sh:60` — A failed late license download leaves a DLL that makes the next rebuild skip the fetch. Publish complete DXVK and VKD3D bundles and check completion before skipping. - `tools/leonida_launcher.py:223` — Selecting the first named Proton can still use an inherited runner override. Give automatic selection its own entry and store the actual runner for named choices. - `scripts/play-linux.sh:206` — Clear `CDPATH` before resolving relative paths. A nonempty search entry can put two lines into the Proton path. AI-assisted.
lixonik commented 2026-11-29 05:55:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-29T05:55:25Z.

Review: APPROVED


Re-reviewed 628f5bffd (0299208f3 + 628f5bffd).

All follow-up items are cleanly addressed:

  • scripts/play-linux.sh: leaves VKD3D_SHADER_CACHE_PATH=0 untouched without creating a literal 0 directory, clears CDPATH, stages and atomically replaces prefix DLLs (install_dll, safe against symlinks and dangling links), and appends d3d12,d3d12core,dxgi=n after inherited WINEDLLOVERRIDES.
  • scripts/build-d3d12-linux.sh: passes --target-dir "$d3d12/target" and checks complete bundle files including SOURCE.txt.
  • tools/leonida_launcher.py: adds an explicit Automatic entry and clears inherited LEONIDA_WINE when a named Proton folder is selected.

Local verification (Windows 11, Python 3):

  • python -I tests/test_leonida_launcher.py -v: 21 tests ran, OK (3 skipped: POSIX shell script tests).
  • python -I scripts/check_no_game_data.py: passed.

AI-assisted (Antigravity, Gemini).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6101656683 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#pullrequestreview-6101656683). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-29T05:55:25Z. **Review:** APPROVED --- Re-reviewed `628f5bffd` (`0299208f3` + `628f5bffd`). All follow-up items are cleanly addressed: - `scripts/play-linux.sh`: leaves `VKD3D_SHADER_CACHE_PATH=0` untouched without creating a literal `0` directory, clears `CDPATH`, stages and atomically replaces prefix DLLs (`install_dll`, safe against symlinks and dangling links), and appends `d3d12,d3d12core,dxgi=n` after inherited `WINEDLLOVERRIDES`. - `scripts/build-d3d12-linux.sh`: passes `--target-dir "$d3d12/target"` and checks complete bundle files including `SOURCE.txt`. - `tools/leonida_launcher.py`: adds an explicit `Automatic` entry and clears inherited `LEONIDA_WINE` when a named Proton folder is selected. Local verification (Windows 11, Python 3): - `python -I tests/test_leonida_launcher.py -v`: 21 tests ran, OK (3 skipped: POSIX shell script tests). - `python -I scripts/check_no_game_data.py`: passed. AI-assisted (Antigravity, Gemini).
merzleckeier commented 2026-11-29 10:37:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T10:37:46Z.


I isolated the Series S compositor changes from 628f5bffd on main 7b907de52, using only the changes to compose.rs and its root-signature helper in host.rs. Both offline Series S starts used the same launcher, copies of the same warm caches, Wine 11.22, VKD3D-Proton 71cae091, and DXVK DXGI on an RTX 4070 SUPER (NVIDIA 620.73.04, CachyOS).

  • Main repeatedly returned E_FAIL while creating the two-plane compositor (2,649 fallback messages). Sampling the D3D12 readback before Present showed the same black or nearly uniform image as Gamescope.
  • With the two compositor hunks, two-plane composition was active on frame 1, with zero fallback messages. The Series S menu/controller prompts were visible in the compositor output. Both runs closed normally. Open-world play remains unverified.
  • The existing compiler fixture passed on both versions. The existing scaled premultiplied-plane render/readback test failed at Composer creation on stock main and passed with the hunks on both RTX 4070 SUPER and Radeon 610M (RADV 26.3.1). The GPU fixtures used synthetic textures and no game files.

AI-assisted with OpenAI Codex (GPT-6).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7254562283 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7254562283). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T10:37:46Z. --- I isolated the Series S compositor changes from `628f5bffd` on main `7b907de52`, using only the changes to `compose.rs` and its root-signature helper in `host.rs`. Both offline Series S starts used the same launcher, copies of the same warm caches, Wine 11.22, VKD3D-Proton `71cae091`, and DXVK DXGI on an RTX 4070 SUPER (NVIDIA 620.73.04, CachyOS). - Main repeatedly returned `E_FAIL` while creating the two-plane compositor (2,649 fallback messages). Sampling the D3D12 readback before Present showed the same black or nearly uniform image as Gamescope. - With the two compositor hunks, two-plane composition was active on frame 1, with zero fallback messages. The Series S menu/controller prompts were visible in the compositor output. Both runs closed normally. Open-world play remains unverified. - The existing compiler fixture passed on both versions. The existing scaled premultiplied-plane render/readback test failed at Composer creation on stock main and passed with the hunks on both RTX 4070 SUPER and Radeon 610M (RADV 26.3.1). The GPU fixtures used synthetic textures and no game files. AI-assisted with OpenAI Codex (GPT-6).
kuzeyc commented 2026-11-29 15:17:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kuzeyc on 2026-11-29T15:17:50Z.


Tested this branch at 628f5bffd on NVIDIA under Proton: it gets into the world.

Machine: RTX 3070 8 GB, NVIDIA 610.57.04 (kernel 6.18.65-lts), Ryzen 5 7600X, Arch Linux. Proton Hotfix (hotfix-20261110), picked by play-linux.sh by itself; GE-Proton11-15 and Proton Experimental also installed. Fresh LEONIDA_WINEPREFIX. leonida.exe from build-d3d12-linux.sh (diag, diagnostics,mimalloc) with cargo-xwin.

  • tests/test_play_linux.py 51 OK (1 skipped), tests/test_build_d3d12_linux.py 6 OK, tests/test_leonida_launcher.py 24 OK.
  • build-d3d12-linux.sh built leonida.exe and fetched VKD3D-Proton 3.1 and DXVK 3.1.1.
  • play-linux.sh: "with DXVK's dxgi and the VKD3D-Proton of hotfix-20261110-x86_64 (vkd3d-1.1-5729-g00b6ef057)". No swap-chain crash.
  • The structurizer check matters on NVIDIA: on main with VKD3D-Proton 3.1, every run on this card died in vkCreateComputePipelines (0xc0000005, on 620.73.04 and 610.57.04 alike) at the same early moment, whatever shaders were skipped. With this branch it got past that and into the world on foot.
  • The first run is very slow: 0.1 fps with ~10 s a frame "waiting for pipelines" (black screen, sound plays) while about 1,200 pipelines built, then about 1.5 fps. A pipeline pre-build step like play-d3d12.ps1's would help here.
  • It ended after about 14 minutes on a breakpoint in the title, "unhandled exception 0x80000003 at
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7257976944 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7257976944). Originally posted by [kuzeyc](https://github.com/kuzeyc) on 2026-11-29T15:17:50Z. --- Tested this branch at 628f5bffd on NVIDIA under Proton: it gets into the world. Machine: RTX 3070 8 GB, NVIDIA 610.57.04 (kernel 6.18.65-lts), Ryzen 5 7600X, Arch Linux. Proton Hotfix (hotfix-20261110), picked by play-linux.sh by itself; GE-Proton11-15 and Proton Experimental also installed. Fresh LEONIDA_WINEPREFIX. leonida.exe from build-d3d12-linux.sh (diag, diagnostics,mimalloc) with cargo-xwin. - tests/test_play_linux.py 51 OK (1 skipped), tests/test_build_d3d12_linux.py 6 OK, tests/test_leonida_launcher.py 24 OK. - build-d3d12-linux.sh built leonida.exe and fetched VKD3D-Proton 3.1 and DXVK 3.1.1. - play-linux.sh: "with DXVK's dxgi and the VKD3D-Proton of hotfix-20261110-x86_64 (vkd3d-1.1-5729-g00b6ef057)". No swap-chain crash. - The structurizer check matters on NVIDIA: on main with VKD3D-Proton 3.1, every run on this card died in vkCreateComputePipelines (0xc0000005, on 620.73.04 and 610.57.04 alike) at the same early moment, whatever shaders were skipped. With this branch it got past that and into the world on foot. - The first run is very slow: 0.1 fps with ~10 s a frame "waiting for pipelines" (black screen, sound plays) while about 1,200 pipelines built, then about 1.5 fps. A pipeline pre-build step like play-d3d12.ps1's would help here. - It ended after about 14 minutes on a breakpoint in the title, "unhandled exception 0x80000003 at <title image>+0x5149aec". It isn't the watchdog hook's address. Card memory was 5.4 of 5.9 GB budget at the end. Not investigated. Not tested: the system-Wine path (LEONIDA_WINE), the distribution-DXVK lookup. AI-assisted (Claude Code).
merzleckeier commented 2026-11-29 15:26:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T15:26:43Z.


Independent launcher check at 628f5bffd merged locally onto c22a0a732. I ran the unchanged play-linux.sh against a synthetic Windows x64 client with System Wine 11.22 and cachyos-11.0-20261015-slr, each on AMD Raphael (RADV 26.3.1) and RTX 4070 SUPER (620.73.04). In all four runs with initialized prefixes, the client received the path containing spaces, the Series S profile, and VKD3D_SHADER_CACHE_PATH=0 from a read-only working directory. The three native prefix DLLs matched their sources, --log captured stderr, and a fenced D3D12 copy returned 1,024/1,024 expected words each time. Two extra RADV warm starts on tmpfs covered file, dangling, and directory symlinks and preserved their targets.

Concurrent-start failure reproduced. Two starts using the same initialized prefix stage d3d12.dll.leonida-new under a shared name. With a controlled overlap between the two copies, the second start failed with mv: cannot stat ...d3d12.dll.leonida-new before reaching Wine. Private staging directories let both starts finish in the regression test. The fork diff includes the fix and the test. The new test fails on this PR head, and all 82 tests pass with the fix.

These runs used offline synthetic inputs. Headless Gamescope on NVIDIA exited with status 139 during teardown, after the launcher had already returned 0. AI-assisted with OpenAI Codex (GPT-6).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7258094161 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7258094161). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T15:26:43Z. --- Independent launcher check at `628f5bffd` merged locally onto `c22a0a732`. I ran the unchanged `play-linux.sh` against a synthetic Windows x64 client with System Wine 11.22 and `cachyos-11.0-20261015-slr`, each on AMD Raphael (RADV 26.3.1) and RTX 4070 SUPER (620.73.04). In all four runs with initialized prefixes, the client received the path containing spaces, the Series S profile, and `VKD3D_SHADER_CACHE_PATH=0` from a read-only working directory. The three native prefix DLLs matched their sources, `--log` captured stderr, and a fenced D3D12 copy returned 1,024/1,024 expected words each time. Two extra RADV warm starts on tmpfs covered file, dangling, and directory symlinks and preserved their targets. **Concurrent-start failure reproduced.** Two starts using the same initialized prefix stage `d3d12.dll.leonida-new` under a shared name. With a controlled overlap between the two copies, the second start failed with `mv: cannot stat ...d3d12.dll.leonida-new` before reaching Wine. Private staging directories let both starts finish in the regression test. The [fork diff](https://github.com/merzleckeier/mandy/compare/628f5bffd07a0c5eca5ccc72281eb68255266f4f...c9746bdf1de23929243e6975d7b419ae895769f0) includes the fix and the test. The new test fails on this PR head, and all 82 tests pass with the fix. These runs used offline synthetic inputs. Headless Gamescope on NVIDIA exited with status 139 during teardown, after the launcher had already returned 0. AI-assisted with OpenAI Codex (GPT-6).
kuzeyc commented 2026-11-29 17:28:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kuzeyc on 2026-11-29T17:28:54Z.


Small follow-up on c2ffcdc97: the DLL staging change looks fine, and tests/test_play_linux.py passes (52, 1 skipped), but only after I moved my build output aside.

With d3d12/target/dxvk present in the checkout (left by build-d3d12-linux.sh / fetch_dxvk.py), one test fails:

FAIL: test_a_proton_without_dxvk_runs_with_the_dxgi_of_another
AssertionError: "with DXVK's dxgi of GE-Proton98-30" not found in "... with the bundled DXVK's dxgi (DXVK 3.1.1) ..."

The Proton tests run the real script (tests/test_play_linux.py:350, SCRIPT = ROOT / "scripts" / "play-linux.sh"), so its $root is the real checkout, and find_dxgi takes "$root/d3d12/target/dxvk" before it looks at other Protons. The tests that copy play-linux.sh into a temporary repo (line 95) don't have this problem. Running the Proton tests from such a copy too, or pointing LEONIDA_DXVK at a temporary folder there, would keep them from depending on what the checkout has built.

With d3d12/target/dxvk moved aside: all 52 pass. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7259724703 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7259724703). Originally posted by [kuzeyc](https://github.com/kuzeyc) on 2026-11-29T17:28:54Z. --- Small follow-up on c2ffcdc97: the DLL staging change looks fine, and tests/test_play_linux.py passes (52, 1 skipped), but only after I moved my build output aside. With d3d12/target/dxvk present in the checkout (left by build-d3d12-linux.sh / fetch_dxvk.py), one test fails: FAIL: test_a_proton_without_dxvk_runs_with_the_dxgi_of_another AssertionError: "with DXVK's dxgi of GE-Proton98-30" not found in "... with the bundled DXVK's dxgi (DXVK 3.1.1) ..." The Proton tests run the real script (tests/test_play_linux.py:350, SCRIPT = ROOT / "scripts" / "play-linux.sh"), so its $root is the real checkout, and find_dxgi takes "$root/d3d12/target/dxvk" before it looks at other Protons. The tests that copy play-linux.sh into a temporary repo (line 95) don't have this problem. Running the Proton tests from such a copy too, or pointing LEONIDA_DXVK at a temporary folder there, would keep them from depending on what the checkout has built. With d3d12/target/dxvk moved aside: all 52 pass. AI-assisted (Claude Code).
OreoFR commented 2026-11-29 18:04:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T18:04:24Z.


Re-verified by OreoFR at head 919c0a9e2 on main 4364a4fa6 (still merges cleanly on eedd72e30): READY — red 11 fail → green 30 OK; ctest/link n/a (no runtime/ change; the Rust side is leonida-gpu); head changed since the earlier verification https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7246484467 (that was CONFLICT at f1113352a; this head merges cleanly). Windows 11, RTX 4070 Laptop 8 GB, NVIDIA 621.40. AI-assisted (Claude Code, Claude Opus 5.5).

  • Red (main + only the PR's three test files): test_build_d3d12_linux.py 1 failure + 2 errors, test_leonida_launcher.py 2 failures + 6 errors.
  • Green (main + this PR, git merge --no-ff): test_build_d3d12_linux.py 6 OK (3 skipped, POSIX shell), test_leonida_launcher.py 24 OK (3 skipped), test_play_linux.py 52 skipped (Linux host only, not run here).
  • Rust on the merge: cargo test --locked -p leonida-gpu --lib 544 passed, 0 failed; with --features diagnostics and LEONIDA_D3D12_DEBUG=1, compose 3/3 (including the GPU readback of the scaled premultiplied plane) and trainer 4/4 pass. These pass on main too (checked on the previous main 91bab934d), so there is no Rust red on native Windows/NVIDIA: the compositor fix is for the Wine/VKD3D-Proton path, which this machine cannot run.

Ready to merge per the maintainers' plan.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260187884 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7260187884). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T18:04:24Z. --- **Re-verified by OreoFR** at head `919c0a9e2` on main `4364a4fa6` (still merges cleanly on `eedd72e30`): READY — red 11 fail → green 30 OK; ctest/link n/a (no `runtime/` change; the Rust side is `leonida-gpu`); head changed since the earlier verification https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7246484467 (that was CONFLICT at `f1113352a`; this head merges cleanly). Windows 11, RTX 4070 Laptop 8 GB, NVIDIA 621.40. AI-assisted (Claude Code, Claude Opus 5.5). - Red (main + only the PR's three test files): `test_build_d3d12_linux.py` 1 failure + 2 errors, `test_leonida_launcher.py` 2 failures + 6 errors. - Green (main + this PR, `git merge --no-ff`): `test_build_d3d12_linux.py` 6 OK (3 skipped, POSIX shell), `test_leonida_launcher.py` 24 OK (3 skipped), `test_play_linux.py` 52 skipped (Linux host only, not run here). - Rust on the merge: `cargo test --locked -p leonida-gpu --lib` 544 passed, 0 failed; with `--features diagnostics` and `LEONIDA_D3D12_DEBUG=1`, `compose` 3/3 (including the GPU readback of the scaled premultiplied plane) and `trainer` 4/4 pass. These pass on main too (checked on the previous main `91bab934d`), so there is no Rust red on native Windows/NVIDIA: the compositor fix is for the Wine/VKD3D-Proton path, which this machine cannot run. Ready to merge per the maintainers' plan.
merzleckeier commented 2026-11-29 18:07:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T18:07:13Z.


Linux follow-up at 919c0a9e2 merged locally onto eedd72e30, complementing the native Windows recheck above. CachyOS, Python 3.14.10.

  • Confirmed the checkout DXVK issue from kuzeyc’s report. The fallback test at c2ffcdc97 passes with an empty checkout target and fails when d3d12/target/dxvk/dxgi.dll contains the installed CachyOS-Proton x64 DLL. At 919c0a9e2, the test passes with that same file in place.
  • Replayed the controlled same-prefix overlap. One launch fails before reaching the Wine stub on 628f5bffd. Both launches reach it on c2ffcdc97 and on the current head.
  • With checkout DXVK present and host Proton/Wine hidden inside the test sandbox, test_play_linux.py 52/52, test_build_d3d12_linux.py 6/6, test_leonida_launcher.py 24/24 and test_shell_launchers.py 7/7. With the system tools visible, 78 passed and 11 skipped.

Launcher fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260227052 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7260227052). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T18:07:13Z. --- Linux follow-up at `919c0a9e2` merged locally onto `eedd72e30`, complementing the native Windows recheck above. CachyOS, Python 3.14.10. - Confirmed the checkout DXVK issue from [kuzeyc’s report](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7259724703). The fallback test at `c2ffcdc97` passes with an empty checkout target and fails when `d3d12/target/dxvk/dxgi.dll` contains the installed CachyOS-Proton x64 DLL. At `919c0a9e2`, the test passes with that same file in place. - Replayed the [controlled same-prefix overlap](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7258094161). One launch fails before reaching the Wine stub on `628f5bffd`. Both launches reach it on `c2ffcdc97` and on the current head. - With checkout DXVK present and host Proton/Wine hidden inside the test sandbox, `test_play_linux.py` 52/52, `test_build_d3d12_linux.py` 6/6, `test_leonida_launcher.py` 24/24 and `test_shell_launchers.py` 7/7. With the system tools visible, 78 passed and 11 skipped. Launcher fixtures only. AI-assisted with OpenAI Codex.
enlight3d commented 2026-11-29 21:31:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T21:31:35Z.


RUN: PR #2577 (Linux: Proton/Wine launch, Python scripts + D3D12 root signatures)

Heads: PR 18b72a362, main 377c45a33. Merged locally with git merge --no-ff (clean, 14 files, nothing pushed). Since the earlier run at 919c0a9e2 the PR only changed docs/linux.md (LEONIDA_DXVK is checked before the Proton's dxgi.dll). git merge-tree of the merged tree with #2566 (head 7b5cb2941): no conflict.

Touches d3d12/ Rust (compose.rs, host.rs, host/trainer.rs: root signatures built by hand instead of embedded in HLSL) plus Python/shell scripts, docs and three test files. The PR adds no Rust test, so there is no Rust red.

Commands:

  • Rust (d3d12/, MSVC target, vcvars64): cargo test -j 6 -p leonida-gpu --lib, cargo check -j 6 -p leonida-gpu --tests.
  • Python: python -I -B tests/<file>.py for test_build_d3d12_linux, test_play_linux, test_leonida_launcher, test_docs_links. The first three skip their POSIX-shell tests on Windows (3, 52 and 3 skipped), so they were also run with python3 -I -B in WSL Ubuntu.

Results:

  • RED (PR's non-test files reverted to main: docs, scripts, tools/leonida_launcher.py; the three test files kept; Rust left as is): behavioural plus missing-file failures. WSL: test_build_d3d12_linux 1 failure + 5 errors (new build and fetch scripts missing), test_play_linux 58 failures + 1 error (52 tests), test_leonida_launcher 2 failures + 9 errors. On Windows test_leonida_launcher alone: 2 failures + 6 errors.
  • GREEN (merged tree): WSL test_build_d3d12_linux 6 OK, test_play_linux 52 OK, test_leonida_launcher 24 OK. Windows: 6 OK (3 skipped), 52 skipped, 24 OK (3 skipped); test_docs_links 18 OK.
  • cargo check -p leonida-gpu --tests on the merged tree: clean (warnings only).
  • Rust --lib suite: merged tree 544 passed, 0 failed, 47 ignored; plain main 544 passed, 0 failed, 47 ignored. No difference.

Not checked: the real Proton/Wine run, and that the hand-built root signatures behave like the HLSL-embedded ones on a device (no test covers them).

Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 (native D3D12 target).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262944369 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7262944369). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T21:31:35Z. --- RUN: PR #2577 (Linux: Proton/Wine launch, Python scripts + D3D12 root signatures) Heads: PR 18b72a362, main 377c45a33. Merged locally with `git merge --no-ff` (clean, 14 files, nothing pushed). Since the earlier run at 919c0a9e2 the PR only changed `docs/linux.md` (LEONIDA_DXVK is checked before the Proton's dxgi.dll). `git merge-tree` of the merged tree with #2566 (head 7b5cb2941): no conflict. Touches d3d12/ Rust (`compose.rs`, `host.rs`, `host/trainer.rs`: root signatures built by hand instead of embedded in HLSL) plus Python/shell scripts, docs and three test files. The PR adds no Rust test, so there is no Rust red. Commands: - Rust (d3d12/, MSVC target, vcvars64): `cargo test -j 6 -p leonida-gpu --lib`, `cargo check -j 6 -p leonida-gpu --tests`. - Python: `python -I -B tests/<file>.py` for `test_build_d3d12_linux`, `test_play_linux`, `test_leonida_launcher`, `test_docs_links`. The first three skip their POSIX-shell tests on Windows (3, 52 and 3 skipped), so they were also run with `python3 -I -B` in WSL Ubuntu. Results: - RED (PR's non-test files reverted to main: docs, scripts, `tools/leonida_launcher.py`; the three test files kept; Rust left as is): behavioural plus missing-file failures. WSL: `test_build_d3d12_linux` 1 failure + 5 errors (new build and fetch scripts missing), `test_play_linux` 58 failures + 1 error (52 tests), `test_leonida_launcher` 2 failures + 9 errors. On Windows `test_leonida_launcher` alone: 2 failures + 6 errors. - GREEN (merged tree): WSL `test_build_d3d12_linux` 6 OK, `test_play_linux` 52 OK, `test_leonida_launcher` 24 OK. Windows: 6 OK (3 skipped), 52 skipped, 24 OK (3 skipped); `test_docs_links` 18 OK. - `cargo check -p leonida-gpu --tests` on the merged tree: clean (warnings only). - Rust `--lib` suite: merged tree 544 passed, 0 failed, 47 ignored; plain main 544 passed, 0 failed, 47 ignored. No difference. Not checked: the real Proton/Wine run, and that the hand-built root signatures behave like the HLSL-embedded ones on a device (no test covers them). Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 (native D3D12 target).
MoonEyes commented 2026-11-29 21:54:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T21:54:20Z.


Tested 18b72a362 merged (no commit) with main 060c47160: Windows 11, Rust toolchain from d3d12/rust-toolchain.toml, CPU only, no game run.

  • cargo test -p leonida-gpu --locked: main 549 passed, 47 ignored; with this PR 549 passed, 47 ignored, 0 failed.
  • cargo clippy -p leonida-gpu --locked -- -D warnings: 10 findings on main and the same 10 with the PR (all in leonida-lua and leonida-shader); this PR adds none.
  • Merges cleanly with main and does not force a rebase of #2566.
  • Not covered: an in-game run. It touches the render path, so before merge it should also run in game for 300 s with no device loss, as this project now asks of render-path changes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7263245938 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7263245938). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T21:54:20Z. --- Tested `18b72a362` merged (no commit) with `main` `060c47160`: Windows 11, Rust toolchain from `d3d12/rust-toolchain.toml`, CPU only, no game run. - `cargo test -p leonida-gpu --locked`: `main` 549 passed, 47 ignored; with this PR 549 passed, 47 ignored, 0 failed. - `cargo clippy -p leonida-gpu --locked -- -D warnings`: 10 findings on `main` and the same 10 with the PR (all in `leonida-lua` and `leonida-shader`); this PR adds none. - Merges cleanly with `main` and does not force a rebase of #2566. - Not covered: an in-game run. It touches the render path, so before merge it should also run in game for 300 s with no device loss, as this project now asks of render-path changes. AI-assisted (Claude Code).
shadowplay711 commented 2026-11-29 23:06:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by shadowplay711 on 2026-11-29T23:06:31Z.


Tested 18b72a362 merged with main 060c47160 (tree 4e1db58b3) in game on Linux, in two runs that differ only in d3dcompiler_47.dll. Setup: Radeon RX 9070 XT 16 GB (RADV GFX1201, Mesa 26.3.1), Ryzen 7 9800X3D, 30.5 GiB RAM, CachyOS, kernel 7.3.6, GE-Proton11-14 found by --find-proton. Built with scripts/build-d3d12-linux.sh, VKD3D-Proton 3.1, DXVK 3.1.1, Series X profile, 2560x1440 window, LEONIDA_DEVICE_FAULT=1.

  • No device loss in either run. The log has no DEVICE_LOST, DEVICE_REMOVED or 0x887A lines, and dmesg shows no GPU reset, timeout or fault. Neither run has root-signature or pipeline-layout errors.
  • Wine's builtin d3dcompiler_47.dll (fresh prefix): the run went on for about 18 min after the world loaded, about 7 min of it with player control, and the world stayed black. Only subtitles, hints and a red dot were drawn. The log has argument clamp: E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer' and then no argument clamp: indirect execution dropped. Frame rate in the world: median 11.9 frames/s (1.0 to 13.9).
  • Microsoft's 64-bit d3dcompiler_47.dll in the prefix with d3dcompiler_47=n: the intro and the playable scene are drawn, and the run went on for 451 s in the loaded world with no crash. There are no E5005 lines. indirect execution dropped appears once, as an INFO line on the first frame. Frame rate in the scene: median 20.6 frames/s (15.6 to 22.5) at 4,400 to 5,600 draws. Also seen: purple patches on one wall, and the lighting on the character jumps once.
  • In both runs: 6 stack overflows in translator threads, and 6 compute pipelines not made within their wait, with the overlay stuck at "SHADERS COMPILING: 6 LEFT". There were 22 to 27 intervals under 5 frames/s while loading.

The DLL for the second run was copied in by hand. 9a737660b, now on this branch, has play-linux.sh install it (from LEONIDA_D3DCOMPILER, a d3dcompiler/ folder or d3d12/target/d3dcompiler/, else fetched by scripts/fetch_d3dcompiler.py from a pinned NuGet package). The fetch was run separately and matches the pinned SHA-256 for the package and the DLL, but that path has not been run in game. #2642 addresses the same E5005 another way, with an app-local DXC.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7264201890 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7264201890). Originally posted by [shadowplay711](https://github.com/shadowplay711) on 2026-11-29T23:06:31Z. --- Tested `18b72a362` merged with `main` `060c47160` (tree `4e1db58b3`) in game on Linux, in two runs that differ only in `d3dcompiler_47.dll`. Setup: Radeon RX 9070 XT 16 GB (RADV GFX1201, Mesa 26.3.1), Ryzen 7 9800X3D, 30.5 GiB RAM, CachyOS, kernel 7.3.6, GE-Proton11-14 found by `--find-proton`. Built with `scripts/build-d3d12-linux.sh`, VKD3D-Proton 3.1, DXVK 3.1.1, Series X profile, 2560x1440 window, `LEONIDA_DEVICE_FAULT=1`. * **No device loss in either run.** The log has no `DEVICE_LOST`, `DEVICE_REMOVED` or `0x887A` lines, and dmesg shows no GPU reset, timeout or fault. Neither run has root-signature or pipeline-layout errors. * **Wine's builtin `d3dcompiler_47.dll`** (fresh prefix): the run went on for about 18 min after the world loaded, about 7 min of it with player control, and the world stayed black. Only subtitles, hints and a red dot were drawn. The log has `argument clamp: E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'` and then `no argument clamp: indirect execution dropped`. Frame rate in the world: median 11.9 frames/s (1.0 to 13.9). * **Microsoft's 64-bit `d3dcompiler_47.dll`** in the prefix with `d3dcompiler_47=n`: the intro and the playable scene are drawn, and the run went on for 451 s in the loaded world with no crash. There are no E5005 lines. `indirect execution dropped` appears once, as an INFO line on the first frame. Frame rate in the scene: median 20.6 frames/s (15.6 to 22.5) at 4,400 to 5,600 draws. Also seen: purple patches on one wall, and the lighting on the character jumps once. * **In both runs:** 6 stack overflows in translator threads, and 6 compute pipelines not made within their wait, with the overlay stuck at "SHADERS COMPILING: 6 LEFT". There were 22 to 27 intervals under 5 frames/s while loading. The DLL for the second run was copied in by hand. `9a737660b`, now on this branch, has `play-linux.sh` install it (from `LEONIDA_D3DCOMPILER`, a `d3dcompiler/` folder or `d3d12/target/d3dcompiler/`, else fetched by `scripts/fetch_d3dcompiler.py` from a pinned NuGet package). The fetch was run separately and matches the pinned SHA-256 for the package and the DLL, but that path has not been run in game. #2642 addresses the same E5005 another way, with an app-local DXC. AI-assisted (Claude Code).
eodclxvi commented 2026-11-30 03:04:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by eodclxvi on 2026-11-30T03:04:59Z.


Linux results with the D3D12 runtime under Wine, and four findings from a weekend on it. AI-assisted (Claude Code); all measurements below are from runs on the machine named here.

Machine: RTX 4070 12 GB, NVIDIA 615.78, i7, Arch Linux, kernel 7.2. GE-Proton 11-14's Wine, VKD3D-Proton master 71cae091b (its dxil-spirv b540c8a fixes the stack overflows that left 38 pipelines unbuilt with 3.2.0), DXVK's dxgi.dll. leonida.exe cross-built (clang-cl + lld-link + xwin), diag with diagnostics,mimalloc. Series S profile, render scale 0.5. Checkout: main at 95bc33f6e plus the changes below.

Where it stands here: 17-20 fps rendered in the prison gameplay, about 34 shown with DLSS frame generation (2x). Faces drawn. The opening cutscene and the bank scene are still 1-2 fps (see 4).

1. No pipeline library was ever kept under VKD3D-Proton (fixes the in-game "waiting for pipelines" and the faceless characters)

library.rs open asks for an empty library with CreatePipelineLibrary::<_>(&[]). The windows crate passes an empty slice's dangling, non-null pointer; Microsoft's D3D12 takes that, but VKD3D-Proton refuses a non-null blob of length 0 with E_INVALIDARG (libs/vkd3d/cache.c, d3d12_pipeline_library_init: if (!blob_length && blob) return E_INVALIDARG;). Under Wine every start logged no host pipeline library: pipelines are not kept, the early list stayed empty, and ~1,200-1,400 pipelines were made one by one when the first cutscene began (30+ s of sound over a black or frozen picture: the 0.1 fps "waiting for pipelines" reported above).

Fix (null blob when empty):

     let make = |bytes: &[u8]| -> windows::core::Result<ID3D12PipelineLibrary1> {
-        // SAFETY: the bytes outlive the library (kept beside it).
+        use windows::core::Interface;
+        let mut out = std::ptr::null_mut();
+        let blob = if bytes.is_empty() { std::ptr::null() } else { bytes.as_ptr().cast() };
+        // SAFETY: the bytes outlive the library (kept beside it); a null blob of length 0 is an empty library.
         unsafe {
-            device.CreatePipelineLibrary::<ID3D12PipelineLibrary>(bytes)?.cast()
+            (device.vtable().CreatePipelineLibrary)(device.as_raw(), blob, bytes.len(), &ID3D12PipelineLibrary::IID, &mut out)
+                .ok()?;
+            ID3D12PipelineLibrary::from_raw(out).cast()
         }
     };

With VKD3D-Proton's own shader cache on, an application's library is a dummy (its README, "Behavior of ID3D12PipelineLibrary"), so the launcher also needs VKD3D_CONFIG=pipeline_library_app_cache. After both: the second start loaded a 448 MB library, 1,926 of 1,947 early pipelines started during the loading screen, and the cutscene played.

It also fixed faces here (eyes and teeth only, head skin missing), which the LDS exemption in 804280d80 did not, even widened to all 74 programs of compute_graph_ops, ped_standard_head_cs and ped_morphable_model_cs. CS_ComputeBlendshapeMappings runs once, when a character is made; its pipeline sat behind the ~1,200 in the queue, the dispatch was dropped after LEONIDA_PIPELINE_WAIT_MS, and the head's mapping table kept the CPU's -1s for the rest of the session. With the pipeline built during loading, faces are drawn from the first frame.

2. Frame generation took a probe's motion vectors at render scale 0.5

fg.rs gbuffer_submitted keeps the largest G-buffer pass of a frame. At render scale 0.5 the view is 960x540, smaller than the 1024x1024 square probe pass, so from the probe's first frame every generated frame used the probe's depth and motion vectors: heavy ghosting. Square passes ranked last:

     let area = u64::from(size[0]) * u64::from(size[1]);
+    // A square pass is never the view (the probe's 1024x1024); one is still taken when a frame has nothing else.
+    let area = if size[0] == size[1] { 0 } else { area };

The log then shows another G-buffer pass of the frame, no larger than the one kept, passed over n=1 size=[1024, 1024] kept=[960, 540], and the ghosting is gone but for some on fast turns (14-20 rendered frames a second is a low base for DLSS-G).

DLSS-G itself works under Wine: Streamline 2.14.16's plugins pass their signature checks, status 0. It needs GE's nvapi64.dll/nvofapi64.dll and the driver's /usr/lib/nvidia/wine/nvngx.dll, _nvngx.dll in the prefix's system32, HKLM\SOFTWARE\NVIDIA Corporation\Global\NGXCore FullPath=C:\Windows\System32, and DXVK_ENABLE_NVAPI=1. The setDynamicMFGParams and SetReflexSync errors it logs on an RTX 40 card are harmless. LEONIDA_FG_LIMIT_FPS=28 would cap a PC rendering ~20 at 14; I run it at 0.

3. The frame recorder crashed VKD3D-Proton

LEONIDA_RECORD's go called the original ExecuteCommandLists with the shimmed lists, and VKD3D-Proton read their vtables (crash in d3d12core). Restoring each list's original vtable around that one call (replay::hook::bare, then record.rs execute wraps the call in it) makes recording work under Wine. Happy to open a PR for this one.

4. Why the heavy scenes are slow under Wine (measurements, not fixes yet)

  • Wine's VirtualProtect takes one lock for the whole address space (the one its fault handler and VirtualQuery take). A test program under GE-Proton: protect + unprotect a page, 2.6 us with one thread, 64 us with eight; a guard fault opened by it 4.4 us against 78 us. In the opening cutscene the guards fault 400-570 times a frame and make 1,100-1,700 blocks read-only (A/B of 4 s phases: GUARD_HOT, PORT_GUARD, PAGE_ASK made no measurable difference there).
  • A fault book of that cutscene (LEONIDA_FAULT_BOOK): most blocks taken once or twice in 40 frames (streamed data, not hot blocks). The runtime's own most frequent fault site was descriptor::record (the title's thread creating views of streamed textures, writing 12 bytes into the guarded heap). I now write it through watch::put_beside, which leaves about one fault per heap block a frame (the 32-share limit). The rest are the title's own stores and memcpy.
  • A Windows program's syscall never reaches Linux under GE-Proton: Wine dispatches it as an NT system call (syscall 10 returns STATUS_INVALID_HANDLE). So I built a small Wine unixlib (a builtin-marked DLL with a .so) to call Linux directly, and tried two kernel paths in place of the guards: userfaultfd async write-protect with PAGEMAP_SCAN (0.16 us a page written against 4.3-4.8 for a guard fault in a test program, but asking it per query cost ~200 ms a frame, and batching by time loses writes), and synchronous userfaultfd write-protect with our own handler thread (same semantics as the guards). Both work in the game and pass watch:: tests; neither beat the guards in the heavy scenes. What is left there is the kernel's own cost of taking write access away from pages in a ~300-thread process (TLB shootdowns: native_flush_tlb_one_user, smp_call_function_many_cond in a perf profile) and the threads waiting on the guards' lock meanwhile, whatever does it. The next thing I am trying: fewer protection changes (in batches, outside the lock, and not guarding freshly streamed blocks until they are used again).

Notes for the Linux launcher: precompiling (leonida shaders + leonida warm) before play took the in-game builds from minutes to seconds here; VKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_heap was faster on NVIDIA (15.5-17.5 fps against 10-13 with the new heap path); and the title's hang watchdog (+0x2215c35) fires during long first-run stalls unless disarmed.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7267569995 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7267569995). Originally posted by [eodclxvi](https://github.com/eodclxvi) on 2026-11-30T03:04:59Z. --- Linux results with the D3D12 runtime under Wine, and four findings from a weekend on it. AI-assisted (Claude Code); all measurements below are from runs on the machine named here. **Machine:** RTX 4070 12 GB, NVIDIA 615.78, i7, Arch Linux, kernel 7.2. GE-Proton 11-14's Wine, VKD3D-Proton master `71cae091b` (its dxil-spirv b540c8a fixes the stack overflows that left 38 pipelines unbuilt with 3.2.0), DXVK's `dxgi.dll`. `leonida.exe` cross-built (clang-cl + lld-link + xwin), diag with `diagnostics,mimalloc`. Series S profile, render scale 0.5. Checkout: `main` at `95bc33f6e` plus the changes below. **Where it stands here:** 17-20 fps rendered in the prison gameplay, about 34 shown with DLSS frame generation (2x). Faces drawn. The opening cutscene and the bank scene are still 1-2 fps (see 4). ### 1. No pipeline library was ever kept under VKD3D-Proton (fixes the in-game "waiting for pipelines" and the faceless characters) `library.rs` `open` asks for an empty library with `CreatePipelineLibrary::<_>(&[])`. The windows crate passes an empty slice's dangling, non-null pointer; Microsoft's D3D12 takes that, but VKD3D-Proton refuses a non-null blob of length 0 with `E_INVALIDARG` (`libs/vkd3d/cache.c`, `d3d12_pipeline_library_init`: `if (!blob_length && blob) return E_INVALIDARG;`). Under Wine every start logged `no host pipeline library: pipelines are not kept`, the early list stayed empty, and ~1,200-1,400 pipelines were made one by one when the first cutscene began (30+ s of sound over a black or frozen picture: the 0.1 fps "waiting for pipelines" reported above). Fix (null blob when empty): ```diff let make = |bytes: &[u8]| -> windows::core::Result<ID3D12PipelineLibrary1> { - // SAFETY: the bytes outlive the library (kept beside it). + use windows::core::Interface; + let mut out = std::ptr::null_mut(); + let blob = if bytes.is_empty() { std::ptr::null() } else { bytes.as_ptr().cast() }; + // SAFETY: the bytes outlive the library (kept beside it); a null blob of length 0 is an empty library. unsafe { - device.CreatePipelineLibrary::<ID3D12PipelineLibrary>(bytes)?.cast() + (device.vtable().CreatePipelineLibrary)(device.as_raw(), blob, bytes.len(), &ID3D12PipelineLibrary::IID, &mut out) + .ok()?; + ID3D12PipelineLibrary::from_raw(out).cast() } }; ``` With VKD3D-Proton's own shader cache on, an application's library is a dummy (its README, "Behavior of ID3D12PipelineLibrary"), so the launcher also needs `VKD3D_CONFIG=pipeline_library_app_cache`. After both: the second start loaded a 448 MB library, 1,926 of 1,947 early pipelines started during the loading screen, and the cutscene played. It also fixed **faces** here (eyes and teeth only, head skin missing), which the LDS exemption in 804280d80 did not, even widened to all 74 programs of `compute_graph_ops`, `ped_standard_head_cs` and `ped_morphable_model_cs`. `CS_ComputeBlendshapeMappings` runs once, when a character is made; its pipeline sat behind the ~1,200 in the queue, the dispatch was dropped after `LEONIDA_PIPELINE_WAIT_MS`, and the head's mapping table kept the CPU's `-1`s for the rest of the session. With the pipeline built during loading, faces are drawn from the first frame. ### 2. Frame generation took a probe's motion vectors at render scale 0.5 `fg.rs` `gbuffer_submitted` keeps the largest G-buffer pass of a frame. At render scale 0.5 the view is 960x540, smaller than the 1024x1024 square probe pass, so from the probe's first frame every generated frame used the probe's depth and motion vectors: heavy ghosting. Square passes ranked last: ```diff let area = u64::from(size[0]) * u64::from(size[1]); + // A square pass is never the view (the probe's 1024x1024); one is still taken when a frame has nothing else. + let area = if size[0] == size[1] { 0 } else { area }; ``` The log then shows `another G-buffer pass of the frame, no larger than the one kept, passed over n=1 size=[1024, 1024] kept=[960, 540]`, and the ghosting is gone but for some on fast turns (14-20 rendered frames a second is a low base for DLSS-G). DLSS-G itself works under Wine: Streamline 2.14.16's plugins pass their signature checks, status 0. It needs GE's `nvapi64.dll`/`nvofapi64.dll` and the driver's `/usr/lib/nvidia/wine/nvngx.dll`, `_nvngx.dll` in the prefix's system32, `HKLM\SOFTWARE\NVIDIA Corporation\Global\NGXCore` `FullPath=C:\Windows\System32`, and `DXVK_ENABLE_NVAPI=1`. The `setDynamicMFGParams` and `SetReflexSync` errors it logs on an RTX 40 card are harmless. `LEONIDA_FG_LIMIT_FPS=28` would cap a PC rendering ~20 at 14; I run it at 0. ### 3. The frame recorder crashed VKD3D-Proton `LEONIDA_RECORD`'s `go` called the original `ExecuteCommandLists` with the shimmed lists, and VKD3D-Proton read their vtables (crash in `d3d12core`). Restoring each list's original vtable around that one call (`replay::hook::bare`, then `record.rs` `execute` wraps the call in it) makes recording work under Wine. Happy to open a PR for this one. ### 4. Why the heavy scenes are slow under Wine (measurements, not fixes yet) - **Wine's `VirtualProtect` takes one lock for the whole address space** (the one its fault handler and `VirtualQuery` take). A test program under GE-Proton: protect + unprotect a page, 2.6 us with one thread, **64 us with eight**; a guard fault opened by it 4.4 us against **78 us**. In the opening cutscene the guards fault 400-570 times a frame and make 1,100-1,700 blocks read-only (A/B of 4 s phases: `GUARD_HOT`, `PORT_GUARD`, `PAGE_ASK` made no measurable difference there). - **A fault book** of that cutscene (`LEONIDA_FAULT_BOOK`): most blocks taken once or twice in 40 frames (streamed data, not hot blocks). The runtime's own most frequent fault site was `descriptor::record` (the title's thread creating views of streamed textures, writing 12 bytes into the guarded heap). I now write it through `watch::put_beside`, which leaves about one fault per heap block a frame (the 32-share limit). The rest are the title's own stores and `memcpy`. - **A Windows program's `syscall` never reaches Linux under GE-Proton**: Wine dispatches it as an NT system call (`syscall` 10 returns `STATUS_INVALID_HANDLE`). So I built a small Wine unixlib (a builtin-marked DLL with a `.so`) to call Linux directly, and tried two kernel paths in place of the guards: userfaultfd async write-protect with `PAGEMAP_SCAN` (0.16 us a page written against 4.3-4.8 for a guard fault in a test program, but asking it per query cost ~200 ms a frame, and batching by time loses writes), and synchronous userfaultfd write-protect with our own handler thread (same semantics as the guards). Both work in the game and pass `watch::` tests; **neither beat the guards in the heavy scenes**. What is left there is the kernel's own cost of taking write access away from pages in a ~300-thread process (TLB shootdowns: `native_flush_tlb_one_user`, `smp_call_function_many_cond` in a perf profile) and the threads waiting on the guards' lock meanwhile, whatever does it. The next thing I am trying: fewer protection changes (in batches, outside the lock, and not guarding freshly streamed blocks until they are used again). Notes for the Linux launcher: precompiling (`leonida shaders` + `leonida warm`) before play took the in-game builds from minutes to seconds here; `VKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_heap` was faster on NVIDIA (15.5-17.5 fps against 10-13 with the new heap path); and the title's hang watchdog (+0x2215c35) fires during long first-run stalls unless disarmed.
kuzeyc commented 2026-11-30 09:43:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kuzeyc on 2026-11-30T09:43:36Z.


@eodclxvi thanks, your finding 1 is the same bug as #2654, which I opened last night (claim: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7263775300). Same fix: a null blob for the empty library through the raw vtable call, plus a log line where make(&[]).ok()? used to drop the error. merzleckeier's A/B there (RTX 4070 SUPER and RADV) shows a_rejected_blob_gives_an_empty_library, depth_bounds_pipeline_loads_and_filters_draws and a_mesh_pipeline_loads_from_the_library failing on main and passing with it. If you'd rather your own version went in, say so there, so we don't end up with two.

The VKD3D_CONFIG=pipeline_library_app_cache point isn't in #2654: that's launcher territory, so it would fit play-linux.sh here, @shadowplay711, if you want it in this PR. On my RTX 3070 (NVIDIA 610.57.04, Proton Hotfix) the null-blob fix alone gave a library that saves and reloads (loaded=34 made=0 on the second start), but I haven't measured with and without that setting, so I can't say yet how much it adds.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7274601750 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7274601750). Originally posted by [kuzeyc](https://github.com/kuzeyc) on 2026-11-30T09:43:36Z. --- @eodclxvi thanks, your finding 1 is the same bug as #2654, which I opened last night (claim: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7263775300). Same fix: a null blob for the empty library through the raw vtable call, plus a log line where `make(&[]).ok()?` used to drop the error. merzleckeier's A/B there (RTX 4070 SUPER and RADV) shows `a_rejected_blob_gives_an_empty_library`, `depth_bounds_pipeline_loads_and_filters_draws` and `a_mesh_pipeline_loads_from_the_library` failing on main and passing with it. If you'd rather your own version went in, say so there, so we don't end up with two. The `VKD3D_CONFIG=pipeline_library_app_cache` point isn't in #2654: that's launcher territory, so it would fit `play-linux.sh` here, @shadowplay711, if you want it in this PR. On my RTX 3070 (NVIDIA 610.57.04, Proton Hotfix) the null-blob fix alone gave a library that saves and reloads (`loaded=34 made=0` on the second start), but I haven't measured with and without that setting, so I can't say yet how much it adds. AI-assisted (Claude Code).
shadowplay711 commented 2026-11-30 10:27:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by shadowplay711 on 2026-11-30T10:27:48Z.


Thanks. I'll leave finding 1 to #2654.

I've kept pipeline_library_app_cache out of play-linux.sh. In VKD3D-Proton it sets the same flag as VKD3D_SHADER_CACHE_PATH=0 (PIPELINE_LIBRARY_APP_CACHE_ONLY in device_workarounds.c, and vkd3d_pipeline_library_init_disk_cache returns early on it). That turns off VKD3D-Proton's own cache, which the script keeps in <LEONIDA_CACHE_DIR>/vkd3d-proton. With that cache on, the pipeline library is the dummy one from the VKD3D-Proton README, and your loaded=34 made=0 shows it already saves and reloads with #2654. If you want the app-cache-only mode, set VKD3D_SHADER_CACHE_PATH=0. The script passes it through, and 78ce620 documents this in docs/linux.md.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7275632018 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7275632018). Originally posted by [shadowplay711](https://github.com/shadowplay711) on 2026-11-30T10:27:48Z. --- Thanks. I'll leave finding 1 to #2654. I've kept `pipeline_library_app_cache` out of `play-linux.sh`. In VKD3D-Proton it sets the same flag as `VKD3D_SHADER_CACHE_PATH=0` (`PIPELINE_LIBRARY_APP_CACHE_ONLY` in `device_workarounds.c`, and `vkd3d_pipeline_library_init_disk_cache` returns early on it). That turns off VKD3D-Proton's own cache, which the script keeps in `<LEONIDA_CACHE_DIR>/vkd3d-proton`. With that cache on, the pipeline library is the dummy one from the VKD3D-Proton README, and your `loaded=34 made=0` shows it already saves and reloads with #2654. If you want the app-cache-only mode, set `VKD3D_SHADER_CACHE_PATH=0`. The script passes it through, and 78ce620 documents this in `docs/linux.md`. AI-assisted (Claude Code).
kuzeyc commented 2026-11-30 11:23:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kuzeyc on 2026-11-30T11:23:28Z.


@shadowplay711 the structurizer check in play-linux.sh picks an older VKD3D-Proton over a newer one here.

vkd3d_new_structurizer (scripts/play-linux.sh:120) looks for the string legacy_structurizer in d3d12core.dll. On this machine:

  • Proton Hotfix (hotfix-20261110), vkd3d-1.1-5729-g00b6ef057: has the string, so it is taken.
  • GE-Proton11-15, VKD3D-Proton v3.1-97-g71cae091b (files/lib/wine/vkd3d-proton/version): no longer has it, so it is passed over, also when LEONIDA_PROTON names GE-Proton11-15. The start line then reads "under GE-Proton11-15 … with … the VKD3D-Proton of hotfix-20261110".

With the Hotfix build, every start had 7 "stack overflow" lines in the first 10 s of pipeline building (all at the same address, in watch::install::on_write per leonida.pdb, the vectored handler that runs once the stack is already gone) and the overlay stuck at "7 LEFT", like your "6 LEFT" run. RUST_MIN_STACK=16777216 didn't help: the threads had 16 MB and still used all of it. With LEONIDA_VKD3D pointing at GE-Proton11-15's x86_64-windows folder: 0 stack overflows, nothing stuck, 57-60 fps in the world. That matches eodclxvi's note that 71cae091b's dxil-spirv fixes these overflows.

So the marker seems to have gone with the old structurizer, and the newest builds now look "old" to the check. Reading the build from the version file, or a marker only newer builds carry, might hold up better.

Separately, for the pipeline_library_app_cache question: I tried VKD3D_CONFIG=pipeline_library_app_cache with Proton Hotfix's VKD3D-Proton, and the first start crashed in vkCreateComputePipelines (0xc0000005) on a compute shader that built fine twice in the default mode. So leaving it out of the script was right here.

RTX 3070 8 GB, NVIDIA 610.57.04, Arch Linux (kernel 6.18 LTS), #2577 at 919c0a9e2 plus #2654's fix. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7276958712 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7276958712). Originally posted by [kuzeyc](https://github.com/kuzeyc) on 2026-11-30T11:23:28Z. --- @shadowplay711 the structurizer check in play-linux.sh picks an older VKD3D-Proton over a newer one here. `vkd3d_new_structurizer` (scripts/play-linux.sh:120) looks for the string `legacy_structurizer` in d3d12core.dll. On this machine: - Proton Hotfix (hotfix-20261110), vkd3d-1.1-5729-g00b6ef057: has the string, so it is taken. - GE-Proton11-15, VKD3D-Proton v3.1-97-g71cae091b (`files/lib/wine/vkd3d-proton/version`): no longer has it, so it is passed over, also when `LEONIDA_PROTON` names GE-Proton11-15. The start line then reads "under GE-Proton11-15 … with … the VKD3D-Proton of hotfix-20261110". With the Hotfix build, every start had 7 "stack overflow" lines in the first 10 s of pipeline building (all at the same address, in `watch::install::on_write` per leonida.pdb, the vectored handler that runs once the stack is already gone) and the overlay stuck at "7 LEFT", like your "6 LEFT" run. `RUST_MIN_STACK=16777216` didn't help: the threads had 16 MB and still used all of it. With `LEONIDA_VKD3D` pointing at GE-Proton11-15's `x86_64-windows` folder: 0 stack overflows, nothing stuck, 57-60 fps in the world. That matches eodclxvi's note that 71cae091b's dxil-spirv fixes these overflows. So the marker seems to have gone with the old structurizer, and the newest builds now look "old" to the check. Reading the build from the `version` file, or a marker only newer builds carry, might hold up better. Separately, for the `pipeline_library_app_cache` question: I tried `VKD3D_CONFIG=pipeline_library_app_cache` with Proton Hotfix's VKD3D-Proton, and the first start crashed in `vkCreateComputePipelines` (0xc0000005) on a compute shader that built fine twice in the default mode. So leaving it out of the script was right here. RTX 3070 8 GB, NVIDIA 610.57.04, Arch Linux (kernel 6.18 LTS), #2577 at 919c0a9e2 plus #2654's fix. AI-assisted (Claude Code).
shadowplay711 commented 2026-11-30 13:31:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by shadowplay711 on 2026-11-30T13:31:58Z.


@kuzeyc thanks, that was right: VKD3D-Proton v3.1-97 (71cae091b, "Remove the legacy structurizer entirely") took the legacy_structurizer name out with the legacy structurizer, so the check took the newest builds for old ones.

The check now reads the build too:

  • v<major>.<minor>-<n>-g<commit> from d3d12core.dll or the version file beside it (GE-Proton writes v3.1-83-gcae8353ed-GE-Proton into the DLL),
  • else vkd3d-1.1-<n>-g<commit>, the form Proton writes into files/lib/wine/vkd3d-proton/version; on VKD3D-Proton's master v3.1 is vkd3d-1.1-5686, so Proton Hotfix's vkd3d-1.1-5729-g00b6ef057 is v3.1-43 and 71cae091b is vkd3d-1.1-5783,
  • else the release number the DLL carries (3.1.0 for the bundled release).

A build counts as having the new structurizer when it still names the option or is v3.1-22 or later (the option came in with 3f6a2c71, v3.1-22), or is a release from 3.2 on. VKD3D-Proton 3.1 still does not.

When the bundled one lacks it, the script now takes the newest qualifying build among the Proton in use and the other Protons found, not the first one by Proton name, with the Proton in use first among equal builds. With your three builds that is GE-Proton11-15's v3.1-97 whether LEONIDA_PROTON is unset, GE-Proton11-15 or Proton Hotfix. The tests cover each version form and that choice, and docs/linux.md says how it works.

On pipeline_library_app_cache: thanks for trying it, it stays out of the script.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7279980140 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7279980140). Originally posted by [shadowplay711](https://github.com/shadowplay711) on 2026-11-30T13:31:58Z. --- @kuzeyc thanks, that was right: VKD3D-Proton v3.1-97 (71cae091b, "Remove the legacy structurizer entirely") took the `legacy_structurizer` name out with the legacy structurizer, so the check took the newest builds for old ones. The check now reads the build too: * `v<major>.<minor>-<n>-g<commit>` from `d3d12core.dll` or the `version` file beside it (GE-Proton writes `v3.1-83-gcae8353ed-GE-Proton` into the DLL), * else `vkd3d-1.1-<n>-g<commit>`, the form Proton writes into `files/lib/wine/vkd3d-proton/version`; on VKD3D-Proton's master `v3.1` is `vkd3d-1.1-5686`, so Proton Hotfix's `vkd3d-1.1-5729-g00b6ef057` is `v3.1-43` and 71cae091b is `vkd3d-1.1-5783`, * else the release number the DLL carries (3.1.0 for the bundled release). A build counts as having the new structurizer when it still names the option or is `v3.1-22` or later (the option came in with 3f6a2c71, `v3.1-22`), or is a release from 3.2 on. VKD3D-Proton 3.1 still does not. When the bundled one lacks it, the script now takes the newest qualifying build among the Proton in use and the other Protons found, not the first one by Proton name, with the Proton in use first among equal builds. With your three builds that is GE-Proton11-15's `v3.1-97` whether `LEONIDA_PROTON` is unset, GE-Proton11-15 or Proton Hotfix. The tests cover each version form and that choice, and docs/linux.md says how it works. On `pipeline_library_app_cache`: thanks for trying it, it stays out of the script.
z3r0rc commented 2026-12-01 10:33:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by z3r0rc on 2026-12-01T10:33:01Z.


Measured Linux play baseline from one month of factory work (CachyOS host, RTX 4090, NVIDIA 620.73.04, host Wine 11.23, cross-build via cargo-xwin --target x86_64-pc-windows-msvc): the D3D12 runtime now plays the title at a stable 15-20 fps driving through towns and the highway with no fps drops. What it took, so others can skip the month:

Binaries that are load-bearing

  • VKD3D-Proton master, not v3.1: with v3.1-built DLLs two compute pipelines fault the NVIDIA driver inside vkCreateComputePipelines (Wine receipts 0xc000001d) at world entry; dxil-spirv's structurizer rewrite 71967a38a is the fix and no release contains it yet. (Symptom family matches vkd3d-proton#2872.)
  • An app-local dxcompiler.dll (DXC 1.9.2609) next to leonida.exe — Wine's builtin d3dcompiler_47 refuses the runtime HLSL helpers; see my comment on #2642 for the black-world consequence, and #2642 itself makes this obsolete when it lands.
  • The pipeline-library (NULL, 0) fix (PR incoming from us; see #2766 comment for the sibling sampler finding).

Env set that differs from upstream defaults (everything else we keep at upstream defaults, including the ps1's LEONIDA_PAIRED_FOR / LEONIDA_SKIP_PIPELINES sets from 804280d80/0bc6e21a1 verbatim)

  • LEONIDA_PIPELINE_WAIT_MS=100 with LEONIDA_PIPELINE_WAIT_ONCE=0 — after the library loop works, the 500 ms default wait IS every remaining drop (spikes 300-590 ms = one first-encounter make each); 10000 froze frames into the title watchdog, 500 is stuttery. WAIT_ONCE=0 re-arms the wait every frame, which is what lets the world light as soon as the backlog drains (ONCE mode was a black-world cause).
  • LEONIDA_NULL_SAMPLER_LINEAR=1 — character faces (see my #2766 comment).
  • LEONIDA_STATIC_SAMPLERS_LINEAR=PS_Composite — older face-channel fix.
  • LEONIDA_ASYNC_SUBMIT=1 and LEONIDA_COPY_SCOPED=1 set once for the whole run (measured -15.4 % mean frame time, 6/6 mirror pairs negative); never flip either mid-window — only the mid-run ON->OFF flip poisons a run.
  • LEONIDA_CARD_RESERVE_BUDGETS=1 (#2589 family, weak positive), LEONIDA_MAP_THREADS=1, LEONIDA_DYNAMIC_SLOTS=524288, LEONIDA_D3D12_DRED=faults, LEONIDA_CARD_SPANS=1 measurement-only.

Discipline that matters more than any switch

  • End windows with the window close, never a kill: a forced stop writes NEITHER the pipeline library NOR the NVIDIA driver cache (findings.md notes it), and a cold driver cache is 4.7x worse (273 vs 59 ms/frame median, true A/BBA).
  • Never prune the NVIDIA shader cache; the first run after cache loss is warm-up, not a verdict.
  • Expect a ~2 min entry backlog at world entry (translation queueing, not vkCreate); starting through the opening cinematic is free compile time. The library compounds per clean window: 448,760 -> 605,624 -> 641,336 bytes, and drops thin with it.
  • DLSS under plain Wine: nvngx_dlss.dll init refuses (0xbad00001, no NVAPI surface); interim arm is staging dxvk-nvapi nvapi64.dll.

Why the remaining 15-20 fps is winnable on CPU: with LEONIDA_CARD_SPANS=1, even 3 fps frames show 32-44 ms of card work and 136-166 ms of card idle between ~18 submissions — the GPU waits on us, not the reverse.

AI-assisted factory work; happy to upstream the launcher env defaults as a docs page if wanted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7308355838 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7308355838). Originally posted by [z3r0rc](https://github.com/z3r0rc) on 2026-12-01T10:33:01Z. --- Measured Linux play baseline from one month of factory work (CachyOS host, RTX 4090, NVIDIA 620.73.04, host Wine 11.23, cross-build via cargo-xwin `--target x86_64-pc-windows-msvc`): the D3D12 runtime now plays the title at a stable 15-20 fps driving through towns and the highway with no fps drops. What it took, so others can skip the month: **Binaries that are load-bearing** - VKD3D-Proton **master**, not v3.1: with v3.1-built DLLs two compute pipelines fault the NVIDIA driver inside `vkCreateComputePipelines` (Wine receipts `0xc000001d`) at world entry; dxil-spirv's structurizer rewrite `71967a38a` is the fix and no release contains it yet. (Symptom family matches vkd3d-proton#2872.) - An app-local `dxcompiler.dll` (DXC 1.9.2609) next to `leonida.exe` — Wine's builtin d3dcompiler_47 refuses the runtime HLSL helpers; see my comment on #2642 for the black-world consequence, and #2642 itself makes this obsolete when it lands. - The pipeline-library `(NULL, 0)` fix (PR incoming from us; see #2766 comment for the sibling sampler finding). **Env set that differs from upstream defaults (everything else we keep at upstream defaults, including the ps1's `LEONIDA_PAIRED_FOR` / `LEONIDA_SKIP_PIPELINES` sets from `804280d80`/`0bc6e21a1` verbatim)** - `LEONIDA_PIPELINE_WAIT_MS=100` with `LEONIDA_PIPELINE_WAIT_ONCE=0` — after the library loop works, the 500 ms default wait IS every remaining drop (spikes 300-590 ms = one first-encounter make each); 10000 froze frames into the title watchdog, 500 is stuttery. `WAIT_ONCE=0` re-arms the wait every frame, which is what lets the world light as soon as the backlog drains (ONCE mode was a black-world cause). - `LEONIDA_NULL_SAMPLER_LINEAR=1` — character faces (see my #2766 comment). - `LEONIDA_STATIC_SAMPLERS_LINEAR=PS_Composite` — older face-channel fix. - `LEONIDA_ASYNC_SUBMIT=1` and `LEONIDA_COPY_SCOPED=1` set once for the whole run (measured -15.4 % mean frame time, 6/6 mirror pairs negative); never flip either mid-window — only the mid-run ON->OFF flip poisons a run. - `LEONIDA_CARD_RESERVE_BUDGETS=1` (#2589 family, weak positive), `LEONIDA_MAP_THREADS=1`, `LEONIDA_DYNAMIC_SLOTS=524288`, `LEONIDA_D3D12_DRED=faults`, `LEONIDA_CARD_SPANS=1` measurement-only. **Discipline that matters more than any switch** - End windows with the window close, never a kill: a forced stop writes NEITHER the pipeline library NOR the NVIDIA driver cache (findings.md notes it), and a cold driver cache is 4.7x worse (273 vs 59 ms/frame median, true A/BBA). - Never prune the NVIDIA shader cache; the first run after cache loss is warm-up, not a verdict. - Expect a ~2 min entry backlog at world entry (translation queueing, not `vkCreate`); starting through the opening cinematic is free compile time. The library compounds per clean window: 448,760 -> 605,624 -> 641,336 bytes, and drops thin with it. - DLSS under plain Wine: `nvngx_dlss.dll` init refuses (`0xbad00001`, no NVAPI surface); interim arm is staging dxvk-nvapi `nvapi64.dll`. Why the remaining 15-20 fps is winnable on CPU: with `LEONIDA_CARD_SPANS=1`, even 3 fps frames show 32-44 ms of card work and 136-166 ms of card idle between ~18 submissions — the GPU waits on us, not the reverse. AI-assisted factory work; happy to upstream the launcher env defaults as a docs page if wanted.
merzleckeier commented 2026-12-01 13:17:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T13:17:13Z.


Ran play-linux.sh through system Wine with a real offscreen D3D12 probe at 202b9652b + ed867d7b2. The actual shell entry point updated a disposable prefix, installed the selected DLLs, then launched a small Win64 probe with a synthetic path containing a space. The probe opened that placeholder path and created a real D3D12 device on AMD RADV (default Series S) and RTX 4070 SUPER (explicit Series X). It also verified that explicit LEONIDA_COPY_SCOPED=0 survived while LEONIDA_PORT_DESCRIPTORS defaulted to 1. All four installed DLLs matched the input files byte for byte. Across the three Python launcher/build suites there were 72 passes and 19 skips. The executed binary was a probe supplied via LEONIDA_RUNTIME, so the full runtime build and gameplay are outside this run.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7312384673 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7312384673). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T13:17:13Z. --- Ran play-linux.sh through system Wine with a real offscreen D3D12 probe at `202b9652b` + `ed867d7b2`. The actual shell entry point updated a disposable prefix, installed the selected DLLs, then launched a small Win64 probe with a synthetic path containing a space. The probe opened that placeholder path and created a real D3D12 device on AMD RADV (default Series S) and RTX 4070 SUPER (explicit Series X). It also verified that explicit `LEONIDA_COPY_SCOPED=0` survived while `LEONIDA_PORT_DESCRIPTORS` defaulted to `1`. All four installed DLLs matched the input files byte for byte. Across the three Python launcher/build suites there were 72 passes and 19 skips. The executed binary was a probe supplied via `LEONIDA_RUNTIME`, so the full runtime build and gameplay are outside this run. AI-assisted with OpenAI Codex.
ASOwnerYT commented 2026-12-02 08:21:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ASOwnerYT on 2026-12-02T08:21:28Z.


@shadowplay711 could you say why this was closed? It had an approval, and several of its fixes still apply to main (a917c54d6) under system Wine on NVIDIA: DXVK's dxgi, the VKD3D-Proton structurizer check, and the cache path. If it was superseded or there was a problem with the approach, knowing which would keep others from redoing it. D3D12-LINUX-PLAY-PROTON and D3D12-LINUX-WINE-TUNING on #2570 now claim parts of the same script.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7339336886 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7339336886). Originally posted by [ASOwnerYT](https://github.com/ASOwnerYT) on 2026-12-02T08:21:28Z. --- @shadowplay711 could you say why this was closed? It had an approval, and several of its fixes still apply to `main` (`a917c54d6`) under system Wine on NVIDIA: DXVK's `dxgi`, the VKD3D-Proton structurizer check, and the cache path. If it was superseded or there was a problem with the approach, knowing which would keep others from redoing it. D3D12-LINUX-PLAY-PROTON and D3D12-LINUX-WINE-TUNING on #2570 now claim parts of the same script. AI-assisted (Claude Code, Claude Opus 5.5).
shadowplay711 commented 2026-12-02 08:31:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by shadowplay711 on 2026-12-02T08:31:06Z.


@shadowplay711 could you say why this was closed? It had an approval, and several of its fixes still apply to main (a917c54d6) under system Wine on NVIDIA: DXVK's dxgi, the VKD3D-Proton structurizer check, and the cache path. If it was superseded or there was a problem with the approach, knowing which would keep others from redoing it. D3D12-LINUX-PLAY-PROTON and D3D12-LINUX-WINE-TUNING on #2570 now claim parts of the same script.

AI-assisted (Claude Code, Claude Opus 5.5).

I deleted my fork of the Main repo. Unfortunately i didn't know that when also the PR will be closed.

At least all commits and File changes are still recorded under this PR, even when it's closed. Feel free to use these..

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7339559924 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2577#issuecomment-7339559924). Originally posted by [shadowplay711](https://github.com/shadowplay711) on 2026-12-02T08:31:06Z. --- > [@shadowplay711](https://github.com/shadowplay711) could you say why this was closed? It had an approval, and several of its fixes still apply to `main` (`a917c54d6`) under system Wine on NVIDIA: DXVK's `dxgi`, the VKD3D-Proton structurizer check, and the cache path. If it was superseded or there was a problem with the approach, knowing which would keep others from redoing it. D3D12-LINUX-PLAY-PROTON and D3D12-LINUX-WINE-TUNING on [#2570](https://github.com/ProjectLeonida/mandy/issues/2570) now claim parts of the same script. > > AI-assisted (Claude Code, Claude Opus 5.5). I deleted my fork of the Main repo. Unfortunately i didn't know that when also the PR will be closed. At least all commits and File changes are still recorded under this PR, even when it's closed. Feel free to use these..

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2577
No description provided.