Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) #257

Closed
github-bot wants to merge 3 commits from gh-pr/257/head into gh-pr/257/base
Owner

@⁠simnJS on GitHub · 2026-11-23 21:59 UTC · original
linux-kit → main · +580 −2 · 10 files · 3 commits · closed without merging

Running XCL on Linux under Wine + vkd3d-proton: a setup a contributor can follow, built from the findings in #175 and from runs on Linux, and a start-up message for the vkd3d-proton assertion players hit (#241). Part of #154.

What is in it

  • docs/linux.md: cross-build for x86_64-pc-windows-gnu, DXC, which Wine (one with kernel write watches – Proton's – or vkd3d-proton silently gives the GPU its own copy of unified memory), vkd3d-proton v3.1 rebuilt with -Db_ndebug=true plus a 6-line patch to the two from_iface lookups, VKD3D_CONFIG=ignore_shared_fence, DXVK's dxgi / d3d11 / d3d10core, prefix, running, known state.
  • scripts/linux/: vkd3d-proton-xcl.patch, build-vkd3d-proton.sh, setup-prefix.sh, run.sh (XCL_NETWORK=0 by default).
  • crates/xcl/src/preflight.rs: under Wine only, an error when the loaded d3d12core.dll holds vkd3d-proton's iface->lpVtbl == &d3d12_heap_vtbl assertion (#241), a warning when dxgi.dll is not DXVK's (presenting crashes in wined3d, #175).
  • tests/testgamedll/Cargo.toml: test = false, doctest = false – its test harness imports kernelx.dll and cannot start on the GNU target; the crate has no tests.
  • scripts/linux/build-opus.sh + an "Opus" section in docs/linux.md (second commit): builds libopus 1.5.2 as the opus.dll that #294 loads where Windows has no Opus decoder (Wine), checked against its SHA-256.
  • scripts/linux/smoke.sh + a "Regression runs" section in docs/linux.md (third commit): smoke.ps1's regression run and xcl-smoke block under Wine, for contributors without Windows.
  • README.md: one line pointing to docs/linux.md; THIRD_PARTY.md: the patch (LGPL-2.1, patch only, vkd3d-proton is not distributed).

The vkd3d-proton build is a workaround: the fix is proxies for the host's objects (#175), and the doc says so.

Tested

  • Ubuntu 26.04 (kernel 7.0), RTX 4080 SUPER (NVIDIA 595.99.02), Ryzen 9 7950X3D; Proton Experimental 11.0's Wine, vkd3d-proton v3.1 + patch, DXVK 3.1.1, DXC 1.9.2609; Rust stable, x86_64-pc-windows-gnu.
  • cargo build --workspace --all-targets --locked --target x86_64-pc-windows-gnu; bash -n and shellcheck on the scripts.
  • Retail title 1.0.2.1 through scripts/linux/run.sh: starts and runs at ~30 fps, picture black as reported in #175; no start-up message with the patched vkd3d-proton, the error with Proton's stock vkd3d-proton.

Regression run
Made with scripts/linux/smoke.sh (this PR: smoke.ps1's run and block under Wine), 50 s, on Ubuntu 26.04 / RTX 4080 SUPER, Proton Experimental 11.0's Wine, vkd3d-proton v3.1 + patch, DXVK 3.1.1. In both runs the account prompt was answered by hand with A and the title went to its "Brightness Level" screen; both ended by themselves (exit: 0x0). Under Wine XCL's end takes ~15 s after XCL_RUN_SECONDS (its watchdog: suspending every thread also stops vkd3d-proton's), so the earlier 60 s blocks with a 10 s grace said killed. peak commit reads 0 under Wine.

main at 4017f8f:

xcl-smoke v1
commit: 4017f8ff8faaae6007fd83910d230a027dd85a33
gpu: NVIDIA GeForce RTX 4080 SUPER
title: 78b7bda4
seconds: 50
exit: 0x0
frames shown: 722 (PresentX 722)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

This PR's head 463e2e1:

xcl-smoke v1
commit: 463e2e18356fbb4f09834aa4da5d8c88f4c1bb61
gpu: NVIDIA GeForce RTX 4080 SUPER
title: 78b7bda4
seconds: 50
exit: 0x0
frames shown: 725 (PresentX 725)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 0 MB

Not tested

  • Windows: the test suite and scripts/smoke.ps1 were not run (no Windows machine); the regression blocks above come from smoke.sh under Wine. The preflight change only runs under Wine (util::under_wine); testgamedll has no tests.
  • AMD GPUs, other Wine builds.

AI use

  • Written with an AI coding agent (code, docs, scripts and this description), then read and checked by the author.
**@⁠simnJS** on GitHub · 2026-11-23 21:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/257) `linux-kit` → `main` · +580 −2 · 10 files · 3 commits · closed without merging Running XCL on Linux under Wine + vkd3d-proton: a setup a contributor can follow, built from the findings in #175 and from runs on Linux, and a start-up message for the vkd3d-proton assertion players hit (#241). Part of #154. **What is in it** - `docs/linux.md`: cross-build for `x86_64-pc-windows-gnu`, DXC, which Wine (one with kernel write watches – Proton's – or vkd3d-proton silently gives the GPU its own copy of unified memory), vkd3d-proton v3.1 rebuilt with `-Db_ndebug=true` plus a 6-line patch to the two `from_iface` lookups, `VKD3D_CONFIG=ignore_shared_fence`, DXVK's `dxgi` / `d3d11` / `d3d10core`, prefix, running, known state. - `scripts/linux/`: `vkd3d-proton-xcl.patch`, `build-vkd3d-proton.sh`, `setup-prefix.sh`, `run.sh` (`XCL_NETWORK=0` by default). - `crates/xcl/src/preflight.rs`: under Wine only, an error when the loaded `d3d12core.dll` holds vkd3d-proton's `iface->lpVtbl == &d3d12_heap_vtbl` assertion (#241), a warning when `dxgi.dll` is not DXVK's (presenting crashes in wined3d, #175). - `tests/testgamedll/Cargo.toml`: `test = false`, `doctest = false` – its test harness imports `kernelx.dll` and cannot start on the GNU target; the crate has no tests. - `scripts/linux/build-opus.sh` + an "Opus" section in `docs/linux.md` (second commit): builds libopus 1.5.2 as the `opus.dll` that #294 loads where Windows has no Opus decoder (Wine), checked against its SHA-256. - `scripts/linux/smoke.sh` + a "Regression runs" section in `docs/linux.md` (third commit): `smoke.ps1`'s regression run and `xcl-smoke` block under Wine, for contributors without Windows. - `README.md`: one line pointing to `docs/linux.md`; `THIRD_PARTY.md`: the patch (LGPL-2.1, patch only, vkd3d-proton is not distributed). The vkd3d-proton build is a workaround: the fix is proxies for the host's objects (#175), and the doc says so. **Tested** - Ubuntu 26.04 (kernel 7.0), RTX 4080 SUPER (NVIDIA 595.99.02), Ryzen 9 7950X3D; Proton Experimental 11.0's Wine, vkd3d-proton v3.1 + patch, DXVK 3.1.1, DXC 1.9.2609; Rust stable, `x86_64-pc-windows-gnu`. - `cargo build --workspace --all-targets --locked --target x86_64-pc-windows-gnu`; `bash -n` and `shellcheck` on the scripts. - Retail title 1.0.2.1 through `scripts/linux/run.sh`: starts and runs at ~30 fps, picture black as reported in #175; no start-up message with the patched vkd3d-proton, the error with Proton's stock vkd3d-proton. **Regression run** Made with `scripts/linux/smoke.sh` (this PR: `smoke.ps1`'s run and block under Wine), 50 s, on Ubuntu 26.04 / RTX 4080 SUPER, Proton Experimental 11.0's Wine, vkd3d-proton v3.1 + patch, DXVK 3.1.1. In both runs the account prompt was answered by hand with A and the title went to its "Brightness Level" screen; both ended by themselves (`exit: 0x0`). Under Wine XCL's end takes ~15 s after `XCL_RUN_SECONDS` (its watchdog: suspending every thread also stops vkd3d-proton's), so the earlier 60 s blocks with a 10 s grace said `killed`. `peak commit` reads 0 under Wine. `main` at `4017f8f`: ``` xcl-smoke v1 commit: 4017f8ff8faaae6007fd83910d230a027dd85a33 gpu: NVIDIA GeForce RTX 4080 SUPER title: 78b7bda4 seconds: 50 exit: 0x0 frames shown: 722 (PresentX 722) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` This PR's head `463e2e1`: ``` xcl-smoke v1 commit: 463e2e18356fbb4f09834aa4da5d8c88f4c1bb61 gpu: NVIDIA GeForce RTX 4080 SUPER title: 78b7bda4 seconds: 50 exit: 0x0 frames shown: 725 (PresentX 725) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` **Not tested** - Windows: the test suite and `scripts/smoke.ps1` were not run (no Windows machine); the regression blocks above come from `smoke.sh` under Wine. The preflight change only runs under Wine (`util::under_wine`); testgamedll has no tests. - AMD GPUs, other Wine builds. **AI use** - Written with an AI coding agent (code, docs, scripts and this description), then read and checked by the author.
- docs/linux.md: cross-build, DXC, Wine choice, prefix, patched vkd3d-proton, DXVK, running, known state
- scripts/linux: vkd3d-proton v3.1 patch and build, prefix setup, run
- preflight (Wine only): error when d3d12core.dll holds vkd3d-proton's heap vtable assertion (#241),
  warning when dxgi.dll is not DXVK's
Wine and Proton have no MSOpusDecoder.dll, so with #294 XCL loads libopus
from an opus.dll there. build-opus.sh downloads the official libopus 1.5.2
release, checks its SHA-256 and builds opus.dll with mingw-w64;
docs/linux.md says where to put it (XCL_OPUS_DIR or next to xcl.exe) and
how to tell which decoder xcl.log reports.
scripts/smoke.ps1 needs Windows (Start-Process, Get-CimInstance), so a
contributor on Linux cannot make the xcl-smoke blocks a PR that changes
the runtime needs. smoke.sh runs the title the same way under Proton's
Wine (XCL_RUN_SECONDS, XCL_ACTIVITY, networking off), reads XCL's log
and prints the same block; the GPU name comes from the log, and peak
commit reads 0 under Wine. docs/linux.md says how to use it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:17:49 +00:00
github-bot closed this pull request 2026-11-26 04:17:49 +00:00
Author
Owner

@⁠ozimchuk on GitHub · 2026-11-23 22:12 UTC · original

Thanks for writing this up. Two points from runs here (Ubuntu 24.04 in a container, kernel 7.0, RTX 5060 Ti):

  1. "prebuilt Wine Staging builds do not have it" is too broad. WineHQ's own wine-staging 11.21 packages for Ubuntu 24.04 (wine-staging-amd64 11.21~noble-1) pass the guide's own check (grep -a "Using kernel write watches" on lib/wine/x86_64-unix/ntdll.so → 1), and they work: XCL's test title gives 47 [PASS] with userfaultfd allowed, 40 with Docker's default seccomp blocking it. The builds without it are the ones compiled against kernel headers older than 6.7, e.g. Kron4ek's (made in an Ubuntu 18.04 chroot). Something like "WineHQ's staging packages for current Ubuntu have it; portable builds made against older kernel headers (Kron4ek's) do not" would be accurate.

  2. An audio endpoint is needed. On a machine or container with no sound device at all (Wine's ALSA finds no card), the retail game's audio engine deadlocks about 30 s in: its device setup fails, a device lock is left taken, the engine's frames stop, and a trace buffer fills until the game's own check stops the process. A silent ALSA default device is enough, e.g. ~/.asoundrc:

    pcm.!default {
        type null
    }
    

    With it the game runs on at 30 fps (black, as reported). A desktop with sound never hits this; containers and headless setups do.

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

**@⁠ozimchuk** on GitHub · 2026-11-23 22:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7115472607) Thanks for writing this up. Two points from runs here (Ubuntu 24.04 in a container, kernel 7.0, RTX 5060 Ti): 1. **"prebuilt Wine Staging builds do not have it"** is too broad. WineHQ's own `wine-staging` 11.21 packages for Ubuntu 24.04 (`wine-staging-amd64 11.21~noble-1`) pass the guide's own check (`grep -a "Using kernel write watches"` on `lib/wine/x86_64-unix/ntdll.so` → 1), and they work: XCL's test title gives 47 `[PASS]` with `userfaultfd` allowed, 40 with Docker's default seccomp blocking it. The builds without it are the ones compiled against kernel headers older than 6.7, e.g. Kron4ek's (made in an Ubuntu 18.04 chroot). Something like "WineHQ's staging packages for current Ubuntu have it; portable builds made against older kernel headers (Kron4ek's) do not" would be accurate. 2. **An audio endpoint is needed.** On a machine or container with no sound device at all (Wine's ALSA finds no card), the retail game's audio engine deadlocks about 30 s in: its device setup fails, a device lock is left taken, the engine's frames stop, and a trace buffer fills until the game's own check stops the process. A silent ALSA default device is enough, e.g. `~/.asoundrc`: ``` pcm.!default { type null } ``` With it the game runs on at 30 fps (black, as reported). A desktop with sound never hits this; containers and headless setups do. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@⁠JGonzalezRodriguez on GitHub · 2026-11-23 22:25 UTC · original

Reviewed and live-tested commit c6ab20e on Linux.

Tested

  • Host / stack: CachyOS Linux (kernel 7.2.9-2-cachyos, vm.unprivileged_userfaultfd=0), NVIDIA GeForce RTX 4090 (610.57.4) + AMD Radeon(TM) Graphics (radv 26.2.4), Proton Experimental (11.0-20261112, DXVK 3.1.1), relaxed vkd3d-proton built from upstream master (30b0eb9), cross-built for x86_64-pc-windows-msvc (rustc 1.98.1, clang-cl + lld-link + xwin SDK 10.0.26100).
  • Build: cargo build --release --workspace --target x86_64-pc-windows-msvc and cargo test --no-run --workspace --target x86_64-pc-windows-msvc: 0 errors, 0 warnings (tests/testgamedll/Cargo.toml causes no regressions).
  • Tests under Proton Experimental: preflight:: 6/6 passed; e2e::launcher_uses_configured_exe_in_an_ambiguous_folder 1/1 passed; xcl_testtitle test harness exited 0.
  • Live xcl.exe run startup check matrix (synthetic PE + xcl_testtitle):
    • Stock Proton vkd3d-proton + DXVK: reports ERROR for iface->lpVtbl == &d3d12_heap_vtbl (#241), no DXVK warning; xcl_testtitle aborts at vkd3d_private.h:1077 as predicted.
    • Relaxed vkd3d-proton (30b0eb9) + DXVK via setup-prefix.sh + run.sh: no Wine errors/warnings in console or report.json; all D3D12.X / UMA / PresentX / sparse VRAM / RT / DirectStorage / MFPlat checks in xcl_testtitle pass.
    • Wine builtin d3d12,d3d12core,dxgi,d3d11,d3d10core=b: reports no D3D12 device + WARNING: dxgi.dll is Wine's, not DXVK's.
    • Relaxed vkd3d-proton + Wine builtin dxgi=b: GPU probe succeeds, reports only the dxgi.dll WARNING.
    • Stock Proton vkd3d-proton + Wine builtin dxgi=b: reports both the vkd3d-proton ERROR and the dxgi.dll WARNING.
  • Scripts & patch: bash -n scripts/linux/*.sh passes. scripts/linux/vkd3d-proton-xcl.patch matches v3.1 at exact line numbers and also applies cleanly (git apply --check and patch --dry-run --fuzz=0) to upstream master (30b0eb9, hunk 2 offset +280).

Findings

  1. scripts/linux/setup-prefix.sh:38-43 — plain cp follows symlinks in system32/ and can overwrite files outside <prefix>

    • setup-prefix.sh documents updating an existing prefix (<prefix> the prefix to create or update / Only <prefix> is written to.), but GNU cp writes through existing symlinks. Tested live with a symlinked system32/d3d12.dll pointing outside <prefix>: setup-prefix.sh overwrote the external target file in place. If pointed at an existing Steam/Proton, Lutris, or winetricks prefix with symlinked DLLs, it would silently overwrite Proton's shared d3d12*.dll / dxgi.dll with the assertions-off build.
    • Fix: cp --remove-destination (or rm -f the destination DLLs before cp).
  2. scripts/linux/run.sh:22,36 — relative <prefix> path fails immediately

    • setup-prefix.sh:27 canonicalizes prefix=$(cd "$2" && pwd) and run.sh:34 canonicalizes game=$(cd "$game" && pwd), but run.sh:36 exports WINEPREFIX=$prefix without canonicalizing it. Tested live with ./pfx-relaxed:
      wine: invalid directory ./pfx-relaxed in WINEPREFIX: not an absolute path
      
    • Fix: add prefix=$(cd "$prefix" && pwd) after the [ -d "$prefix/drive_c" ] check.
  3. crates/xcl/src/preflight.rs:190-217, 257-328 — scanning writable .data/.bss via from_raw_parts (data-race UB) + missing unit tests

    • image_contains() scans all committed readable regions including PAGE_READWRITE / PAGE_EXECUTE_READWRITE via std::slice::from_raw_parts. Because probe_gpu() has just initialized vkd3d-proton / dxgi (which leave background worker threads such as vkd3d-disk$, vkd3d_fence, vkd3d_queue alive), constructing &[u8] over writable .data/.bss pages risks a Rust data race (UB).
    • Verified in Proton Experimental's d3d12core.dll and dxgi.dll: all target string matches live in .rdata (PAGE_READONLY; 0 matches in .data/.bss). Restricting the scan to non-writable pages (PAGE_READONLY | PAGE_EXECUTE_READ or PAGE_READONLY only — or reading the DLL file via GetModuleFileNameW) avoids the UB and skips unnecessary .data/.bss scanning. (Guarding if needle.is_empty() also avoids a windows(0) panic if reused.)
    • preflight::tests only adds wine: None to found(); please add unit tests covering wine: Some(WineLibs { ... }) (vkd3d_asserts_vtables: Some(true|false) | None, dxgi_is_dxvk: Some(false|true) | None).
  4. Minor script & doc notes

    • scripts/linux/run.sh:38: WINEDLLOVERRIDES=... unconditionally overwrites caller-supplied overrides instead of appending (${WINEDLLOVERRIDES:+$WINEDLLOVERRIDES;}). Also line 42 redirects winepath -w stderr to /dev/null, hiding failures under set -e.
    • scripts/linux/build-vkd3d-proton.sh:32-34: if $src/.git already exists, re-running with a different VKD3D_PROTON_REF (or after an interrupted clone) skips checkout and submodule init.
    • docs/linux.md:50: concurring with @ozimchuk above — distro Wine builds compiled against Linux 6.7+ headers (e.g. CachyOS/Arch system wine-11.19 here) also contain "Using kernel write watches".
    • docs/linux.md:64: vkd3d_private.h has 10 assert(iface->lpVtbl == ...) checks; the 11th is in libs/vkd3d/meta_commands.c:632.
    • docs/linux.md:84-85: DXVK does spoof NVIDIA's DXGI vendor/device ID by default (0x1002/0x73df), and DXVK_CONFIG='dxgi.hideNvidiaGpu = False' disables that, but run.sh doesn't set it, and XCL's own wave32 paths come from D3D12_FEATURE_D3D12_OPTIONS1 rather than DXGI VendorId. Also worth a brief note that v3.1 predates HansKristian-Work/dxil-spirv#372 (NVIDIA 64-bit atomic GPU hang noted in #175).
    • THIRD_PARTY.md:19: vkd3d-proton is LGPL-2.1+ (COPYING / libs/vkd3d/command.c), matching the FFmpeg entry.

Not tested

  • Native Windows (scripts/smoke.ps1, Windows CI)
  • x86_64-pc-windows-gnu build and running build-vkd3d-proton.sh end-to-end (mingw-w64 / shellcheck not installed here)
  • AMD discrete GPU or retail game data

AI use

Reviewed and written with Antigravity (Gemini frontier model); every file/line cited and every live check was directly verified on this host.

**@⁠JGonzalezRodriguez** on GitHub · 2026-11-23 22:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7115727045) Reviewed and live-tested commit `c6ab20e` on Linux. ### Tested - **Host / stack**: CachyOS Linux (kernel `7.2.9-2-cachyos`, `vm.unprivileged_userfaultfd=0`), NVIDIA GeForce RTX 4090 (`610.57.4`) + AMD Radeon(TM) Graphics (`radv 26.2.4`), Proton Experimental (`11.0-20261112`, DXVK `3.1.1`), relaxed `vkd3d-proton` built from upstream `master` (`30b0eb9`), cross-built for `x86_64-pc-windows-msvc` (`rustc 1.98.1`, `clang-cl` + `lld-link` + `xwin` SDK `10.0.26100`). - **Build**: `cargo build --release --workspace --target x86_64-pc-windows-msvc` and `cargo test --no-run --workspace --target x86_64-pc-windows-msvc`: 0 errors, 0 warnings (`tests/testgamedll/Cargo.toml` causes no regressions). - **Tests under Proton Experimental**: `preflight::` 6/6 passed; `e2e::launcher_uses_configured_exe_in_an_ambiguous_folder` 1/1 passed; `xcl_testtitle` test harness exited 0. - **Live `xcl.exe run` startup check matrix (synthetic PE + `xcl_testtitle`)**: - Stock Proton `vkd3d-proton` + DXVK: reports `ERROR` for `iface->lpVtbl == &d3d12_heap_vtbl` (#241), no DXVK warning; `xcl_testtitle` aborts at `vkd3d_private.h:1077` as predicted. - Relaxed `vkd3d-proton` (`30b0eb9`) + DXVK via `setup-prefix.sh` + `run.sh`: no Wine errors/warnings in console or `report.json`; all D3D12.X / UMA / PresentX / sparse VRAM / RT / DirectStorage / MFPlat checks in `xcl_testtitle` pass. - Wine builtin `d3d12,d3d12core,dxgi,d3d11,d3d10core=b`: reports `no D3D12 device` + `WARNING: dxgi.dll is Wine's, not DXVK's`. - Relaxed `vkd3d-proton` + Wine builtin `dxgi=b`: GPU probe succeeds, reports only the `dxgi.dll` `WARNING`. - Stock Proton `vkd3d-proton` + Wine builtin `dxgi=b`: reports both the `vkd3d-proton` `ERROR` and the `dxgi.dll` `WARNING`. - **Scripts & patch**: `bash -n scripts/linux/*.sh` passes. `scripts/linux/vkd3d-proton-xcl.patch` matches `v3.1` at exact line numbers and also applies cleanly (`git apply --check` and `patch --dry-run --fuzz=0`) to upstream `master` (`30b0eb9`, hunk 2 offset +280). ### Findings 1. **`scripts/linux/setup-prefix.sh:38-43` — plain `cp` follows symlinks in `system32/` and can overwrite files outside `<prefix>`** - `setup-prefix.sh` documents updating an existing prefix (`<prefix> the prefix to create or update` / `Only <prefix> is written to.`), but GNU `cp` writes through existing symlinks. Tested live with a symlinked `system32/d3d12.dll` pointing outside `<prefix>`: `setup-prefix.sh` overwrote the external target file in place. If pointed at an existing Steam/Proton, Lutris, or winetricks prefix with symlinked DLLs, it would silently overwrite Proton's shared `d3d12*.dll` / `dxgi.dll` with the assertions-off build. - Fix: `cp --remove-destination` (or `rm -f` the destination DLLs before `cp`). 2. **`scripts/linux/run.sh:22,36` — relative `<prefix>` path fails immediately** - `setup-prefix.sh:27` canonicalizes `prefix=$(cd "$2" && pwd)` and `run.sh:34` canonicalizes `game=$(cd "$game" && pwd)`, but `run.sh:36` exports `WINEPREFIX=$prefix` without canonicalizing it. Tested live with `./pfx-relaxed`: ```text wine: invalid directory ./pfx-relaxed in WINEPREFIX: not an absolute path ``` - Fix: add `prefix=$(cd "$prefix" && pwd)` after the `[ -d "$prefix/drive_c" ]` check. 3. **`crates/xcl/src/preflight.rs:190-217, 257-328` — scanning writable `.data`/`.bss` via `from_raw_parts` (data-race UB) + missing unit tests** - `image_contains()` scans all committed readable regions including `PAGE_READWRITE` / `PAGE_EXECUTE_READWRITE` via `std::slice::from_raw_parts`. Because `probe_gpu()` has just initialized `vkd3d-proton` / `dxgi` (which leave background worker threads such as `vkd3d-disk$`, `vkd3d_fence`, `vkd3d_queue` alive), constructing `&[u8]` over writable `.data`/`.bss` pages risks a Rust data race (UB). - Verified in Proton Experimental's `d3d12core.dll` and `dxgi.dll`: all target string matches live in `.rdata` (`PAGE_READONLY`; 0 matches in `.data`/`.bss`). Restricting the scan to non-writable pages (`PAGE_READONLY | PAGE_EXECUTE_READ` or `PAGE_READONLY` only — or reading the DLL file via `GetModuleFileNameW`) avoids the UB and skips unnecessary `.data`/`.bss` scanning. (Guarding `if needle.is_empty()` also avoids a `windows(0)` panic if reused.) - `preflight::tests` only adds `wine: None` to `found()`; please add unit tests covering `wine: Some(WineLibs { ... })` (`vkd3d_asserts_vtables: Some(true|false) | None`, `dxgi_is_dxvk: Some(false|true) | None`). 4. **Minor script & doc notes** - `scripts/linux/run.sh:38`: `WINEDLLOVERRIDES=...` unconditionally overwrites caller-supplied overrides instead of appending (`${WINEDLLOVERRIDES:+$WINEDLLOVERRIDES;}`). Also line 42 redirects `winepath -w` stderr to `/dev/null`, hiding failures under `set -e`. - `scripts/linux/build-vkd3d-proton.sh:32-34`: if `$src/.git` already exists, re-running with a different `VKD3D_PROTON_REF` (or after an interrupted clone) skips checkout and submodule init. - `docs/linux.md:50`: concurring with `@ozimchuk` above — distro Wine builds compiled against Linux 6.7+ headers (e.g. CachyOS/Arch system `wine-11.19` here) also contain `"Using kernel write watches"`. - `docs/linux.md:64`: `vkd3d_private.h` has 10 `assert(iface->lpVtbl == ...)` checks; the 11th is in `libs/vkd3d/meta_commands.c:632`. - `docs/linux.md:84-85`: DXVK does spoof NVIDIA's DXGI vendor/device ID by default (`0x1002`/`0x73df`), and `DXVK_CONFIG='dxgi.hideNvidiaGpu = False'` disables that, but `run.sh` doesn't set it, and XCL's own wave32 paths come from `D3D12_FEATURE_D3D12_OPTIONS1` rather than DXGI `VendorId`. Also worth a brief note that `v3.1` predates `HansKristian-Work/dxil-spirv#372` (NVIDIA 64-bit atomic GPU hang noted in #175). - `THIRD_PARTY.md:19`: `vkd3d-proton` is `LGPL-2.1+` (`COPYING` / `libs/vkd3d/command.c`), matching the FFmpeg entry. ### Not tested - Native Windows (`scripts/smoke.ps1`, Windows CI) - `x86_64-pc-windows-gnu` build and running `build-vkd3d-proton.sh` end-to-end (`mingw-w64` / `shellcheck` not installed here) - AMD discrete GPU or retail game data ### AI use Reviewed and written with Antigravity (Gemini frontier model); every file/line cited and every live check was directly verified on this host.
Author
Owner

@⁠simnJS on GitHub · 2026-11-23 22:28 UTC · original

Thanks, both points are in, squashed into the PR's commit (15d659e, rebased on main):

  1. Wine: the list now says WineHQ's wine-staging packages for current Ubuntu have the kernel write watches (11.21 on 24.04, as you measured), and that Ubuntu's own wine package (10.0 here) and builds made against kernel headers older than 6.7 (Kron4ek's) do not. The grep check stays as the way to tell.
  2. Audio device: new prerequisite and an "Audio device" section: no sound device at all means the retail game deadlocks about 30 s in; a silent ALSA default (pcm.!default { type null } in ~/.asoundrc) is enough, and a desktop with sound does not need it.
**@⁠simnJS** on GitHub · 2026-11-23 22:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7115800097) Thanks, both points are in, squashed into the PR's commit (15d659e, rebased on main): 1. **Wine:** the list now says WineHQ's `wine-staging` packages for current Ubuntu have the kernel write watches (11.21 on 24.04, as you measured), and that Ubuntu's own `wine` package (10.0 here) and builds made against kernel headers older than 6.7 (Kron4ek's) do not. The `grep` check stays as the way to tell. 2. **Audio device:** new prerequisite and an "Audio device" section: no sound device at all means the retail game deadlocks about 30 s in; a silent ALSA default (`pcm.!default { type null }` in `~/.asoundrc`) is enough, and a desktop with sound does not need it.
Author
Owner

@⁠ersinhf on GitHub · 2026-11-23 23:27 UTC · original

Windows run of head 463e2e18356fbb4f09834aa4da5d8c88f4c1bb61 (the "Windows: the test suite" item under Not tested), clean tree.

Tested

  • NVIDIA GeForce RTX 4070 (Ada), driver 621.14 (32.0.16.2114); AMD Ryzen 5 7500F, 32 GB; Windows 11 build 26200; rustc 1.100.0 stable-x86_64-pc-windows-msvc, debug; DXC 1.9.2602.17 (SDK 10.0.26100.0); XGameRuntime 10.0.26100.9656; no XCL_SAMPLE_* set
  • .\scripts\test.ps1: 652 passed, 0 failed, 40 ignored, the same as main 4017f8f on this machine; SKIPPED 2 (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware. The e2e test (which goes through xcl run and so through preflight::run) passes.
  • image_contains has no test in the PR, so I ran a temporary one in preflight.rs on Windows (local only, removed after): image_contains("kernel32.dll", b"KERNEL32.dll") → Some(true); a needle in no image → Some(false) for kernel32 and ntdll (the whole image is walked without a fault); after probe_gpu("auto") the real d3d12core.dll → Some(false) for the vkd3d assertion text and dxgi.dll → Some(false) for DXVK; a module that is not loaded → None; under_wine() is false and wine_libs() is None. 0.41 s.

Not tested

  • scripts/smoke.ps1 on Windows (no retail title here); the Linux scripts
  • release build

AI use

  • Claude Code with Claude Opus 5.5 ran the build, the suite and the temporary test on this machine and wrote this comment; the person posting it checked each point.
**@⁠ersinhf** on GitHub · 2026-11-23 23:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7116973383) Windows run of head `463e2e18356fbb4f09834aa4da5d8c88f4c1bb61` (the "Windows: the test suite" item under **Not tested**), clean tree. **Tested** - NVIDIA GeForce RTX 4070 (Ada), driver 621.14 (32.0.16.2114); AMD Ryzen 5 7500F, 32 GB; Windows 11 build 26200; rustc 1.100.0 `stable-x86_64-pc-windows-msvc`, debug; DXC 1.9.2602.17 (SDK 10.0.26100.0); XGameRuntime 10.0.26100.9656; no `XCL_SAMPLE_*` set - `.\scripts\test.ps1`: **652 passed, 0 failed, 40 ignored**, the same as `main` 4017f8f on this machine; `SKIPPED` 2 (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. The e2e test (which goes through `xcl run` and so through `preflight::run`) passes. - `image_contains` has no test in the PR, so I ran a temporary one in `preflight.rs` on Windows (local only, removed after): `image_contains("kernel32.dll", b"KERNEL32.dll")` → `Some(true)`; a needle in no image → `Some(false)` for kernel32 and ntdll (the whole image is walked without a fault); after `probe_gpu("auto")` the real `d3d12core.dll` → `Some(false)` for the vkd3d assertion text and `dxgi.dll` → `Some(false)` for `DXVK`; a module that is not loaded → `None`; `under_wine()` is false and `wine_libs()` is `None`. 0.41 s. **Not tested** - `scripts/smoke.ps1` on Windows (no retail title here); the Linux scripts - release build **AI use** - Claude Code with Claude Opus 5.5 ran the build, the suite and the temporary test on this machine and wrote this comment; the person posting it checked each point.
Author
Owner

@⁠simnJS on GitHub · 2026-11-23 23:32 UTC · original

@⁠ersinhf thank you – that covers the Windows side I could not run: the whole suite on 463e2e1 and the start-up check doing nothing on a real d3d12core.dll / dxgi.dll. The PR checks failure is the regression blocks: under Wine the title takes ~15 s to end after XCL_RUN_SECONDS (XCL's end watchdog), longer than the grace I gave smoke.sh, so the blocks said killed. I'm redoing both runs so they end by themselves and will update the description.

**@⁠simnJS** on GitHub · 2026-11-23 23:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7117074039) @⁠ersinhf thank you – that covers the Windows side I could not run: the whole suite on `463e2e1` and the start-up check doing nothing on a real `d3d12core.dll` / `dxgi.dll`. The `PR checks` failure is the regression blocks: under Wine the title takes ~15 s to end after `XCL_RUN_SECONDS` (XCL's end watchdog), longer than the grace I gave `smoke.sh`, so the blocks said `killed`. I'm redoing both runs so they end by themselves and will update the description.
Author
Owner

@⁠samarslan on GitHub · 2026-11-24 01:24 UTC · original

Retested GTA VI 1.0.2.1 on CachyOS with Proton Experimental and an RTX 5070 (driver 620.73.04). Both runs used the same xcl.exe built from upstream main at 7ebf1b8, fresh Proton prefixes, XCL_NETWORK=0, and no time limit. I verified which D3D12 DLLs Proton loaded in each run.

D3D12 runtime Result
Stock Proton Experimental Reached the game’s entry point, then exited with code 3 at 1.15 seconds. Zero frames presented.
vkd3d-proton v3.1 built with this PR’s patch and script at 26fdda6 Reached the Account Picker, Legal Notices, and the main loading screen. After the screen went black, the game crashed at 4m 25s. XCL recorded 3,195 presents.

The patched run ended with 0xc0000005 at game_scarlett_master.exe+0x23cf683 (write to address 0x0). XCL also logged at least 2,048 refused DirectStorage BCPack requests during loading. Their connection to the crash is unclear. Gameplay remains unverified.

AI use — OpenAI Codex (GPT-6) ran the local comparison, checked the logs and frame captures, and drafted this comment.

**@⁠samarslan** on GitHub · 2026-11-24 01:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7119070755) Retested GTA VI 1.0.2.1 on CachyOS with Proton Experimental and an RTX 5070 (driver `620.73.04`). Both runs used the same `xcl.exe` built from upstream `main` at `7ebf1b8`, fresh Proton prefixes, `XCL_NETWORK=0`, and no time limit. I verified which D3D12 DLLs Proton loaded in each run. | D3D12 runtime | Result | |---|---| | Stock Proton Experimental | Reached the game’s entry point, then exited with code `3` at 1.15 seconds. Zero frames presented. | | vkd3d-proton v3.1 built with this PR’s patch and script at `26fdda6` | Reached the Account Picker, Legal Notices, and the main loading screen. After the screen went black, the game crashed at 4m 25s. XCL recorded 3,195 presents. | The patched run ended with `0xc0000005` at `game_scarlett_master.exe+0x23cf683` (write to address `0x0`). XCL also logged at least 2,048 refused DirectStorage BCPack requests during loading. Their connection to the crash is unclear. Gameplay remains unverified. **AI use** — OpenAI Codex (GPT-6) ran the local comparison, checked the logs and frame captures, and drafted this comment.
Author
Owner

@⁠JoaoPauluu on GitHub · 2026-11-24 02:47 UTC · original

Test report: #257 on CachyOS, RTX 3060, following docs/linux.md from scratch

I followed docs/linux.md step by step on a fresh CachyOS (Arch) setup, at the PR's head 26fdda6. The kit works: the patched vkd3d-proton removes the E_INVALIDARG cascade, the start-up check fires exactly as documented, and GTA VI runs at a steady 30 fps without a crash. The picture is still black, as the docs say. Below are a few things I hit that the docs or scripts could cover.

Setup

  • Machine: CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06
  • Rust 1.100.0 (x86_64-pc-windows-gnu), mingw-w64-gcc 16.2.0 (thread model posix), meson 1.12.1, glslang 1.4.363, mingw-w64-tools 14.0.0
  • Wine: Proton Experimental experimental-11.0-20261112 (files/bin/wine, wine-11.0, "Using kernel write watches" present)
  • vkd3d-proton v3.1 (4522cc1a) + vkd3d-proton-xcl.patch, built with scripts/linux/build-vkd3d-proton.sh; DXVK from Proton Experimental (v3.1.1-209-g1039f6820) via setup-prefix.sh
  • DXC 1.9.2609 (dxc_2026_09_29.zip), libopus 1.5.2 from build-opus.sh (checksum OK)
  • DXVK_CONFIG="dxgi.hideNvidiaGpu = False" in every run below

Tests at 26fdda6 (debug build; cargo test --workspace --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4, Proton Experimental's Wine as the cargo runner)

  • lib: 587 passed, 39 failed, 21 ignored, 0 SKIPPED. Most of the 39 are a cascade: gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valu hangs (kernel dispatch: GPU fence still pending after 10000 ms, twice out of two runs when run alone). In the parallel run it takes the device down with it (VK_ERROR_DEVICE_LOST, 53 log lines), and the GPU tests that run after it fail.
  • lib, serially, without that test (--test-threads=1 --skip gpu_more_atomics_sub_dword_scratch_valu): 624 passed, 1 failed, 21 ignored, no device loss. The one failure is hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime (left: 0, right: 12291). It fails twice out of two runs under Proton Experimental's Wine 11.0 and passes on the same binary under Arch's wine 11.21, so it comes from that Wine.
  • integration: 37 passed, 3 failed, 20 ignored. console_dlls_e2e 13/13, gpu_compute_e2e 2/2, gpu_pso_e2e 7/7, rpf_e2e 2/2, xg_oracle 6 (12 ignored), console_shaders 3 (4 ignored), disasm_e2e, texture_states. The 3 that fail:
    • e2e test_title_runs_and_game_folder_is_untouched: user32 … W: not cloaked and XMA2 GetState: ctx=0x0, queued=1 (the same XMA2 issue)
    • pls_quota disk_free_space_ex_reports_pls_quota: left: (0, 2), right: (0, 3)
    • predication_e2e set_predication_buffer_state_and_kickoff: gets past CreateCommandList with the patch, then EQUAL_ZERO(0) must skip dst[0] (2863267840 vs 286331153)
  • For comparison, without the patch (Proton-CachyOS's stock vkd3d-proton 0bb64c5, main 9ce2070): CreateCommandList returns E_INVALIDARG (0x80070057) in 30 lib tests and in predication_e2e. So the patch is what makes those pass.

Start-up check (run.sh, GTA VI, XCL_RUN_SECONDS=8)

  • With the patched build: no ERROR.
  • With Proton Experimental's own vkd3d-proton (2576c0b4a) copied into the prefix: ERROR: this vkd3d-proton stops on the objects XCL hands to D3D12 … #241, followed by the real Assertion failed: iface->lpVtbl == &d3d12_heap_vtbl (vkd3d_private.h:1077). Works as documented.

GTA VI 1.0.2.1 (my own dump; scripts/linux/smoke.sh <proton> <prefix> <game> 60, release build, XCL_NETWORK=0)

PR head (the second of two runs; the first showed 866 frames):

xcl-smoke v1
commit: 26fdda6de64a5e947aa6d07b5a6e97330834c085
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 901 (PresentX 901)
presents per 2 s (last 3): 40 12 0
device removals: 0
crashes: 0
peak commit: 0 MB

The PR merged locally into main 9ce2070 (local merge commit, not pushed):

xcl-smoke v1
commit: 15caa461658ec77b0fb71ca7d9255f333508dd34
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 972 (PresentX 972)
presents per 2 s (last 3): 33 19 60
device removals: 0
crashes: 0
peak commit: 0 MB
  • Steady 60 presents per 2 s from about 24 s in; all draws translated (0 skipped). Sparse 7431 MB, coherent 83/512 MB.
  • Still black: with XCL_FRAME_DUMP=30, report.json has last_frame_dump = frame 890 / 950, 3840×2160, non_dark_samples: 0 of 518 400. I only have the last sample of each run, so I didn't check earlier frames.

Things the docs or scripts could cover

  1. peak commit: 0 MB under Wine. XCL logs memory: 0 MB committed by the process for the whole run under Proton's Wine, even with 608a79b (PagefileUsage fallback) in the branch. pr_check.py only compares peak commit when both values are non-zero (if pc and mc), so with smoke.sh blocks the 125 % check is skipped silently.
  2. Merge conflict with main: THIRD_PARTY.md (main added the libopus row; the PR adds the vkd3d-proton row in the same place). Keeping both rows resolves it.
  3. Cargo runner and spaces: CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER="…/Proton - Experimental/files/bin/wine" fails (could not execute process … No such file or directory), because cargo splits the runner on spaces. A symlink with no spaces in its path works. It may be worth a line under "Build", since the docs say the test binaries run under Wine "the same way".
  4. hideNvidiaGpu: the docs mention DXVK_CONFIG='dxgi.hideNvidiaGpu = False', but run.sh / smoke.sh don't set it. Without it, DXVK reports the RTX 3060 as AMD (vendor ID: 0x1002).
  5. Arch / CachyOS packages: rustup mingw-w64-gcc meson ninja glslang mingw-w64-tools (the last one has widl). Arch's mingw-w64-gcc is already posix-threaded, and there is no -posix binary.
  6. XMA2 on Proton Experimental's Wine (see Tests). I didn't check whether GTA's own audio is affected; it goes through xapu / Opus, not XAudio2 XMA2.

Not tested

  • Windows; AMD GPUs; the MSVC target / cargo-xwin
  • WineHQ wine-staging, or Ubuntu as in the docs
  • Anything past the first ~60 s of GTA VI, and what the screen showed beyond the sampled frame
  • Whether the atomics hang also happens on Windows NVIDIA (#42's RTX 3060 reports show the whole suite passing there)

AI use: Claude Code (Claude Opus 5.5) set up the environment, ran every command above on the machine above and wrote this report. The counts and blocks are pasted from those runs, not retyped. I reviewed the report before posting.

**@⁠JoaoPauluu** on GitHub · 2026-11-24 02:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7120479254) ### Test report: #257 on CachyOS, RTX 3060, following `docs/linux.md` from scratch I followed `docs/linux.md` step by step on a fresh CachyOS (Arch) setup, at the PR's head `26fdda6`. The kit works: the patched vkd3d-proton removes the `E_INVALIDARG` cascade, the start-up check fires exactly as documented, and GTA VI runs at a steady 30 fps without a crash. The picture is still black, as the docs say. Below are a few things I hit that the docs or scripts could cover. **Setup** - Machine: CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06 - Rust 1.100.0 (`x86_64-pc-windows-gnu`), mingw-w64-gcc 16.2.0 (thread model posix), meson 1.12.1, glslang 1.4.363, mingw-w64-tools 14.0.0 - Wine: Proton Experimental `experimental-11.0-20261112` (`files/bin/wine`, wine-11.0, "Using kernel write watches" present) - vkd3d-proton v3.1 (`4522cc1a`) + `vkd3d-proton-xcl.patch`, built with `scripts/linux/build-vkd3d-proton.sh`; DXVK from Proton Experimental (`v3.1.1-209-g1039f6820`) via `setup-prefix.sh` - DXC 1.9.2609 (`dxc_2026_09_29.zip`), libopus 1.5.2 from `build-opus.sh` (checksum OK) - `DXVK_CONFIG="dxgi.hideNvidiaGpu = False"` in every run below **Tests at `26fdda6`** (debug build; `cargo test --workspace --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=4`, Proton Experimental's Wine as the cargo runner) - lib: 587 passed, 39 failed, 21 ignored, 0 `SKIPPED`. Most of the 39 are a cascade: `gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valu` hangs (`kernel dispatch: GPU fence still pending after 10000 ms`, twice out of two runs when run alone). In the parallel run it takes the device down with it (`VK_ERROR_DEVICE_LOST`, 53 log lines), and the GPU tests that run after it fail. - lib, serially, without that test (`--test-threads=1 --skip gpu_more_atomics_sub_dword_scratch_valu`): **624 passed, 1 failed, 21 ignored, no device loss**. The one failure is `hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime` (`left: 0, right: 12291`). It fails twice out of two runs under Proton Experimental's Wine 11.0 and **passes** on the same binary under Arch's `wine` 11.21, so it comes from that Wine. - integration: 37 passed, 3 failed, 20 ignored. `console_dlls_e2e` 13/13, `gpu_compute_e2e` 2/2, `gpu_pso_e2e` 7/7, `rpf_e2e` 2/2, `xg_oracle` 6 (12 ignored), `console_shaders` 3 (4 ignored), `disasm_e2e`, `texture_states`. The 3 that fail: - `e2e` `test_title_runs_and_game_folder_is_untouched`: `user32 … W: not cloaked` and `XMA2 GetState: ctx=0x0, queued=1` (the same XMA2 issue) - `pls_quota` `disk_free_space_ex_reports_pls_quota`: `left: (0, 2)`, `right: (0, 3)` - `predication_e2e` `set_predication_buffer_state_and_kickoff`: gets past `CreateCommandList` with the patch, then `EQUAL_ZERO(0) must skip dst[0]` (`2863267840` vs `286331153`) - For comparison, without the patch (Proton-CachyOS's stock vkd3d-proton `0bb64c5`, `main` `9ce2070`): `CreateCommandList` returns `E_INVALIDARG` (`0x80070057`) in 30 lib tests and in `predication_e2e`. So the patch is what makes those pass. **Start-up check** (`run.sh`, GTA VI, `XCL_RUN_SECONDS=8`) - With the patched build: no ERROR. - With Proton Experimental's own vkd3d-proton (`2576c0b4a`) copied into the prefix: `ERROR: this vkd3d-proton stops on the objects XCL hands to D3D12 … #241`, followed by the real `Assertion failed: iface->lpVtbl == &d3d12_heap_vtbl` (`vkd3d_private.h:1077`). Works as documented. **GTA VI 1.0.2.1** (my own dump; `scripts/linux/smoke.sh <proton> <prefix> <game> 60`, release build, `XCL_NETWORK=0`) PR head (the second of two runs; the first showed 866 frames): ``` xcl-smoke v1 commit: 26fdda6de64a5e947aa6d07b5a6e97330834c085 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 901 (PresentX 901) presents per 2 s (last 3): 40 12 0 device removals: 0 crashes: 0 peak commit: 0 MB ``` The PR merged locally into `main` `9ce2070` (local merge commit, not pushed): ``` xcl-smoke v1 commit: 15caa461658ec77b0fb71ca7d9255f333508dd34 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 972 (PresentX 972) presents per 2 s (last 3): 33 19 60 device removals: 0 crashes: 0 peak commit: 0 MB ``` - Steady 60 presents per 2 s from about 24 s in; all draws translated (`0 skipped`). Sparse 7431 MB, coherent 83/512 MB. - Still black: with `XCL_FRAME_DUMP=30`, `report.json` has `last_frame_dump` = frame 890 / 950, 3840×2160, `non_dark_samples: 0` of 518 400. I only have the last sample of each run, so I didn't check earlier frames. **Things the docs or scripts could cover** 1. **`peak commit: 0 MB` under Wine.** XCL logs `memory: 0 MB committed by the process` for the whole run under Proton's Wine, even with `608a79b` (PagefileUsage fallback) in the branch. `pr_check.py` only compares peak commit when both values are non-zero (`if pc and mc`), so with `smoke.sh` blocks the 125 % check is skipped silently. 2. **Merge conflict with `main`:** `THIRD_PARTY.md` (main added the libopus row; the PR adds the vkd3d-proton row in the same place). Keeping both rows resolves it. 3. **Cargo runner and spaces:** `CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER="…/Proton - Experimental/files/bin/wine"` fails (`could not execute process … No such file or directory`), because cargo splits the runner on spaces. A symlink with no spaces in its path works. It may be worth a line under "Build", since the docs say the test binaries run under Wine "the same way". 4. **`hideNvidiaGpu`:** the docs mention `DXVK_CONFIG='dxgi.hideNvidiaGpu = False'`, but `run.sh` / `smoke.sh` don't set it. Without it, DXVK reports the RTX 3060 as AMD (`vendor ID: 0x1002`). 5. **Arch / CachyOS packages:** `rustup mingw-w64-gcc meson ninja glslang mingw-w64-tools` (the last one has `widl`). Arch's mingw-w64-gcc is already posix-threaded, and there is no `-posix` binary. 6. **XMA2 on Proton Experimental's Wine** (see Tests). I didn't check whether GTA's own audio is affected; it goes through xapu / Opus, not XAudio2 XMA2. **Not tested** - Windows; AMD GPUs; the MSVC target / `cargo-xwin` - WineHQ `wine-staging`, or Ubuntu as in the docs - Anything past the first ~60 s of GTA VI, and what the screen showed beyond the sampled frame - Whether the atomics hang also happens on Windows NVIDIA (#42's RTX 3060 reports show the whole suite passing there) **AI use:** Claude Code (Claude Opus 5.5) set up the environment, ran every command above on the machine above and wrote this report. The counts and blocks are pasted from those runs, not retyped. I reviewed the report before posting.
Author
Owner

@⁠SlopTart on GitHub · 2026-11-24 04:49 UTC · original

Scripts validated on Arch (discrete RDNA3, x86_64-pc-windows-gnu cross-build): build-vkd3d-proton.sh, setup-prefix.sh, smoke.sh, plus the full suite (row in #42 at 3db536e + pr257 merge). Three Arch/gnu-specific notes:

  1. widl: Arch has no widl package and mingw-w64's widl configure refuses Linux hosts (Unsupported target: x86_64-pc-linux-gnu) and the * case calls as_fn_error. One-line patch of the generated configure (make the *) case a no-op) + ./configure && make builds a working Linux widl (it's Wine IDL 11.22); build-vkd3d-proton.sh then finds it as x86_64-w64-mingw32-widl via a symlink. Maybe worth a line in docs/linux.md Prerequisites.
  2. cargo runner + spaces: CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER (and .cargo/config.toml string form) splits on spaces, and Proton lives in …/Proton - Experimental/… → could not execute process … (never executed). A space-free symlink (ln -s ~/.steam/…/"Proton - Experimental" ~/.local/share/xcl-tools/proton) fixes it; docs/linux.md's "point the runner at <proton-dir>/files/bin/wine" fails for the default Steam path. The --config 'target.x86_64-pc-windows-gnu.runner=["…"]' array form works too.
  3. smoke.sh on the repo's own testtitle: mechanics fine (prefix, dll overrides, log parse all work), but the title itself aborts 0x4 at its XMA2 voice step (xcl.exe run <game> without args); the e2e lane's --hello run completes with 2 in-title failures on the same prefix (window cloak, XMA2 GetState). If smoke.sh/testtitle is a supported combination, the XMA2 abort under Wine is worth a note; if not, say so in the header so people don't paste a red block.

Not tested: build-opus.sh, other Wine builds, retail titles.
Counts only, no game data.
AI use: same as #42 row (Hermes agent, local Qwen-class, supervised).

**@⁠SlopTart** on GitHub · 2026-11-24 04:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7122374390) Scripts validated on Arch (discrete RDNA3, `x86_64-pc-windows-gnu` cross-build): `build-vkd3d-proton.sh`, `setup-prefix.sh`, `smoke.sh`, plus the full suite (row in #42 at `3db536e` + pr257 merge). Three Arch/gnu-specific notes: 1. **widl**: Arch has no `widl` package and mingw-w64's `widl` configure refuses Linux hosts (`Unsupported target: x86_64-pc-linux-gnu`) and the `*` case calls `as_fn_error`. One-line patch of the generated `configure` (make the `*)` case a no-op) + `./configure && make` builds a working Linux widl (it's Wine IDL 11.22); `build-vkd3d-proton.sh` then finds it as `x86_64-w64-mingw32-widl` via a symlink. Maybe worth a line in docs/linux.md Prerequisites. 2. **cargo runner + spaces**: `CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER` (and `.cargo/config.toml` string form) splits on spaces, and Proton lives in `…/Proton - Experimental/…` → `could not execute process … (never executed)`. A space-free symlink (`ln -s ~/.steam/…/"Proton - Experimental" ~/.local/share/xcl-tools/proton`) fixes it; docs/linux.md's "point the runner at `<proton-dir>/files/bin/wine`" fails for the default Steam path. The `--config 'target.x86_64-pc-windows-gnu.runner=["…"]'` array form works too. 3. **smoke.sh on the repo's own testtitle**: mechanics fine (prefix, dll overrides, log parse all work), but the title itself aborts `0x4` at its XMA2 voice step (`xcl.exe run <game>` without args); the e2e lane's `--hello` run completes with 2 in-title failures on the same prefix (window cloak, XMA2 GetState). If smoke.sh/testtitle is a supported combination, the XMA2 abort under Wine is worth a note; if not, say so in the header so people don't paste a red block. Not tested: `build-opus.sh`, other Wine builds, retail titles. Counts only, no game data. AI use: same as #42 row (Hermes agent, local Qwen-class, supervised).
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-24 05:47 UTC · original

Tested — Linux desktop presentation

XCL 64b3f35599bb7102f55d640e1a791e7d6dd3b175 (clean main), cross-built with cargo build --release --workspace --locked --target x86_64-pc-windows-gnullvm and LLVM MinGW. I used the vkd3d-proton 3.1 patch from this PR at 26fdda6de64a5e947aa6d07b5a6e97330834c085, built with -Db_ndebug=true, in a dedicated Proton Experimental prefix with its DXVK (v3.1.1-209-g1039f682058fa71). GPU: RTX 4060; NVIDIA driver 620.73.04; DXC 1.9.2609.5. This tests the PR's graphics setup, not a build of its full head.

  • Ran xcl.exe run "<unpacked-game-dir>" with the newer retail title (package 1.0.2.1), external networking disabled, and frame dumps enabled. With gamescope --backend wayland -w 1280 -h 720 -W 1280 -H 720, the desktop window was white even though XCL's frame dumps showed the Account Picker.
  • With Gamescope removed and Wine pointed directly at the host XWayland display, an isolated IPC namespace failed with BadValue on MIT-SHM / X_ShmPutImage. Sharing IPC with the display server fixed that error in this setup. Network isolation and the read-only game mount were unchanged.
  • The direct XWayland window showed the Account Picker / Player1 (A) at 30 fps, confirmed by capturing the actual window rather than just the backbuffer. Relevant log excerpts: 30.0 fps over the last 300; Game exited with code 0x0 (0).

Not tested: Gameplay, audible game output, full test suite, or whether the white window reproduces with other drivers or compositors. This is a workaround on one setup, not a diagnosis of the Gamescope issue.

AI use: Hermes Agent (gpt-6.2-sol) configured and ran the local tests and drafted this report from the observed results.

**@⁠ArturoWolff** on GitHub · 2026-11-24 05:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7123270030) **Tested — Linux desktop presentation** XCL `64b3f35599bb7102f55d640e1a791e7d6dd3b175` (clean `main`), cross-built with `cargo build --release --workspace --locked --target x86_64-pc-windows-gnullvm` and LLVM MinGW. I used the vkd3d-proton 3.1 patch from this PR at `26fdda6de64a5e947aa6d07b5a6e97330834c085`, built with `-Db_ndebug=true`, in a dedicated Proton Experimental prefix with its DXVK (`v3.1.1-209-g1039f682058fa71`). GPU: RTX 4060; NVIDIA driver `620.73.04`; DXC `1.9.2609.5`. This tests the PR's graphics setup, not a build of its full head. - Ran `xcl.exe run "<unpacked-game-dir>"` with the newer retail title (package `1.0.2.1`), external networking disabled, and frame dumps enabled. With `gamescope --backend wayland -w 1280 -h 720 -W 1280 -H 720`, the desktop window was white even though XCL's frame dumps showed the Account Picker. - With Gamescope removed and Wine pointed directly at the host XWayland display, an isolated IPC namespace failed with `BadValue` on `MIT-SHM` / `X_ShmPutImage`. Sharing IPC with the display server fixed that error in this setup. Network isolation and the read-only game mount were unchanged. - The direct XWayland window showed the Account Picker / `Player1 (A)` at 30 fps, confirmed by capturing the actual window rather than just the backbuffer. Relevant log excerpts: `30.0 fps over the last 300`; `Game exited with code 0x0 (0)`. **Not tested:** Gameplay, audible game output, full test suite, or whether the white window reproduces with other drivers or compositors. This is a workaround on one setup, not a diagnosis of the Gamescope issue. **AI use:** Hermes Agent (`gpt-6.2-sol`) configured and ran the local tests and drafted this report from the observed results.
Author
Owner

@⁠Filip722 on GitHub · 2026-11-24 11:55 UTC · original · edited 2026-11-24 12:01 UTC

I checked the command.c compatibility patch against the vkd3d-proton 3.2.0 source 2576c0b4 used by Proton Experimental. Both hunks applied directly. I built it with MinGW release, -Db_ndebug=true and dxil-spirv 1dc543f.

On Bazzite 44, RTX 5060 Laptop GPU (NVIDIA 615.78.08) and Proton Experimental 11.0-20261112, XCL 47efa2e plus the local texture and presentation stack (#640/#782/#793/#820) reached the account picker and loading artwork with VKD3D_CONFIG=ignore_shared_fence,no_descriptor_heap,log_memory_allocations. The run recorded 1,737 sampled presents and 49,471 DirectStorage executions with zero storage failures. It ended at the same 64 MiB device-local vkAllocateMemory access violation observed with the v3.1 compatibility build. This verifies the startup compatibility route on the newer vkd3d snapshot. The default descriptor heap mode was outside this run.

OpenAI Codex with GPT-6.2-Sol high assisted with the build, test and report.

I also tested the default 3.2 descriptor path. The log confirmed VK_EXT_descriptor_heap was enabled. It reached loading again and sampled 1,574 presents and 41,536 DirectStorage executions with zero storage failures before the same allocation access violation.

**@⁠Filip722** on GitHub · 2026-11-24 11:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7130716198) · edited 2026-11-24 12:01 UTC I checked the `command.c` compatibility patch against the vkd3d-proton 3.2.0 source `2576c0b4` used by Proton Experimental. Both hunks applied directly. I built it with MinGW release, `-Db_ndebug=true` and dxil-spirv `1dc543f`. On Bazzite 44, RTX 5060 Laptop GPU (NVIDIA 615.78.08) and Proton Experimental `11.0-20261112`, XCL `47efa2e` plus the local texture and presentation stack (#640/#782/#793/#820) reached the account picker and loading artwork with `VKD3D_CONFIG=ignore_shared_fence,no_descriptor_heap,log_memory_allocations`. The run recorded 1,737 sampled presents and 49,471 DirectStorage executions with zero storage failures. It ended at the same 64 MiB device-local `vkAllocateMemory` access violation observed with the v3.1 compatibility build. This verifies the startup compatibility route on the newer vkd3d snapshot. The default descriptor heap mode was outside this run. OpenAI Codex with GPT-6.2-Sol high assisted with the build, test and report. I also tested the default 3.2 descriptor path. The log confirmed `VK_EXT_descriptor_heap` was enabled. It reached loading again and sampled 1,574 presents and 41,536 DirectStorage executions with zero storage failures before the same allocation access violation.
Author
Owner

@⁠itsd-effex on GitHub · 2026-11-24 04:32 UTC · original · edited 2026-11-24 12:54 UTC

The workspace test suite runs under Proton's Wine on Linux too, with five failures, all differences in Wine, vkd3d-proton or the driver. That gives Linux testers real counts for Tested, which CONTRIBUTING.md currently says aren't possible on Linux.

How (the same as README's scripts/test.ps1, cargo build --workspace + cargo test --workspace, but cross-built with cargo-xwin as in docs/linux.md and run under the kit's Wine):

  • cargo xwin test --no-run --release --workspace --target x86_64-pc-windows-msvc --message-format=json lists the 16 test executables (executable of the compiler-artifact messages with profile.test).
  • Copy dxcompiler.dll / dxil.dll next to each.
  • Run each one with this kit's prefix and environment: WINEPREFIX=<prefix> WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b" VKD3D_CONFIG=ignore_shared_fence <proton>/files/bin/wine <test>.exe --test-threads=4.

Result: RTX 3080 Ti, NVIDIA 620.73.04, Proton Experimental, the kit's vkd3d-proton 3.1, release. Tree: main f4ce27c + #684 + #273 + #533 + #267, merged locally. The suite takes about a minute.

  • Every binary in one pass: 669 passed, 49 failed, 41 ignored. But 44 of those failures pass when rerun alone (<test> --exact). One GPU test hangs and removes the device the later GPU tests share, and they fail with device removed, plus two PoisonError follow-ons.
  • Run the lib binary in two processes instead, gpu::recomp:: (with the hanging test skipped) and --skip gpu::recomp::: 182 passed / 0 failed / 18 ignored, and 493 / 1 / 3. With the other 15 binaries that gives 713 passed, 5 failed, 41 ignored, the same 41 ignored as on Windows. The 5:
test under Wine / vkd3d-proton
gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valu kernel dispatch: GPU fence still pending after 10000 ms: a GPU hang
predication_e2e::set_predication_buffer_state_and_kickoff EQUAL_ZERO(0) must skip dst[0]: the dispatch wasn't skipped
hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime assertion fails (Wine's XAudio2, XMA2)
e2e::test_title_runs_and_game_folder_is_untouched the test title's not cloaked (no DWM cloak) and XMA2 GetState checks
pls_quota::disk_free_space_ex_reports_pls_quota (0, 2) vs (0, 3) from GetDiskFreeSpaceEx

One order-dependent crash to know about: with only the hanging test skipped and the lib binary still in one process, it ends with exit code 3, without a result line, in hle::d3d12x::sparse::tests::a_freed_block_is_decommitted_before_its_address_is_reused (from #348). WINEDEBUG=+seh shows an access violation inside NVIDIA's Vulkan driver (libnvidia-glcore.so.620.73.04 + 0xa93d87, a read at 0x43, reached through winevulkan). It reproduces with gpu::recomp:: sparse::tests::a_freed_block_is_decommitted_before_its_address_is_reused --test-threads=1 (hang skipped), every time. The test passes alone, and it passes after gpu::uma:: only. The full one-pass run doesn't hit it, because the earlier hang has already removed the device. I haven't looked into whether it's the test's decommit or vkd3d-proton / the driver.

So a Linux test report can give real counts with these five named, rather than "not tested". If that's worth writing down, docs/linux.md here seems the place: README's Tests section is Windows-only, and #741, #485 and #453 are reworking the README.

Not tested: other GPUs and drivers (the hang and the driver fault may be NVIDIA-only). Wine-staging or GE builds. The same tree on Windows, for comparison.

AI use: Claude Code (Claude Opus 5.5) wrote the runner script, ran the suite, isolated the failures (including the +seh trace) and drafted this comment. The runs are mine, on the hardware above.

Update (edited): vkd3d-proton master fixes the hang.

  • This kit's vkd3d-proton-xcl.patch applies cleanly to vkd3d-proton master 30b0eb9b (23 Nov: 90 commits after v3.1; its dxil-spirv is 92 commits newer). Built with scripts/linux/build-vkd3d-proton.sh unchanged, from a clone of master in the work dir.
  • Same tree, same machine: the test title is 48 PASS / 2 FAIL, as with 3.1. The suite, split as above: 714 passed, 4 failed, 41 ignored. gpu_more_atomics_sub_dword_scratch_valu passes: no hang, so the one-pass run no longer cascades. The four left are predication, XMA2, the test title's two checks and pls_quota.
  • The NVIDIA driver fault after gpu::recomp:: is unchanged (the same libnvidia-glcore.so.620.73.04 + 0xa93d87), so it doesn't depend on the vkd3d-proton version.
  • Not tested with master: other GPUs and drivers. The retail title (next). Whether anything else in those 90 commits needs the patch to change.

Update 2 (edited, 24 Nov 12:55 UTC): build vkd3d-proton master ec207194 or later. It has the dxil-spirv fix from #611.

  • vkd3d-proton master ec207194 (24 Nov) moves dxil-spirv to 7c04863. That includes dxil-spirv #371 (53aac418), the structurizer fix that closed #611. v3.1 (8b48f0e0) and master 30b0eb9b (34f0ff8) don't have it. This kit's patch applies to ec207194 unchanged. Built with VKD3D_PROTON_REF=master scripts/linux/build-vkd3d-proton.sh <dir>, no other change.
  • Suite on main 47efa2e with it: 737 passed, 4 failed, 41 ignored, the same four as above (row in #42).
  • Retail title (1.0.2.1), the same machine, a run with nothing skipped (XCL_PSO_WAIT_MS unset). 16 compute pipelines of 300 KB or more of DXIL were built in the run: 22 s on average, the slowest (1065 KB) in 44 s. Six earlier runs on 30b0eb9b built 1–13 of that size per run, 17–127 s on average, the slowest in 181 s. The XCL trees and caches differ between those runs, so this isn't a controlled comparison. @⁠ddm-j's offline numbers on #611 are.
  • So VKD3D_PROTON_REF defaulting to v3.1 now leaves Linux users on the slow structurizer. Upstream has no tag after v3.1 yet. @⁠Filip722's 3.2.0 build (Proton's source) used dxil-spirv 1dc543f, which also has #371. A pinned master commit as the default might be worth it, if the maintainers are OK with not pinning a release.
  • Not tested: AMD, other NVIDIA drivers, whether anything else in master needs the patch to change.
**@⁠itsd-effex** on GitHub · 2026-11-24 04:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7122116483) · edited 2026-11-24 12:54 UTC The workspace test suite runs under Proton's Wine on Linux too, with five failures, all differences in Wine, vkd3d-proton or the driver. That gives Linux testers real counts for **Tested**, which CONTRIBUTING.md currently says aren't possible on Linux. **How** (the same as README's `scripts/test.ps1`, `cargo build --workspace` + `cargo test --workspace`, but cross-built with cargo-xwin as in `docs/linux.md` and run under the kit's Wine): - `cargo xwin test --no-run --release --workspace --target x86_64-pc-windows-msvc --message-format=json` lists the 16 test executables (`executable` of the `compiler-artifact` messages with `profile.test`). - Copy `dxcompiler.dll` / `dxil.dll` next to each. - Run each one with this kit's prefix and environment: `WINEPREFIX=<prefix> WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b" VKD3D_CONFIG=ignore_shared_fence <proton>/files/bin/wine <test>.exe --test-threads=4`. **Result:** RTX 3080 Ti, NVIDIA 620.73.04, Proton Experimental, the kit's vkd3d-proton 3.1, release. Tree: `main` `f4ce27c` + #684 + #273 + #533 + #267, merged locally. The suite takes about a minute. - Every binary in one pass: 669 passed, 49 failed, 41 ignored. But 44 of those failures pass when rerun alone (`<test> --exact`). One GPU test hangs and removes the device the later GPU tests share, and they fail with `device removed`, plus two `PoisonError` follow-ons. - Run the lib binary in two processes instead, `gpu::recomp::` (with the hanging test skipped) and `--skip gpu::recomp::`: **182 passed / 0 failed / 18 ignored**, and **493 / 1 / 3**. With the other 15 binaries that gives **713 passed, 5 failed, 41 ignored**, the same 41 ignored as on Windows. The 5: | test | under Wine / vkd3d-proton | |---|---| | `gpu::recomp::tests::gpu_more_atomics_sub_dword_scratch_valu` | `kernel dispatch: GPU fence still pending after 10000 ms`: a GPU hang | | `predication_e2e::set_predication_buffer_state_and_kickoff` | `EQUAL_ZERO(0) must skip dst[0]`: the dispatch wasn't skipped | | `hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime` | assertion fails (Wine's XAudio2, XMA2) | | `e2e::test_title_runs_and_game_folder_is_untouched` | the test title's `not cloaked` (no DWM cloak) and `XMA2 GetState` checks | | `pls_quota::disk_free_space_ex_reports_pls_quota` | `(0, 2)` vs `(0, 3)` from `GetDiskFreeSpaceEx` | **One order-dependent crash to know about:** with only the hanging test skipped and the lib binary still in one process, it ends with exit code 3, without a result line, in `hle::d3d12x::sparse::tests::a_freed_block_is_decommitted_before_its_address_is_reused` (from #348). `WINEDEBUG=+seh` shows an access violation inside NVIDIA's Vulkan driver (`libnvidia-glcore.so.620.73.04 + 0xa93d87`, a read at `0x43`, reached through `winevulkan`). It reproduces with `gpu::recomp:: sparse::tests::a_freed_block_is_decommitted_before_its_address_is_reused --test-threads=1` (hang skipped), every time. The test passes alone, and it passes after `gpu::uma::` only. The full one-pass run doesn't hit it, because the earlier hang has already removed the device. I haven't looked into whether it's the test's decommit or vkd3d-proton / the driver. So a Linux test report can give real counts with these five named, rather than "not tested". If that's worth writing down, `docs/linux.md` here seems the place: README's Tests section is Windows-only, and #741, #485 and #453 are reworking the README. **Not tested:** other GPUs and drivers (the hang and the driver fault may be NVIDIA-only). Wine-staging or GE builds. The same tree on Windows, for comparison. **AI use:** Claude Code (Claude Opus 5.5) wrote the runner script, ran the suite, isolated the failures (including the `+seh` trace) and drafted this comment. The runs are mine, on the hardware above. **Update (edited): vkd3d-proton `master` fixes the hang.** - This kit's `vkd3d-proton-xcl.patch` applies cleanly to vkd3d-proton `master` `30b0eb9b` (23 Nov: 90 commits after v3.1; its dxil-spirv is 92 commits newer). Built with `scripts/linux/build-vkd3d-proton.sh` unchanged, from a clone of `master` in the work dir. - Same tree, same machine: the test title is 48 PASS / 2 FAIL, as with 3.1. The suite, split as above: **714 passed, 4 failed, 41 ignored**. **`gpu_more_atomics_sub_dword_scratch_valu` passes**: no hang, so the one-pass run no longer cascades. The four left are predication, XMA2, the test title's two checks and `pls_quota`. - The NVIDIA driver fault after `gpu::recomp::` is unchanged (the same `libnvidia-glcore.so.620.73.04 + 0xa93d87`), so it doesn't depend on the vkd3d-proton version. - Not tested with `master`: other GPUs and drivers. The retail title (next). Whether anything else in those 90 commits needs the patch to change. **Update 2 (edited, 24 Nov 12:55 UTC): build vkd3d-proton `master` `ec207194` or later. It has the dxil-spirv fix from #611.** - vkd3d-proton `master` `ec207194` (24 Nov) moves dxil-spirv to `7c04863`. That includes dxil-spirv #371 (`53aac418`), the structurizer fix that closed #611. v3.1 (`8b48f0e0`) and `master` `30b0eb9b` (`34f0ff8`) don't have it. This kit's patch applies to `ec207194` unchanged. Built with `VKD3D_PROTON_REF=master scripts/linux/build-vkd3d-proton.sh <dir>`, no other change. - Suite on `main` `47efa2e` with it: 737 passed, 4 failed, 41 ignored, the same four as above (row in #42). - Retail title (1.0.2.1), the same machine, a run with nothing skipped (`XCL_PSO_WAIT_MS` unset). 16 compute pipelines of 300 KB or more of DXIL were built in the run: 22 s on average, the slowest (1065 KB) in 44 s. Six earlier runs on `30b0eb9b` built 1–13 of that size per run, 17–127 s on average, the slowest in 181 s. The XCL trees and caches differ between those runs, so this isn't a controlled comparison. @⁠ddm-j's offline numbers on #611 are. - So `VKD3D_PROTON_REF` defaulting to `v3.1` now leaves Linux users on the slow structurizer. Upstream has no tag after v3.1 yet. @⁠Filip722's 3.2.0 build (Proton's source) used dxil-spirv `1dc543f`, which also has #371. A pinned `master` commit as the default might be worth it, if the maintainers are OK with not pinning a release. - Not tested: AMD, other NVIDIA drivers, whether anything else in `master` needs the patch to change.
Author
Owner

@⁠BotchedRPR on GitHub · 2026-11-24 19:11 UTC · original

thats pretty sad. why was this deleted?

**@⁠BotchedRPR** on GitHub · 2026-11-24 19:11 UTC · [original](https://github.com/xcl-dev/xcl/pull/257#issuecomment-7141722412) thats pretty sad. why was this deleted?

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.