Linux/Proton support, and two world GPU faults fixed (branch ready) #844

Open
opened 2026-11-26 04:14:03 +00:00 by github-bot · 27 comments
Owner

@⁠Slaktarn700 on GitHub · 2026-11-24 12:09 UTC · original

Pull requests are limited to collaborators, so here is the work as a branch to pull or cherry-pick: Slaktarn700:proton-fixes — 9 commits on current main (compare). Happy to open it as a PR if I am added as a collaborator.

VIctory now runs on Linux under Proton and gets as far as on Windows: boot, first-boot screens, intro video, start screen, saves, loading, and the opening of the first mission (credits over the scene; the scene is still dark, as on Windows). This PR has the fixes that took, plus two world GPU faults that are likely not Proton-specific.

Tested on CachyOS, RX 9070 XT (RADV, Mesa 26.3.1), Proton Experimental experimental-11.0-20261112, built with cargo-xwin. Not tested on Windows; the Windows paths are meant to be unchanged except for the two fault fixes.

World GPU faults (likely also on Windows)

Found with umr wave dumps at the fault:

  • GPU: mirror heap slots the title writes into its own memory. GTA VI copies whole descriptor slots inside its own heap memory, and no create/copy call reports it. A mesh shader then read a slot as a constant buffer while the host slot still held a texture view. Its upper half read as a buffer at address 0, and the device was lost. The faulting waves held s[8:11] = {0, 0x00400000, 0x00248000, 0}, loaded from heap slot ~1,061,522. This is probably the "world's low-address page faults" in the comment at null_view. Before each submission, the heap blocks written since the last one (watch::writes) are now mirrored again.
  • GPU: bind root SRVs as bounded one-view tables. A compute shader read 32 MB past a root SRV's host copy (TCP fault at s[10:11] + 0x1f0e000). On the console that address is other title memory; here it's unmapped. Root SRVs are now a one-view raw-buffer table sized to the copy, so out-of-range reads return zeros. Shader bindings don't change.

With both, the world runs without a device loss for as long as I tested: 8 minutes, twice. Before, it was lost after 5–90 s.

Wine / vkd3d-proton compatibility

  • Indirect argument clamp: Wine's D3DCompile (vkd3d-shader) lacks RWByteAddressBuffer methods and doesn't embed [RootSignature], so every indirect execution was dropped. The clamp now uses structured buffers and builds its root signature in code. A new GPU test checks the clamped values.
  • Pipeline library: vkd3d-proton refuses an empty library given a dangling non-null pointer, so it's now requested with a null one.
  • Shaders: one returning block per program. A loop left by both a break and a return made dxil-spirv emit invalid SPIR-V, and RADV segfaulted on it (exit code 3). Every s_endpgm now branches to one shared ret block, like DXC output.
  • HLE: WSAConnectByList and GetAddrInfoExA are missing from Wine's ws2_32. They now fail the call instead of aborting.
  • Watch: Wine emulates write watching page by page (about 1 ms per call; 3,500 calls and 17 GB checked per frame). Under Wine, a range already checked in the current submission is answered from the journal. Windows is unchanged.
  • Shader test: vkd3d-proton doesn't check DXIL hashes, so that one check is skipped under Wine.

Linux docs

docs/linux-proton.md and scripts/proton-run.sh (runs victory.exe and works as cargo's test runner), plus a README pointer. One finding there: GE-Proton 11-11's vkd3d-proton crashes RADV on some translated shaders; Proton Experimental works.

Checks

  • cargo clippy --workspace --all-targets [--all-features] --locked -- -D warnings is clean at every commit (--target x86_64-pc-windows-msvc via cargo-xwin).
  • cargo test --workspace under Proton: all pass except two that start Linux programs from inside Wine (loads_binds_and_calls_probe runs cargo, repository_passes_policy runs git). The loader test passes with its fixture built beforehand.
  • cargo xtask policy is OK. No game data is included.

🤖 Generated with Claude Code

**@⁠Slaktarn700** on GitHub · 2026-11-24 12:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/844) Pull requests are limited to collaborators, so here is the work as a branch to pull or cherry-pick: **[Slaktarn700:proton-fixes](https://github.com/Slaktarn700/VIctory/tree/proton-fixes)** — 9 commits on current `main` ([compare](https://github.com/Marvisak/VIctory/compare/main...Slaktarn700:VIctory:proton-fixes)). Happy to open it as a PR if I am added as a collaborator. VIctory now runs on **Linux under Proton** and gets as far as on Windows: boot, first-boot screens, intro video, start screen, saves, loading, and the opening of the first mission (credits over the scene; the scene is still dark, as on Windows). This PR has the fixes that took, plus two world GPU faults that are likely not Proton-specific. Tested on CachyOS, RX 9070 XT (RADV, Mesa 26.3.1), Proton Experimental `experimental-11.0-20261112`, built with `cargo-xwin`. **Not tested on Windows**; the Windows paths are meant to be unchanged except for the two fault fixes. ## World GPU faults (likely also on Windows) Found with `umr` wave dumps at the fault: - **GPU: mirror heap slots the title writes into its own memory.** GTA VI copies whole descriptor slots inside its own heap memory, and no create/copy call reports it. A mesh shader then read a slot as a constant buffer while the host slot still held a texture view. Its upper half read as a buffer at address 0, and the device was lost. The faulting waves held `s[8:11] = {0, 0x00400000, 0x00248000, 0}`, loaded from heap slot ~1,061,522. This is probably the "world's low-address page faults" in the comment at `null_view`. Before each submission, the heap blocks written since the last one (`watch::writes`) are now mirrored again. - **GPU: bind root SRVs as bounded one-view tables.** A compute shader read 32 MB past a root SRV's host copy (TCP fault at `s[10:11] + 0x1f0e000`). On the console that address is other title memory; here it's unmapped. Root SRVs are now a one-view raw-buffer table sized to the copy, so out-of-range reads return zeros. Shader bindings don't change. With both, the world runs without a device loss for as long as I tested: 8 minutes, twice. Before, it was lost after 5–90 s. ## Wine / vkd3d-proton compatibility - **Indirect argument clamp:** Wine's `D3DCompile` (vkd3d-shader) lacks `RWByteAddressBuffer` methods and doesn't embed `[RootSignature]`, so every indirect execution was dropped. The clamp now uses structured buffers and builds its root signature in code. A new GPU test checks the clamped values. - **Pipeline library:** vkd3d-proton refuses an empty library given a dangling non-null pointer, so it's now requested with a null one. - **Shaders: one returning block per program.** A loop left by both a break and a return made dxil-spirv emit invalid SPIR-V, and RADV segfaulted on it (exit code 3). Every `s_endpgm` now branches to one shared `ret` block, like DXC output. - **HLE:** `WSAConnectByList` and `GetAddrInfoExA` are missing from Wine's ws2_32. They now fail the call instead of aborting. - **Watch:** Wine emulates write watching page by page (about 1 ms per call; 3,500 calls and 17 GB checked per frame). Under Wine, a range already checked in the current submission is answered from the journal. Windows is unchanged. - **Shader test:** vkd3d-proton doesn't check DXIL hashes, so that one check is skipped under Wine. ## Linux docs `docs/linux-proton.md` and `scripts/proton-run.sh` (runs `victory.exe` and works as cargo's test runner), plus a README pointer. One finding there: GE-Proton 11-11's vkd3d-proton crashes RADV on some translated shaders; Proton Experimental works. ## Checks - `cargo clippy --workspace --all-targets [--all-features] --locked -- -D warnings` is clean at every commit (`--target x86_64-pc-windows-msvc` via cargo-xwin). - `cargo test --workspace` under Proton: all pass except two that start Linux programs from inside Wine (`loads_binds_and_calls_probe` runs cargo, `repository_passes_policy` runs git). The loader test passes with its fixture built beforehand. - `cargo xtask policy` is OK. No game data is included. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:03 +00:00
Author
Owner

@⁠delacor on GitHub · 2026-11-24 12:53 UTC · original

thanks! would be awesome if someone could merge this

**@⁠delacor** on GitHub · 2026-11-24 12:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7132068100) thanks! would be awesome if someone could merge this
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 12:58 UTC · original

Melissa isolated the heap sweep at 6f732b6 on RTX 4090 under Wine/vkd3d-proton 3.2. After a CPU copy of a complete texture descriptor from slot 1 to slot 0, the host still retained the first texture until the sweep; afterward it retained the second. Copying a valid aligned CBV into that same slot gave a different result: the sweep removed the stale texture, the guest record decoded as a CBV, and only an explicit mirror request installed its host buffer. That distinction matters for a shader that selects the slot dynamically.

The test calls the sweep helper directly and inspects the resource retained by the host slot. It establishes the descriptor-preparation behavior; shader consumption of the copied CBV remains open. Your two eight-minute title runs also included the bounded root-SRV change. Source-built fixture

Separately, Bruce checked the empty-library change e5a8c2f on the same backend. On the #89/#806 integration, a_rejected_blob_gives_an_empty_library had previously failed. With that one change the fallback and the library-name test both passed. Warm cache reload and title timing were outside that check.

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 12:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7132165112) Melissa isolated the heap sweep at `6f732b6` on RTX 4090 under Wine/vkd3d-proton 3.2. After a CPU copy of a complete texture descriptor from slot 1 to slot 0, the host still retained the first texture until the sweep; afterward it retained the second. Copying a valid aligned CBV into that same slot gave a different result: the sweep removed the stale texture, the guest record decoded as a CBV, and only an explicit mirror request installed its host buffer. That distinction matters for a shader that selects the slot dynamically. The test calls the sweep helper directly and inspects the resource retained by the host slot. It establishes the descriptor-preparation behavior; shader consumption of the copied CBV remains open. Your two eight-minute title runs also included the bounded root-SRV change. [Source-built fixture](https://github.com/MichaelSmithAI/VIctory/tree/test/844-copied-descriptors) Separately, Bruce checked the empty-library change `e5a8c2f` on the same backend. On the #89/#806 integration, `a_rejected_blob_gives_an_empty_library` had previously failed. With that one change the fallback and the library-name test both passed. Warm cache reload and title timing were outside that check.
Author
Owner

@⁠CaravelaLabs on GitHub · 2026-11-24 14:11 UTC · original

@⁠Slaktarn700 the argument-clamp tests on b7cc788 pass on this Radeon 8060S. Thanks @⁠crashbashash — this is the synthetic clamp, separate from the in-world run.

Wine 11.22, its builtin d3dcompiler_47 (that DLL is Wine's, not Microsoft's), vkd3d-proton 3.1, Mesa 25.2.8 RADV, Ubuntu 24.04. No game files. The adapter from the created device was Radeon 8060S Graphics (RADV GFX1151).

argument_clamp_builds, arguments_are_clamped_on_the_gpu and arguments_are_clamped_with_heaps_bound passed. Readback, with descriptor heaps bound and without: draw [16777216, 4, 0], dispatch [65535, 2, 3], mesh [65535, 1, 1]. Those are the clamps the test expects, not the values written in first. Same sandbox on main ffe310e: argument_clamp_builds fails because clamp() is none. That test returns early only when there is no device, so the device was there and the old shader did not come up.

cargo test -p victory-gpu --lib -- --skip warp is 52 passed, 0 failed on that head. No new failures. The empty-library pass is the null-blob fix already checked on #347, so this note is about the clamp.

AI-assisted verification, run on this machine.

**@⁠CaravelaLabs** on GitHub · 2026-11-24 14:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7133969107) @⁠Slaktarn700 the argument-clamp tests on `b7cc788` pass on this Radeon 8060S. Thanks @⁠crashbashash — this is the synthetic clamp, separate from the in-world run. Wine 11.22, its builtin `d3dcompiler_47` (that DLL is Wine's, not Microsoft's), vkd3d-proton 3.1, Mesa 25.2.8 RADV, Ubuntu 24.04. No game files. The adapter from the created device was Radeon 8060S Graphics (RADV GFX1151). `argument_clamp_builds`, `arguments_are_clamped_on_the_gpu` and `arguments_are_clamped_with_heaps_bound` passed. Readback, with descriptor heaps bound and without: draw `[16777216, 4, 0]`, dispatch `[65535, 2, 3]`, mesh `[65535, 1, 1]`. Those are the clamps the test expects, not the values written in first. Same sandbox on main `ffe310e`: `argument_clamp_builds` fails because `clamp()` is none. That test returns early only when there is no device, so the device was there and the old shader did not come up. `cargo test -p victory-gpu --lib -- --skip warp` is 52 passed, 0 failed on that head. No new failures. The empty-library pass is the null-blob fix already checked on #347, so this note is about the clamp. AI-assisted verification, run on this machine.
Author
Owner

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

Confirmation from the other GPU vendor: your two fault fixes hold on RADV too.

Stack: CachyOS kernel 7.3.5, RX 7900 XT (RDNA3, RADV), Mesa 26.3.1, Wine 11.22,
vkd3d-proton 3.2.0 from Proton Experimental, DXVK dxgi.dll, Microsoft's d3dcompiler_47 for the
argument clamp. Built with cargo-xwin from your proton-fixes branch on ffe310e, no local
changes.

Before your branch: the first submission after entering the world died with
GPUVM fault detected at address 0x800440172000, GCVM_L2_PROTECTION_FAULT_STATUS: 0x401030,
CLIENT_ID: (TCP) 0x8, PERMISSION_FAULTS: 3, RW: 0, followed by ring gfx_0.0.0 timeout,
Starting gfx_0.0.0 ring reset, device wedged. That is 178 s in, right after a
slow host submission ms=2053 lists=32 with 50 mesh pipelines. Textures read through the texture
cache, which fits your root-SRV fix: a compute shader reading past the host copy.

With your branch: no device loss in a continuous world run of over 10 minutes,
1675 to 1692 draws per frame. Not a single GPUVM fault line. Both fixes clearly address what we
hit, and the one returning block per program change also removed a RADV segfault we had.

What is left on our side is not a fault, it is the frame budget:

0.1 to 0.2 fps, 5266 to 6999 ms/frame
copies 4166 to 5147 ms for 46 to 168 MB per frame

That matches your note about the write watch exactly: under Wine a page takes about 1 ms to check,
and the frame checks thousands of them. Your journal fix is in the branch, so the remaining cost is
the XMemMapPhysicalPages path. We measured 54 MB in 7.35 s there, which is 7 MB/s: per-call
overhead, not bandwidth. #834 has a coalescing patch for it that we are testing next.

Two questions, if you have the time:

  1. Does the world render on your machine, or is the scene still dark as on Windows? Ours stays dark
    with occasional artefacts, and we would like to know whether that is a known-open drawing problem
    or something specific to RADV.
  2. Your branch has docs/linux-proton.md and scripts/proton-run.sh. If it helps, we can report
    what differs on RADV against your recipe (the DXVK dxgi.dll and the Microsoft d3dcompiler_47
    were the two things we had to add).
**@⁠mkslzk** on GitHub · 2026-11-24 14:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7134202102) Confirmation from the other GPU vendor: your two fault fixes hold on RADV too. **Stack:** CachyOS kernel 7.3.5, RX 7900 XT (RDNA3, RADV), Mesa 26.3.1, Wine 11.22, vkd3d-proton 3.2.0 from Proton Experimental, DXVK `dxgi.dll`, Microsoft's `d3dcompiler_47` for the argument clamp. Built with `cargo-xwin` from your `proton-fixes` branch on `ffe310e`, no local changes. **Before your branch:** the first submission after entering the world died with `GPUVM fault detected at address 0x800440172000`, `GCVM_L2_PROTECTION_FAULT_STATUS: 0x401030`, `CLIENT_ID: (TCP) 0x8`, `PERMISSION_FAULTS: 3`, `RW: 0`, followed by `ring gfx_0.0.0 timeout`, `Starting gfx_0.0.0 ring reset`, `device wedged`. That is 178 s in, right after a `slow host submission ms=2053 lists=32` with 50 mesh pipelines. Textures read through the texture cache, which fits your root-SRV fix: a compute shader reading past the host copy. **With your branch:** no device loss in a continuous world run of over 10 minutes, 1675 to 1692 draws per frame. Not a single `GPUVM fault` line. Both fixes clearly address what we hit, and the `one returning block per program` change also removed a RADV segfault we had. **What is left on our side is not a fault, it is the frame budget:** ``` 0.1 to 0.2 fps, 5266 to 6999 ms/frame copies 4166 to 5147 ms for 46 to 168 MB per frame ``` That matches your note about the write watch exactly: under Wine a page takes about 1 ms to check, and the frame checks thousands of them. Your journal fix is in the branch, so the remaining cost is the `XMemMapPhysicalPages` path. We measured 54 MB in 7.35 s there, which is 7 MB/s: per-call overhead, not bandwidth. #834 has a coalescing patch for it that we are testing next. Two questions, if you have the time: 1. Does the world render on your machine, or is the scene still dark as on Windows? Ours stays dark with occasional artefacts, and we would like to know whether that is a known-open drawing problem or something specific to RADV. 2. Your branch has `docs/linux-proton.md` and `scripts/proton-run.sh`. If it helps, we can report what differs on RADV against your recipe (the DXVK `dxgi.dll` and the Microsoft `d3dcompiler_47` were the two things we had to add).
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-11-24 14:36 UTC · original

Thanks, everyone. These reports helped a lot. I pushed five more commits to proton-fixes (now at 2115124, still on main ffe310e):

  • Watch: under Wine, ask about whole allocations, cached, once per submission. I profiled watch::writes in the world on an RX 9070 XT. A GetWriteWatch costs about 70 µs per 256 MB in isolation, but about 180 µs per call in the world, because of contention on Wine's virtual-memory lock with the title's write faults. VirtualQuery takes the same lock. Under Wine, the first call in a submission now covers the whole title allocation, allocations come from a cache, and physical-page views go straight to their guards. Kernel time fell from 34 s to about 8 s over the same 4-minute run. Windows is unchanged.
  • VICTORY_SHOW_TARGET (diagnostics): presents an intermediate render target instead of the final frame. 2560x1440-f28-3 (Series X) shows the world's G-buffer.
  • A debug pixel shader for geometry, and as a fallback: victory_shader::emit::debug_ps colours surfaces by their slope, using depth derivatives. It reads nothing of the title's.
    • With VICTORY_DEBUG_PS=1, depth-tested geometry uses it. Flat layers keep their own shaders, so the menus still work.
    • In every build, a geometry pipeline whose pixel shader doesn't translate, or is refused, gets the debug shader instead of its draws being dropped. VICTORY_PS_FALLBACK=0 turns that off.
    • With the view on, the world draws 3,600–4,100 draws per frame instead of about 1,700.
  • VICTORY_PIPELINE_WAIT_MS: sets the per-frame pipeline wait. The default stays 500. 0 never waits.
  • Docs: a system-Wine recipe and the new switches.

The full workspace (344 tests) passes under Proton Experimental. The exceptions are the two tests that start cargo/git from inside Wine. Clippy is clean at every commit.

@⁠mkslzk, your two questions:

  1. Dark world: the scene stays dark here too (RX 9070 XT), the same as on Windows. It's the known open drawing problem, not RADV. The G-buffer is written: with VICTORY_SHOW_TARGET=2560x1440-f28-3 I see the first mission's street (poles, wires, bollards, roofs), and with VICTORY_DEBUG_PS=1 as well you can walk it in flat colours. The final image is dark because many of the lighting and post passes don't translate. In my world runs the largest single gap is XboxBvhBuilder.dll's compute programs, "an address in an SGPR that is no root parameter": about 4,500 dropped dispatches per frame. So no BVH gets built.
  2. Docs: I added what you needed: vkd3d-proton 3.2+ and DXVK's dxgi.dll with system Wine. Microsoft's d3dcompiler_47 shouldn't be needed any more, because the clamp no longer uses RWByteAddressBuffer methods (thanks @⁠CaravelaLabs for checking that on Wine's built-in compiler). If something else differs on your RADV setup, a note here or a PR against docs/linux-proton.md would be welcome.

@⁠MichaelSmithAI, agreed on the copied CBV. The sweep only clears the stale texture there. Buffer views are made only for draws (mirror(…, for_draw)), and a slot a shader indexes directly never gets one, so it reads zeros. That's safe, but it isn't the title's data. A proper fix needs those bindless constant buffers refreshed per submission, which VIctory doesn't track yet (the shadow.rs shortcut "buffers read through directly indexed heaps keep what their first use copied"). I've left it open for now.

@⁠crashbashash, thanks for the like-for-like comparison. The int3 at +0x5149aec after a 31 s frame: I haven't seen it, but my runs with the watchdog off ended at GPU faults earlier. I'd guess it's another casualty of the stall, but I haven't confirmed it.

Two experiments that didn't work, in case they save someone time:

  • Zero-copy buffers (OpenExistingHeapFromAddress on title allocations; vkd3d-proton imports them as host memory). The import works: a 1.2 GB heap, GPU reads at about 30 GB/s, and the CPU sees GPU writes. But GPU time in the world went from about 0.3 s to 5–15 s per frame, because the passes hammer that memory over PCIe. It would only pay off for lightly-read buffers.
  • #595 (async submissions) works on RADV, with GPU time per frame down to a few ms. On its own it hangs the GPU about 6–9 s into the world: shader loops spin on data that isn't there yet, up to the 2^20 loop limit. With #452 (spin-wait loops stop at 4096) it runs. Details on #595.

AI-assisted (Claude Code).

**@⁠Slaktarn700** on GitHub · 2026-11-24 14:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7134658029) Thanks, everyone. These reports helped a lot. I pushed five more commits to [`proton-fixes`](https://github.com/Slaktarn700/VIctory/tree/proton-fixes) (now at `2115124`, still on `main` `ffe310e`): - **Watch: under Wine, ask about whole allocations, cached, once per submission.** I profiled `watch::writes` in the world on an RX 9070 XT. A `GetWriteWatch` costs about 70 µs per 256 MB in isolation, but about 180 µs per call in the world, because of contention on Wine's virtual-memory lock with the title's write faults. `VirtualQuery` takes the same lock. Under Wine, the first call in a submission now covers the whole title allocation, allocations come from a cache, and physical-page views go straight to their guards. Kernel time fell from 34 s to about 8 s over the same 4-minute run. Windows is unchanged. - **`VICTORY_SHOW_TARGET` (diagnostics):** presents an intermediate render target instead of the final frame. `2560x1440-f28-3` (Series X) shows the world's G-buffer. - **A debug pixel shader for geometry, and as a fallback:** `victory_shader::emit::debug_ps` colours surfaces by their slope, using depth derivatives. It reads nothing of the title's. - With `VICTORY_DEBUG_PS=1`, depth-tested geometry uses it. Flat layers keep their own shaders, so the menus still work. - In every build, a geometry pipeline whose pixel shader doesn't translate, or is refused, gets the debug shader instead of its draws being dropped. `VICTORY_PS_FALLBACK=0` turns that off. - With the view on, the world draws 3,600–4,100 draws per frame instead of about 1,700. - **`VICTORY_PIPELINE_WAIT_MS`:** sets the per-frame pipeline wait. The default stays 500. 0 never waits. - **Docs:** a system-Wine recipe and the new switches. The full workspace (344 tests) passes under Proton Experimental. The exceptions are the two tests that start `cargo`/`git` from inside Wine. Clippy is clean at every commit. @⁠mkslzk, your two questions: 1. **Dark world:** the scene stays dark here too (RX 9070 XT), the same as on Windows. It's the known open drawing problem, not RADV. The G-buffer is written: with `VICTORY_SHOW_TARGET=2560x1440-f28-3` I see the first mission's street (poles, wires, bollards, roofs), and with `VICTORY_DEBUG_PS=1` as well you can walk it in flat colours. The final image is dark because many of the lighting and post passes don't translate. In my world runs the largest single gap is `XboxBvhBuilder.dll`'s compute programs, "an address in an SGPR that is no root parameter": about 4,500 dropped dispatches per frame. So no BVH gets built. 2. **Docs:** I added what you needed: vkd3d-proton 3.2+ and DXVK's `dxgi.dll` with system Wine. Microsoft's `d3dcompiler_47` shouldn't be needed any more, because the clamp no longer uses `RWByteAddressBuffer` methods (thanks @⁠CaravelaLabs for checking that on Wine's built-in compiler). If something else differs on your RADV setup, a note here or a PR against `docs/linux-proton.md` would be welcome. @⁠MichaelSmithAI, agreed on the copied CBV. The sweep only clears the stale texture there. Buffer views are made only for draws (`mirror(…, for_draw)`), and a slot a shader indexes directly never gets one, so it reads zeros. That's safe, but it isn't the title's data. A proper fix needs those bindless constant buffers refreshed per submission, which VIctory doesn't track yet (the `shadow.rs` shortcut "buffers read through directly indexed heaps keep what their first use copied"). I've left it open for now. @⁠crashbashash, thanks for the like-for-like comparison. The `int3` at `+0x5149aec` after a 31 s frame: I haven't seen it, but my runs with the watchdog off ended at GPU faults earlier. I'd guess it's another casualty of the stall, but I haven't confirmed it. Two experiments that didn't work, in case they save someone time: - **Zero-copy buffers** (`OpenExistingHeapFromAddress` on title allocations; vkd3d-proton imports them as host memory). The import works: a 1.2 GB heap, GPU reads at about 30 GB/s, and the CPU sees GPU writes. But GPU time in the world went from about 0.3 s to 5–15 s per frame, because the passes hammer that memory over PCIe. It would only pay off for lightly-read buffers. - **#595 (async submissions)** works on RADV, with GPU time per frame down to a few ms. On its own it hangs the GPU about 6–9 s into the world: shader loops spin on data that isn't there yet, up to the 2^20 loop limit. With #452 (spin-wait loops stop at 4096) it runs. Details on #595. AI-assisted (Claude Code).
Author
Owner

@⁠crashbashash on GitHub · 2026-11-24 13:37 UTC · original · edited 2026-11-24 15:13 UTC

Tested this branch on RDNA2, in the world, in case AMD 6000-series results help.

Setup: CachyOS (kernel 7.3.4), RX 6800 XT (RADV, Mesa 26.2.6), 31 GB RAM, GE-Proton11-14 (vkd3d-proton cae8353ed, dxil-spirv 34f0ff84), this branch at b7cc788, diagnostics build via cargo-xwin, Series X, 1.0.2.1. Wine's builtin d3dcompiler_47 (d3dcompiler_47=b), an empty VIctory shader cache, VICTORY_D3D12_DRED=1, VKD3D_CONFIG=breadcrumbs, watchdog not disabled.

Result
World GPU faults (mirror heap slots, bounded root SRVs) No device loss and nothing from DRED or breadcrumbs in ~10 min 42 s in the world (first mission's opening cutscene)
Indirect clamp with Wine's compiler Builds: no E5005 / no argument clamp. The only indirect drops are prepare failed while a pipeline isn't ready
Watch journal under Wine CPU-side copies still dominate: frames are usually 1.6–5.7 s, of which the GPU takes 25–270 ms and copies 0.6–6.5 s. I didn't see a clear gain over main in shorter main runs on the same machine, but the scenes weren't identical

How the run ended: one frame took 31.3 s (16.0 s preparing, 11.7 s of it copies). About 16 s later, several title worker threads hit an int3 at +0x5149aec together (exit code 3). That's not the watchdog exit from #454/#714 (+0x23cf683 / +0x2215c35): it's an assert in an element accessor that stops when its pool's storage pointer is null. Every thread called it on the same object with the same index. I don't know yet whether the slow frame caused it.

Also seen: the RtlReleaseSRWLockExclusive … is not owned exclusive messages from #774 started ~2 min 18 s into the world (200 in total, two threads, one lock). Frames slowed to 5–8 s for about a minute, then recovered, and the world kept running for 8 more minutes.

No game data used. AI-assisted (Claude Code).

Edited: the durations above were first timed from the start of the story load; they are now from entering the world (the load took 29–41 s). The conclusions don't change.

**@⁠crashbashash** on GitHub · 2026-11-24 13:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7133100996) · edited 2026-11-24 15:13 UTC Tested this branch on RDNA2, in the world, in case AMD 6000-series results help. **Setup:** CachyOS (kernel 7.3.4), RX 6800 XT (RADV, Mesa 26.2.6), 31 GB RAM, GE-Proton11-14 (vkd3d-proton `cae8353ed`, dxil-spirv `34f0ff84`), this branch at `b7cc788`, diagnostics build via cargo-xwin, Series X, 1.0.2.1. Wine's **builtin** `d3dcompiler_47` (`d3dcompiler_47=b`), an empty VIctory shader cache, `VICTORY_D3D12_DRED=1`, `VKD3D_CONFIG=breadcrumbs`, watchdog **not** disabled. | | Result | |---|---| | World GPU faults (mirror heap slots, bounded root SRVs) | No device loss and nothing from DRED or breadcrumbs in **~10 min 42 s** in the world (first mission's opening cutscene) | | Indirect clamp with Wine's compiler | Builds: no `E5005` / `no argument clamp`. The only indirect drops are `prepare failed` while a pipeline isn't ready | | Watch journal under Wine | CPU-side copies still dominate: frames are usually 1.6–5.7 s, of which the GPU takes 25–270 ms and copies 0.6–6.5 s. I didn't see a clear gain over `main` in shorter `main` runs on the same machine, but the scenes weren't identical | **How the run ended:** one frame took **31.3 s** (16.0 s preparing, 11.7 s of it copies). About 16 s later, several title worker threads hit an `int3` at `+0x5149aec` together (exit code 3). That's not the watchdog exit from #454/#714 (`+0x23cf683` / `+0x2215c35`): it's an assert in an element accessor that stops when its pool's storage pointer is null. Every thread called it on the same object with the same index. I don't know yet whether the slow frame caused it. Also seen: the `RtlReleaseSRWLockExclusive … is not owned exclusive` messages from #774 started ~2 min 18 s into the world (200 in total, two threads, one lock). Frames slowed to 5–8 s for about a minute, then recovered, and the world kept running for 8 more minutes. No game data used. AI-assisted (Claude Code). _Edited: the durations above were first timed from the start of the story load; they are now from entering the world (the load took 29–41 s). The conclusions don't change._
Author
Owner

@⁠crashbashash on GitHub · 2026-11-24 13:57 UTC · original · edited 2026-11-24 15:13 UTC

Follow-up with a main run on the same machine and setup, to compare like for like (GE-Proton11-14, empty VIctory shader cache, main at ffe310e, Microsoft d3dcompiler_47 because main's clamp needs it, watchdog not disabled).

main lasted ~5 min 55 s in the world, so this compares the first 6 min 24 s of each run from the start of the story load (the 5 s statistics lines VIctory logs):

main this branch
Mean frame 4.97 s 4.00 s −20 %
Median frame 4.47 s 3.93 s −12 %
CPU-side copies per frame 3.99 s 2.82 s −29 %
MB copied per frame 204 161 −21 %
Share of the frame spent copying 80 % 70 %
GPU time per frame 87 ms 102 ms

One run each, and the cutscene wasn't driven identically, so take the numbers as indicative. But the watch journal does look like a real gain under Wine, which my earlier comment didn't see.

The two runs also ended differently:

  • main: no statistics line for 33 s, then the title's watchdog write at +0x23cf683 (the exit from #454/#714).
  • This branch: the pool-accessor int3 at +0x5149aec described above, after ~10 min 42 s in the world.

main also logged no RtlReleaseSRWLockExclusive messages in its ~6 minutes, against 200 on this branch, starting ~2 min 18 s into the world. One run each, so that may just be timing.

No game data used. AI-assisted (Claude Code).

Edited: the durations above were first timed from the start of the story load; they are now from entering the world (the load took 29–41 s). The conclusions don't change.

**@⁠crashbashash** on GitHub · 2026-11-24 13:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7133608778) · edited 2026-11-24 15:13 UTC Follow-up with a `main` run on the same machine and setup, to compare like for like (GE-Proton11-14, empty VIctory shader cache, `main` at `ffe310e`, Microsoft `d3dcompiler_47` because `main`'s clamp needs it, watchdog not disabled). `main` lasted **~5 min 55 s** in the world, so this compares the first 6 min 24 s of each run from the start of the story load (the 5 s statistics lines VIctory logs): | | `main` | this branch | | |---|---|---|---| | Mean frame | 4.97 s | 4.00 s | −20 % | | Median frame | 4.47 s | 3.93 s | −12 % | | CPU-side copies per frame | 3.99 s | 2.82 s | **−29 %** | | MB copied per frame | 204 | 161 | −21 % | | Share of the frame spent copying | 80 % | 70 % | | | GPU time per frame | 87 ms | 102 ms | | One run each, and the cutscene wasn't driven identically, so take the numbers as indicative. But the watch journal does look like a real gain under Wine, which my earlier comment didn't see. The two runs also ended differently: - `main`: no statistics line for 33 s, then the title's watchdog write at `+0x23cf683` (the exit from #454/#714). - This branch: the pool-accessor `int3` at `+0x5149aec` described above, after ~10 min 42 s in the world. `main` also logged **no** `RtlReleaseSRWLockExclusive` messages in its ~6 minutes, against 200 on this branch, starting ~2 min 18 s into the world. One run each, so that may just be timing. No game data used. AI-assisted (Claude Code). _Edited: the durations above were first timed from the start of the story load; they are now from entering the world (the load took 29–41 s). The conclusions don't change._
Author
Owner

@⁠mkslzk on GitHub · 2026-11-24 15:15 UTC · original

A measurement that narrows the copy cost further, in case it helps whoever touches the watch next.

With VICTORY_GPU_TIMING=1 in the world (diagnostics build, everything from proton-fixes merged):

WARN victory_gpu::host: slow host list ms=313 commands=0
WARN victory_gpu::host: slow host submission ms=324 lists=11 pipelines={"[compute 0184869d…"]}
WARN victory_gpu::host: slow host list ms=240 commands=0
WARN victory_gpu::host: slow host submission ms=252 lists=11 …
WARN victory_gpu::host: slow host list ms=241 commands=0
WARN victory_gpu::host: slow host submission ms=253 lists=12 …

A list with zero commands takes 240 to 313 ms, and there are 11 or 12 lists per submission, so
about 3 s of a 6 s frame is spent in submission overhead that records nothing. The commands are not
the cost; whatever runs per list is.

Your journal already halves this by answering repeats within a submission (asked_now). The
remaining shape on our side is: many lists per submission, each touching the same big buffers, each
asking the kernel page by page. If the journal could answer across lists of the same submission by
range rather than by page containment, the per-list cost should fall with it. On our side we are
about to price it directly with a measurement switch that skips the watch entirely (frames then show
stale memory, so it is a ceiling, not a fix): if the frame drops from 6 s to under 1 s, the watch is
the whole story, and if it does not, the per-list overhead lives somewhere else and we will look
again.

Numbers for the world, same build, for the record: 0.1 to 0.2 fps, 1837 to 2461 draws per frame,
dropped 518 (down from 4425 before your branch), 112 pipelines being made, no device loss.

**@⁠mkslzk** on GitHub · 2026-11-24 15:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7135729862) A measurement that narrows the copy cost further, in case it helps whoever touches the watch next. With `VICTORY_GPU_TIMING=1` in the world (diagnostics build, everything from `proton-fixes` merged): ``` WARN victory_gpu::host: slow host list ms=313 commands=0 WARN victory_gpu::host: slow host submission ms=324 lists=11 pipelines={"[compute 0184869d…"]} WARN victory_gpu::host: slow host list ms=240 commands=0 WARN victory_gpu::host: slow host submission ms=252 lists=11 … WARN victory_gpu::host: slow host list ms=241 commands=0 WARN victory_gpu::host: slow host submission ms=253 lists=12 … ``` **A list with zero commands takes 240 to 313 ms**, and there are 11 or 12 lists per submission, so about 3 s of a 6 s frame is spent in submission overhead that records nothing. The commands are not the cost; whatever runs per list is. Your journal already halves this by answering repeats within a submission (`asked_now`). The remaining shape on our side is: many lists per submission, each touching the same big buffers, each asking the kernel page by page. If the journal could answer across lists of the same submission by *range* rather than by page containment, the per-list cost should fall with it. On our side we are about to price it directly with a measurement switch that skips the watch entirely (frames then show stale memory, so it is a ceiling, not a fix): if the frame drops from 6 s to under 1 s, the watch is the whole story, and if it does not, the per-list overhead lives somewhere else and we will look again. Numbers for the world, same build, for the record: 0.1 to 0.2 fps, 1837 to 2461 draws per frame, dropped 518 (down from 4425 before your branch), 112 pipelines being made, no device loss.
Author
Owner

@⁠0xcheems on GitHub · 2026-11-24 16:20 UTC · original

Test report for proton-fixes at 993dff8 on a Strix Halo iGPU (RDNA 3.5).

AI use: the runs were driven and the logs summarised with Claude Code (Claude Fable 5.2) on my machine. Own copy of 1.0.2.1.

Setup: Ryzen AI MAX+ 395, Radeon 8060S (unified memory, 32 GB, 20 GB GPU limit); NixOS, kernel 7.1.5, Mesa 26.1.5 RADV; Proton Experimental experimental-11.0-20261112 through umu-run with runinprefix, vkd3d-proton 3.2.0. Diag build cross-built with cargo-xwin, Series X profile, VICTORY_NO_WATCHDOG=1, driven into the world with VICTORY_KEYS. Tree: 993dff8 + #454 + the #783 fallback 61474f6. Compared with ffe310e + #493 + #454 + #190 + 61474f6 (same host, same input). One 10-minute run of your tree, two of the other.

What works: boots, menus, world. Ran the full 10 minutes with no device loss and no amdgpu line in the kernel log. On this GPU main hits the #714 page fault at about 3 minutes; #493 removes it, and so does your branch without #493. The "indirect execution dropped" warning that needed #190 is also gone with your clamp fix.

Watch cost: clearly lower. Median per world frame from the copy statistics:

#493 tree 993dff8 tree
watch queries 1 163 654
time in watches 643 ms 178 ms

Frame time: not lower here, though. Median over the world summary lines:

#493 tree (2 runs) 993dff8 tree
frame 1 783 / 1 833 ms 2 150 ms (last 30 lines: 1 883)
copies 869 / 1 097 ms 898 ms
on the GPU 44 / 43 ms 44 ms
copying back 165 / 157 ms 192 ms
frame minus (preparing + GPU + copying back) about 20 ms about 260 ms

The last row is the difference I can't place from the log: about 240 ms a frame that is outside the three stages the summary line times. My guess, not measured, is the work now done under the submission lock before submit (new_submission plus resync_title_writes). One run, and run-to-run spread on this machine is at least 50 ms, so treat the frame figures as an indication.

One startup burst: 310 720 warnings title slot past the host heap index=934464..1245183 count=934464 for_draw=false, all within the first two seconds, none later. The host view heap is capped below the title's on this driver (as in #747).

Memory, for anyone on unified memory: Series X peaked at 8.5 GB process RSS and 16.0 GB of GPU memory taken from system RAM, about the same as without the branch.

**@⁠0xcheems** on GitHub · 2026-11-24 16:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7137506861) Test report for `proton-fixes` at `993dff8` on a Strix Halo iGPU (RDNA 3.5). *AI use: the runs were driven and the logs summarised with Claude Code (Claude Fable 5.2) on my machine. Own copy of 1.0.2.1.* **Setup:** Ryzen AI MAX+ 395, Radeon 8060S (unified memory, 32 GB, 20 GB GPU limit); NixOS, kernel 7.1.5, Mesa 26.1.5 RADV; Proton Experimental `experimental-11.0-20261112` through `umu-run` with `runinprefix`, vkd3d-proton 3.2.0. Diag build cross-built with cargo-xwin, Series X profile, `VICTORY_NO_WATCHDOG=1`, driven into the world with `VICTORY_KEYS`. Tree: `993dff8` + #454 + the #783 fallback `61474f6`. Compared with `ffe310e` + #493 + #454 + #190 + `61474f6` (same host, same input). One 10-minute run of your tree, two of the other. **What works:** boots, menus, world. Ran the full 10 minutes with no device loss and no amdgpu line in the kernel log. On this GPU `main` hits the #714 page fault at about 3 minutes; #493 removes it, and so does your branch without #493. The "indirect execution dropped" warning that needed #190 is also gone with your clamp fix. **Watch cost:** clearly lower. Median per world frame from the copy statistics: | | #493 tree | `993dff8` tree | |---|---:|---:| | watch queries | 1 163 | 654 | | time in watches | 643 ms | 178 ms | **Frame time:** not lower here, though. Median over the world summary lines: | | #493 tree (2 runs) | `993dff8` tree | |---|---:|---:| | frame | 1 783 / 1 833 ms | 2 150 ms (last 30 lines: 1 883) | | copies | 869 / 1 097 ms | 898 ms | | on the GPU | 44 / 43 ms | 44 ms | | copying back | 165 / 157 ms | 192 ms | | frame minus (preparing + GPU + copying back) | about 20 ms | about 260 ms | The last row is the difference I can't place from the log: about 240 ms a frame that is outside the three stages the summary line times. My guess, not measured, is the work now done under the submission lock before `submit` (`new_submission` plus `resync_title_writes`). One run, and run-to-run spread on this machine is at least 50 ms, so treat the frame figures as an indication. **One startup burst:** 310 720 warnings `title slot past the host heap index=934464..1245183 count=934464 for_draw=false`, all within the first two seconds, none later. The host view heap is capped below the title's on this driver (as in #747). **Memory, for anyone on unified memory:** Series X peaked at 8.5 GB process RSS and 16.0 GB of GPU memory taken from system RAM, about the same as without the branch.
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-24 16:35 UTC · original

Tested unmodified proton-fixes at 993dff8ef8 on RTX 5090 / Linux. Build and synthetic checks pass apart from the two documented Wine harness failures, but I could not reproduce the visible debug-world result: the process stops while world compute pipelines are being created.

Setup: CachyOS kernel 7.3.6-1-cachyos, NVIDIA 620.73.04, system Wine 11.22, vkd3d-proton 3.2.0 build 30b0eb9bc12dc9f, DXVK dxgi.dll, Rust 1.98.1 Windows MSVC cross-build. This is the documented system-Wine route, not a run of your tested Proton Experimental version. Local title 1.0.2.1, Series X. Runs offline, separate cache/save copy, muted app.

Checks

  • Windows workspace tests: 344 passed, 2 failed, 6 ignored. Failures are loads_binds_and_calls_probe and policy::tests::repository_passes_policy (Linux cargo/git invoked from Wine).
  • GPU suite: 53 passed, 0 failed, 1 ignored; shader suite: 121 passed, 0 failed, 1 ignored.
  • The full suite used Microsoft's native d3dcompiler_47. Separately, all 3 indirect tests passed with Wine's builtin compiler, including the GPU argument-clamp checks.
  • Windows all-target/all-feature workspace Clippy with warnings denied: passes. Native asset policy: passes, 156 files.
  • Some existing tests early-return without dxil.dll or console/PC compiler tools; these totals do not establish complete DXIL validation.

Title attempts: same executable, VICTORY_DEBUG_PS=1, VICTORY_SHOW_TARGET=2560x1440-f28-3, DRED and vkd3d breadcrumbs. No #454, watchdog bypass, loop-cap change, or other PRs. First run had fresh caches; retries retained them.

Attempt Process lifetime Exit
1 85.6 s 137
2 84.1 s Wine exit 3
3, Wine errors enabled 82.0 s Wine killed by SIGKILL; wrapper 137

Boot UI runs around 30 fps, intro/loading artwork is visible, and the debug-PS path is activated at world loading. No visible world geometry or controllable gameplay was verified. The third attempt provides the failure line:

err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call.

All three runs log 42 wave-size refusal messages (Required WaveSize range [64, 64], but supported range is [32, 32]). The first two also emit 310,720 startup warnings for title slots past the capped host heap, matching the Strix Halo report above. For attempt 3 I suppressed that descriptor category and enabled Wine errors; it still failed. Peak process RSS was approximately 7.8 GiB / 8.8 GiB in attempts 2 / 3. No OOM-kill counter increment or NVIDIA Xid/device-removal report was found.

This resembles the pipeline-creation failure class in #144, but I have not isolated the failing shader or established whether the fault is in VIctory's translation, dxil-spirv, or NVIDIA's compiler. The wave64 refusals and heap warning burst are observations, not proven causes of this exception.

AI-assisted testing with Codex on the user's hardware. No game files, shader dumps, captures, or game-derived artifacts attached.

**@⁠ThomasHFWright** on GitHub · 2026-11-24 16:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7137904795) Tested unmodified `proton-fixes` at **993dff8ef8a613259bb40afed0086f613e53c03e** on **RTX 5090 / Linux**. Build and synthetic checks pass apart from the two documented Wine harness failures, but I could not reproduce the visible debug-world result: the process stops while world compute pipelines are being created. **Setup:** CachyOS kernel 7.3.6-1-cachyos, NVIDIA 620.73.04, system Wine 11.22, vkd3d-proton 3.2.0 build `30b0eb9bc12dc9f`, DXVK dxgi.dll, Rust 1.98.1 Windows MSVC cross-build. This is the documented system-Wine route, not a run of your tested Proton Experimental version. Local title 1.0.2.1, Series X. Runs offline, separate cache/save copy, muted app. **Checks** - Windows workspace tests: **344 passed, 2 failed, 6 ignored**. Failures are `loads_binds_and_calls_probe` and `policy::tests::repository_passes_policy` (Linux cargo/git invoked from Wine). - GPU suite: **53 passed, 0 failed, 1 ignored**; shader suite: **121 passed, 0 failed, 1 ignored**. - The full suite used Microsoft's native d3dcompiler_47. Separately, all **3 indirect tests passed with Wine's builtin compiler**, including the GPU argument-clamp checks. - Windows all-target/all-feature workspace Clippy with warnings denied: passes. Native asset policy: passes, 156 files. - Some existing tests early-return without dxil.dll or console/PC compiler tools; these totals do not establish complete DXIL validation. **Title attempts:** same executable, `VICTORY_DEBUG_PS=1`, `VICTORY_SHOW_TARGET=2560x1440-f28-3`, DRED and vkd3d breadcrumbs. No #454, watchdog bypass, loop-cap change, or other PRs. First run had fresh caches; retries retained them. | Attempt | Process lifetime | Exit | |---|---:|---| | 1 | 85.6 s | 137 | | 2 | 84.1 s | Wine exit 3 | | 3, Wine errors enabled | 82.0 s | Wine killed by SIGKILL; wrapper 137 | Boot UI runs around 30 fps, intro/loading artwork is visible, and the debug-PS path is activated at world loading. No visible world geometry or controllable gameplay was verified. The third attempt provides the failure line: ``` err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call. ``` All three runs log **42 wave-size refusal messages** (`Required WaveSize range [64, 64], but supported range is [32, 32]`). The first two also emit **310,720** startup warnings for title slots past the capped host heap, matching the Strix Halo report above. For attempt 3 I suppressed that descriptor category and enabled Wine errors; it still failed. Peak process RSS was approximately 7.8 GiB / 8.8 GiB in attempts 2 / 3. No OOM-kill counter increment or NVIDIA Xid/device-removal report was found. This resembles the pipeline-creation failure class in #144, but I have **not isolated the failing shader or established whether the fault is in VIctory's translation, dxil-spirv, or NVIDIA's compiler**. The wave64 refusals and heap warning burst are observations, not proven causes of this exception. AI-assisted testing with Codex on the user's hardware. No game files, shader dumps, captures, or game-derived artifacts attached.
Author
Owner

@⁠0xcheems on GitHub · 2026-11-24 16:38 UTC · original

Follow-up to my report above: I timed the part I guessed at, and it is where the extra time goes on this host.

AI use: run driven and log summarised with Claude Code (Claude Fable 5.2) on my machine.

Same tree and setup (993dff8 + #454 + 61474f6, Strix Halo, Series X, Proton Experimental), plus a local probe in Host::execute_title that times watch::new_submission() + descriptor::resync_title_writes() together and logs the running total every 500 submissions.

Window Submissions Time in the resync Per submission
first 500 (boot, menus) 500 1.98 s 4.0 ms
122 s to 556 s into the run (loading, then world) 7 000 43.7 s 6.2 ms

That is 10 % of wall time in the world window. At this run's median world frame of 2 300 ms it is about 230 ms a frame, which matches the 243 ms the frame summary leaves outside "preparing", "on the GPU" and "copying back" (about 20 ms on the tree without the branch). The probe includes the resync's own write-watch query, so part of it also shows in the watches counter (658 queries, 146 ms per frame in this run).

The title's view heap here is 1 245 184 slots against a host heap of 934 464, so the resync walks a large range on every title submission; a host with an uncapped heap may see a different cost. The same 310 720 title slot past the host heap warnings appear in the first two seconds, as before.

Second run of this tree, again the full 10 minutes with no device loss and no amdgpu line in the kernel log.

**@⁠0xcheems** on GitHub · 2026-11-24 16:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7137992515) Follow-up to my report above: I timed the part I guessed at, and it is where the extra time goes on this host. *AI use: run driven and log summarised with Claude Code (Claude Fable 5.2) on my machine.* Same tree and setup (`993dff8` + #454 + `61474f6`, Strix Halo, Series X, Proton Experimental), plus a local probe in `Host::execute_title` that times `watch::new_submission()` + `descriptor::resync_title_writes()` together and logs the running total every 500 submissions. | Window | Submissions | Time in the resync | Per submission | |---|---:|---:|---:| | first 500 (boot, menus) | 500 | 1.98 s | 4.0 ms | | 122 s to 556 s into the run (loading, then world) | 7 000 | 43.7 s | 6.2 ms | That is 10 % of wall time in the world window. At this run's median world frame of 2 300 ms it is about 230 ms a frame, which matches the 243 ms the frame summary leaves outside "preparing", "on the GPU" and "copying back" (about 20 ms on the tree without the branch). The probe includes the resync's own write-watch query, so part of it also shows in the `watches` counter (658 queries, 146 ms per frame in this run). The title's view heap here is 1 245 184 slots against a host heap of 934 464, so the resync walks a large range on every title submission; a host with an uncapped heap may see a different cost. The same 310 720 `title slot past the host heap` warnings appear in the first two seconds, as before. Second run of this tree, again the full 10 minutes with no device loss and no amdgpu line in the kernel log.
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-24 17:27 UTC · original

Follow-up to my RTX 5090 failure report above: the immediate world-loading crash is isolated, and the narrow handle-cache fix from #852 (same root cause as #177) gets this branch into visible debug world geometry.

Exact combination: Slaktarn700 proton-fixes at 993dff8ef8a613259bb40afed0086f613e53c03e plus NicolaiVdS's ae7e0be, cherry-picked locally as 600ef9972b19a94bfc6a78caf56da8b9a2810c8d. The initial fixed runs used no other PRs, watchdog bypass, or loop-limit changes. A separate #454 experiment is described below. CachyOS 7.3.6-1-cachyos, Wine 11.22, RTX 5090 / NVIDIA 620.73.04, vkd3d-proton 3.2.0 30b0eb9bc12dc9f. This is Wine with that vkd3d build, not a Steam Proton runtime test.

Isolation:

  • Logging Windows thread IDs around compute pipeline creation identified shader 5d113aa6830760b6 on the faulting thread. An independent replay of its captured root signature and emitted DXIL crashes in vkCreateComputePipelines with access violation 0xc0000005, without command lists or GPU dispatches.
  • vkd3d's original SPIR-V (31da073b789a9dfb) fails spirv-val --target-env vulkan1.3: an integer atomic OR has a floating-point result type.
  • VIctory's handle-cache key includes props.0 but omits props.1, allowing an integer atomic to reuse a float-annotated UAV handle. Including both annotation words fixes the replay, including when retaining the exact original root signature. Fixed SPIR-V (e7e240987de6ac87) validates.
  • I first tested a local minimal fix, then replaced it with the existing contributor patch above. The clean patch emits byte-identical DXIL for the isolated shader. An additional synthetic local regression covering component type/count and structured stride passes with the fix and fails when restoring the original cache behavior.
  • Microsoft DXIL validator 1.9.2609 accepts both the broken and fixed DXIL. DXIL validation alone did not catch this fault.

Runtime validation:

An instrumented fixed run lasted 475.9 seconds, with world draw statistics continuing for more than six minutes before I deliberately stopped it. Local captures show a road junction, traffic lights, and road markings in debug colors. All 1,100 captured SPIR-V modules pass validation. No recurrence of the pipeline exception or device-removal report in the log. This run still has missing geometry, untranslated shaders and wave64 refusals; observed diagnostic performance was approximately 0.2–1.1 fps, not a benchmark.

The clean integration is not stable. Two completed clean runs ended at 177.0 s and 150.1 s, both Wine exit 5 with a title null-write at +0x23cf683 and callers +0x2215c35 / +0x2215eca. Crucially, the kernel recorded NVIDIA Xid 13 / Graphics SM Warp Exception: MMU Fault for the title process before each stop (16:59:30 and 17:17:33 UTC); the title watchdog fired about 30 seconds later. This is a GPU execution fault after the compiler fix, not a recurrence of the isolated compilation exception. The two runs produced 912 and 906 valid SPIR-V modules respectively, with no invalid modules found. A third recovered run lacks an exit record, so I exclude it from stability conclusions.

I then tested #454 on top, separate integration 436b3db, with VICTORY_NO_WATCHDOG=1. Both hooks applied. It also hit Xid 13 / MMU Fault, at 17:21:28 UTC for title-main, followed by vkd3d_wait_for_gpu_timeline_semaphore timeouts (vr 2). Frame statistics stopped just before the fault. The process stayed alive, but rendering did not resume; I deliberately stopped it at 175.8 s. All 915 emitted SPIR-V modules validate. The watchdog bypass hides the later exit; it does not fix this GPU stall.

The exact faulting submission/resource is not isolated yet. This is execution-time evidence to investigate alongside #71/#1216; it does not establish that either thread's proposed fix will resolve this run.

All runs were offline and app-muted with independent save copies. Initial instrumented/clean runs used fresh shader/pipeline caches; subsequent clean runs retained them. The #454 experiment used a separate copy of the clean integration cache. Runtime settings included VICTORY_DEBUG_PS=1, VICTORY_SHOW_TARGET=2560x1440-f28-3, DRED, vkd3d breadcrumbs, and local shader dumps. Debug geometry is not confirmation of playable gameplay or controllable movement.

Clean integration checks:

  • Full Windows workspace: 345 passed, 2 failed, 6 ignored across 14 executables. The unchanged failures are loads_binds_and_calls_probe (cargo from Wine: invalid handle) and policy::tests::repository_passes_policy (git unavailable from Wine).
  • GPU suite: 53 passed, 0 failed, 1 ignored. Shader suite: 122 passed, 0 failed, 1 ignored.
  • Repeated the shader suite with Microsoft's dxil.dll explicitly enabled: 122 passed, 0 failed, 1 ignored, no missing-DXIL validation skips. Four console/PC compiler differential tests still early-return because those compiler tools are unavailable.
  • Native shader tests: 97 passed, 0 failed, 1 ignored; native xtask tests, including repository policy: 4 passed.
  • Windows all-target/all-feature workspace Clippy with -D warnings: passes.

For NVIDIA testers of this exact branch revision, #852's narrow patch is a confirmed way past the compute-compilation crash. It does not resolve the remaining world-rendering and performance limitations. No duplicate PR needed for this diagnosis.

AI-assisted testing with Codex on the user's hardware. No game files, shader dumps, captures, or game-derived artifacts attached.

The separate #454 integration also completed the full 14-executable Windows suite: 345 passed, 2 unchanged Wine harness failures, 6 ignored (shader 122/0/1, GPU 53/0/1), plus all-target/all-feature Clippy and native asset policy. These synthetic checks do not establish runtime stability.

**@⁠ThomasHFWright** on GitHub · 2026-11-24 17:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7139222367) Follow-up to my RTX 5090 failure report above: the immediate world-loading crash is isolated, and the narrow handle-cache fix from #852 (same root cause as #177) gets this branch into visible debug world geometry. **Exact combination:** Slaktarn700 `proton-fixes` at `993dff8ef8a613259bb40afed0086f613e53c03e` plus NicolaiVdS's [`ae7e0be`](https://github.com/NicolaiVdS/VIctory/commit/ae7e0bef6a9bc834358d48f39902c284f3d9218e), cherry-picked locally as `600ef9972b19a94bfc6a78caf56da8b9a2810c8d`. The initial fixed runs used no other PRs, watchdog bypass, or loop-limit changes. A separate #454 experiment is described below. CachyOS 7.3.6-1-cachyos, Wine 11.22, RTX 5090 / NVIDIA 620.73.04, vkd3d-proton 3.2.0 `30b0eb9bc12dc9f`. This is Wine with that vkd3d build, not a Steam Proton runtime test. **Isolation:** - Logging Windows thread IDs around compute pipeline creation identified shader `5d113aa6830760b6` on the faulting thread. An independent replay of its captured root signature and emitted DXIL crashes in `vkCreateComputePipelines` with access violation `0xc0000005`, without command lists or GPU dispatches. - vkd3d's original SPIR-V (`31da073b789a9dfb`) fails `spirv-val --target-env vulkan1.3`: an integer atomic OR has a floating-point result type. - VIctory's handle-cache key includes `props.0` but omits `props.1`, allowing an integer atomic to reuse a float-annotated UAV handle. Including both annotation words fixes the replay, including when retaining the exact original root signature. Fixed SPIR-V (`e7e240987de6ac87`) validates. - I first tested a local minimal fix, then replaced it with the existing contributor patch above. The clean patch emits byte-identical DXIL for the isolated shader. An additional synthetic local regression covering component type/count and structured stride passes with the fix and fails when restoring the original cache behavior. - Microsoft DXIL validator 1.9.2609 **accepts both the broken and fixed DXIL**. DXIL validation alone did not catch this fault. **Runtime validation:** An instrumented fixed run lasted 475.9 seconds, with world draw statistics continuing for more than six minutes before I deliberately stopped it. Local captures show a road junction, traffic lights, and road markings in debug colors. All **1,100 captured SPIR-V modules** pass validation. No recurrence of the pipeline exception or device-removal report in the log. This run still has missing geometry, untranslated shaders and wave64 refusals; observed diagnostic performance was approximately 0.2–1.1 fps, not a benchmark. The clean integration is **not stable**. Two completed clean runs ended at 177.0 s and 150.1 s, both Wine exit 5 with a title null-write at `+0x23cf683` and callers `+0x2215c35` / `+0x2215eca`. Crucially, the kernel recorded **NVIDIA Xid 13 / Graphics SM Warp Exception: MMU Fault** for the title process before each stop (16:59:30 and 17:17:33 UTC); the title watchdog fired about 30 seconds later. This is a GPU execution fault after the compiler fix, not a recurrence of the isolated compilation exception. The two runs produced 912 and 906 valid SPIR-V modules respectively, with no invalid modules found. A third recovered run lacks an exit record, so I exclude it from stability conclusions. I then tested #454 on top, separate integration `436b3db`, with `VICTORY_NO_WATCHDOG=1`. Both hooks applied. It also hit **Xid 13 / MMU Fault**, at 17:21:28 UTC for `title-main`, followed by `vkd3d_wait_for_gpu_timeline_semaphore` timeouts (`vr 2`). Frame statistics stopped just before the fault. The process stayed alive, but rendering did not resume; I deliberately stopped it at 175.8 s. All 915 emitted SPIR-V modules validate. **The watchdog bypass hides the later exit; it does not fix this GPU stall.** The exact faulting submission/resource is not isolated yet. This is execution-time evidence to investigate alongside #71/#1216; it does not establish that either thread's proposed fix will resolve this run. All runs were offline and app-muted with independent save copies. Initial instrumented/clean runs used fresh shader/pipeline caches; subsequent clean runs retained them. The #454 experiment used a separate copy of the clean integration cache. Runtime settings included `VICTORY_DEBUG_PS=1`, `VICTORY_SHOW_TARGET=2560x1440-f28-3`, DRED, vkd3d breadcrumbs, and local shader dumps. Debug geometry is **not confirmation of playable gameplay or controllable movement**. **Clean integration checks:** - Full Windows workspace: **345 passed, 2 failed, 6 ignored** across 14 executables. The unchanged failures are `loads_binds_and_calls_probe` (cargo from Wine: invalid handle) and `policy::tests::repository_passes_policy` (git unavailable from Wine). - GPU suite: **53 passed, 0 failed, 1 ignored**. Shader suite: **122 passed, 0 failed, 1 ignored**. - Repeated the shader suite with Microsoft's `dxil.dll` explicitly enabled: **122 passed, 0 failed, 1 ignored**, no missing-DXIL validation skips. Four console/PC compiler differential tests still early-return because those compiler tools are unavailable. - Native shader tests: **97 passed, 0 failed, 1 ignored**; native xtask tests, including repository policy: **4 passed**. - Windows all-target/all-feature workspace Clippy with `-D warnings`: passes. For NVIDIA testers of this exact branch revision, #852's narrow patch is a confirmed way past the compute-compilation crash. It does not resolve the remaining world-rendering and performance limitations. No duplicate PR needed for this diagnosis. AI-assisted testing with Codex on the user's hardware. No game files, shader dumps, captures, or game-derived artifacts attached. The separate #454 integration also completed the full 14-executable Windows suite: **345 passed, 2 unchanged Wine harness failures, 6 ignored** (shader 122/0/1, GPU 53/0/1), plus all-target/all-feature Clippy and native asset policy. These synthetic checks do not establish runtime stability.
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-24 18:38 UTC · original

RTX 5090 / Linux follow-up: the single runtime switch VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains gets our existing diagnostic build past the repeated compute execution fault and back to visible debug world geometry. Thanks to @⁠oeirughrepuiohg's report above for this lead.

Same application binary as my #206 test: proton-fixes 993dff8 + #852 ae7e0be + #454 d2c93fa + #206 05981dd, plus local bounded-fence, timestamp and descriptor probes. No shader skips, no reduced loop limit. CachyOS 7.3.6, RTX 5090 / NVIDIA 620.73.04, system Wine 11.22, vkd3d-proton 3.2.0 30b0eb9bc12dc9f; this is not Steam Proton. Binary SHA256: 63e772468e1ee125f69ce5bb6f0fabfb08369badd54bf7d6dfd9b7e7513f1664.

The default-extension control failed after 108.1 s with Xid109; another run with only a loop cap32 failed after 103.1 s with Xid13. Both localized to the interval beginning with compute 72f552f4553fb5f9. Descriptor records were unchanged at sampled points. The earlier shader-creation crash is already fixed by #852 and is a different failure.

With the extension disabled:

  • First run: planned 300.0 s, timeout124, 79 dispatch notes for 72f552, world frame statistics through the end, no kernel Xid or submission-probe timeout.
  • Repeat: 573.2 s, exit3, 164 dispatch notes for72f552, no kernel Xid or GPU-fence timeout. It ended on title breakpoint0x80000003 at+0x5149aec; the local title report has INSTANCE_LIST45000/45000 and BUILDING22479/22500. This now reproduces #698 after getting past the earlier GPU fault.

The first run changed only this environment variable. The repeat uses the identical binary and denser captures. Local captures show roads, buildings, overhead wires, vehicle wheels and later a character mesh in debug colours. These use VICTORY_DEBUG_PS=1 and VICTORY_SHOW_TARGET=2560x1440-f28-3: substantial geometry is absent, normal shading and controllable movement are not established. Many temporary descriptor tables still fail allocation. Diagnostic frame rates remain far below playable; CPU builds overlapped parts of these runs, so they are not performance comparisons.

The emitted SPIR-V confirms the code path changed: the same suspect DXIL produces 23 OpRawAccessChainNV instructions by default and none with the extension disabled. All 1,082 dumped SPIR-V modules from the first completed run validate with Vulkan1.3 and scalar-block-layout enabled. Without the latter flag, 75 modules report vec3 array-stride12 alignment errors; vkd3d enables scalar block layout when the device supports it, so these are not equivalent to the earlier invalid atomic-type error.

This is a useful bounded workaround on this exact setup, not proof of a driver root cause or long-term stability. It changes lowering for all shaders; the suspect interval could still depend on earlier producers. #1024 and a larger capped dynamic-descriptor pool are separate local candidates and are NOT in these two runs.

AI-assisted with Codex. All runs offline and app-muted, game input read-only. No game files, shader dumps, memory buffers or captures attached.

**@⁠ThomasHFWright** on GitHub · 2026-11-24 18:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7140940634) RTX 5090 / Linux follow-up: the single runtime switch `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` gets our existing diagnostic build past the repeated compute execution fault and back to visible debug world geometry. Thanks to @⁠oeirughrepuiohg's report above for this lead. Same application binary as my #206 test: `proton-fixes` 993dff8 + #852 ae7e0be + #454 d2c93fa + #206 05981dd, plus local bounded-fence, timestamp and descriptor probes. No shader skips, no reduced loop limit. CachyOS 7.3.6, RTX 5090 / NVIDIA 620.73.04, system Wine 11.22, vkd3d-proton 3.2.0 30b0eb9bc12dc9f; this is not Steam Proton. Binary SHA256: `63e772468e1ee125f69ce5bb6f0fabfb08369badd54bf7d6dfd9b7e7513f1664`. The default-extension control failed after 108.1 s with Xid109; another run with only a loop cap32 failed after 103.1 s with Xid13. Both localized to the interval beginning with compute 72f552f4553fb5f9. Descriptor records were unchanged at sampled points. The earlier shader-creation crash is already fixed by #852 and is a different failure. With the extension disabled: - First run: planned 300.0 s, timeout124, 79 dispatch notes for 72f552, world frame statistics through the end, no kernel Xid or submission-probe timeout. - Repeat: 573.2 s, exit3, 164 dispatch notes for72f552, no kernel Xid or GPU-fence timeout. It ended on title breakpoint0x80000003 at+0x5149aec; the local title report has INSTANCE_LIST45000/45000 and BUILDING22479/22500. This now reproduces #698 after getting past the earlier GPU fault. The first run changed only this environment variable. The repeat uses the identical binary and denser captures. Local captures show roads, buildings, overhead wires, vehicle wheels and later a character mesh in debug colours. These use `VICTORY_DEBUG_PS=1` and `VICTORY_SHOW_TARGET=2560x1440-f28-3`: substantial geometry is absent, normal shading and controllable movement are not established. Many temporary descriptor tables still fail allocation. Diagnostic frame rates remain far below playable; CPU builds overlapped parts of these runs, so they are not performance comparisons. The emitted SPIR-V confirms the code path changed: the same suspect DXIL produces 23 OpRawAccessChainNV instructions by default and none with the extension disabled. All 1,082 dumped SPIR-V modules from the first completed run validate with Vulkan1.3 and scalar-block-layout enabled. Without the latter flag, 75 modules report vec3 array-stride12 alignment errors; vkd3d enables scalar block layout when the device supports it, so these are not equivalent to the earlier invalid atomic-type error. This is a useful bounded workaround on this exact setup, not proof of a driver root cause or long-term stability. It changes lowering for all shaders; the suspect interval could still depend on earlier producers. #1024 and a larger capped dynamic-descriptor pool are separate local candidates and are NOT in these two runs. AI-assisted with Codex. All runs offline and app-muted, game input read-only. No game files, shader dumps, memory buffers or captures attached.
Author
Owner

@⁠deadkid14 on GitHub · 2026-11-24 18:46 UTC · original

Data point for Linux/Proton testers: the fxceless/victory-gta6 fork (https://github.com/fxceless/victory-gta6, a single commit 578d459 on top of ffe310e) renders the first gameplay scene under Proton on NVIDIA. It needed two small additions.

Setup: RTX 5070 Ti, driver 620.73.04, CachyOS (kernel 7.3), GE-Proton11-14's wine run directly with its vkd3d-proton (VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains), Series X files, diag build, VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=32, Enter every 4 s via VICTORY_KEYS.

Added on top of the fork:

  1. #454 (merges cleanly).
  2. A Wine fallback for the indirect-argument clamp. The fork's clamp still uses RWByteAddressBuffer methods, and Wine's d3dcompiler_47 refuses it (clamp:67:10: E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'). Without a fallback, every indirect execution is dropped on Linux. I copied #178's DXC fallback (dxc_library, dxc_compile, sign_dxc_bytecode) into the fork's make_for, with DXC 1.9.2609's dxcompiler.dll and dxil.dll given via VICTORY_DXC. The log then shows the refusal followed by the DXC build. #994's Wine-compatible clamp would presumably also work, but the fork's indirect.rs differs too much to merge it directly.

Result (one run):

  • In the world about 30 s after launch. The first minutes run at 0.3–0.5 fps while shaders translate, then 1.2–1.8 fps.
  • The first gameplay scene renders lit: sky, low sun with light shafts, haze, textured characters and environment.
  • Visible artifacts: noisy, frayed hair on the nearest character, a blocky rectangular patch over that character's head, and some pixelated texture regions.
  • Over 5+ minutes in the world: no Xid in the kernel log, no device removal, no exception. The fork has none of #189 / #578 / #579, yet this card did not hang. Without the fork, it hung (Xid 109) unless wave64 programs were emulated or skipped.

So for Linux, the fork plus a Wine-compatible clamp is currently the furthest I have seen: a lit picture of the first scene, compared with the black or flat-colour world on main + #994. I have not tried the fork's off-by-default switches (VICTORY_LATE_WAIT, VICTORY_RELAY, …). No images attached (asset policy).

AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.

**@⁠deadkid14** on GitHub · 2026-11-24 18:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7141124615) Data point for Linux/Proton testers: the **fxceless/victory-gta6** fork (https://github.com/fxceless/victory-gta6, a single commit `578d459` on top of `ffe310e`) renders the first gameplay scene under Proton on NVIDIA. It needed two small additions. **Setup:** RTX 5070 Ti, driver 620.73.04, CachyOS (kernel 7.3), GE-Proton11-14's `wine` run directly with its vkd3d-proton (`VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`), Series X files, diag build, `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, Enter every 4 s via `VICTORY_KEYS`. **Added on top of the fork:** 1. #454 (merges cleanly). 2. A Wine fallback for the indirect-argument clamp. The fork's clamp still uses `RWByteAddressBuffer` methods, and Wine's `d3dcompiler_47` refuses it (`clamp:67:10: E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'`). Without a fallback, every indirect execution is dropped on Linux. I copied #178's DXC fallback (`dxc_library`, `dxc_compile`, `sign_dxc_bytecode`) into the fork's `make_for`, with DXC 1.9.2609's `dxcompiler.dll` and `dxil.dll` given via `VICTORY_DXC`. The log then shows the refusal followed by the DXC build. #994's Wine-compatible clamp would presumably also work, but the fork's `indirect.rs` differs too much to merge it directly. **Result (one run):** - In the world about 30 s after launch. The first minutes run at 0.3–0.5 fps while shaders translate, then 1.2–1.8 fps. - The first gameplay scene **renders lit**: sky, low sun with light shafts, haze, textured characters and environment. - Visible artifacts: noisy, frayed hair on the nearest character, a blocky rectangular patch over that character's head, and some pixelated texture regions. - Over 5+ minutes in the world: no Xid in the kernel log, no device removal, no exception. The fork has none of #189 / #578 / #579, yet this card did not hang. Without the fork, it hung (Xid 109) unless wave64 programs were emulated or skipped. So for Linux, the fork plus a Wine-compatible clamp is currently the furthest I have seen: a lit picture of the first scene, compared with the black or flat-colour world on `main` + #994. I have not tried the fork's off-by-default switches (`VICTORY_LATE_WAIT`, `VICTORY_RELAY`, …). No images attached (asset policy). *AI-assisted: Claude Code ran the builds and tests on my machine, read the logs and wrote this comment; posted at my request.*
Author
Owner

@⁠oeirughrepuiohg on GitHub · 2026-11-24 18:15 UTC · original · edited 2026-11-24 18:58 UTC

NVIDIA on Linux (RTX 4070 Ti, Ada) with #994: the clamp fix is what makes the 3D scene draw under Wine; to the movement prompt with #1036, #454 and the #698 pool hook. Plus a warning for anyone on NVIDIA's 620 open driver.

Setup

  • RTX 4070 Ti 12 GB, NVIDIA open kernel modules 620.70.06 (rebuilt with NVIDIA/open-gpu-kernel-modules PR #1542, see below), Fedora 45, kernel 7.3.4, 32 GB RAM + swap.
  • Wine from Proton Experimental (11.0-20261027b), vkd3d-proton cae8353e (from GE-Proton11-14), DXVK dxgi. VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains.
  • Diag build of main ffe310e + #994 (993dff8) + #1036 (8d898b1) + #454 (d2c93fa); later + the VICTORY_POOL_NO_ASSERT hook from #698 (all 5776 allocator copies; 2622 pool-empty int3 sites by my own scan, which also finds the four named in #698). Series X mode, VICTORY_SHADER_LOOP_LIMIT=4096, VICTORY_NO_WATCHDOG=1, VICTORY_DEBUG_PS=1. Own 1.0.2.1 copy.

1. Without #994 the 3D scene cannot draw under Wine at all. On my earlier stacks without it (#233/#320/#439/#581/#1036/#454 and the typeless-view branches), the log at world load says argument clamp: clamp:19:27: E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer' and then no argument clamp: indirect execution dropped; every indirect draw and dispatch is dropped (up to ~3100 indirect kind 10: not bounded per frame in the credits scene), so the credits backdrop and the world stay black. With #994 there is no clamp error, frames carry ~2000-3600 draws, and the world appears. That is NVIDIA confirmation for #994's first commit; it is not vendor-specific.

2. The NVIDIA driver crashed in vkCreateComputePipelines at the world load (~frame 1180) in three runs without #1036, as in #852/#144. Adding #1036 and VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains together removed it in every later run; I changed both at once, so I can't say which one did it.

3. Where runs ended:

Stack End
+ #454, no pool hook (two runs) title int3 at +0x5149aec / +0x63966f in the credits; the title's own crash report shows INSTANCE_LIST 45000/45000, BUILDING 22266/22500 (the #698 stop)
+ pool hook reached the first mission's movement prompt ("L Move around / R Move the camera") after ~23 min, 1-2 fps, ~3300 draws/frame, no device removal, no title int3; ended by hand

In the hooked run the presented frames before the prompt show the night scene's emissive windows with bloom and a moving camera; most other frames are black or blown out to flat white/grey, as expected with the lighting passes untranslated. Behind the prompt the presented image is black (max 1/255), so I could not judge movement from it; a run with VICTORY_SHOW_TARGET is next.

4. Intermittent stall at title+0x50eb750 (#774): one of eight world loads stopped at frame 1368 with one title thread at 100 % CPU in that lookup; the table it probes had plenty of empty slots. The next run with the same build passed the point.

5. Warning for NVIDIA open driver 620.70.06 / 620.73.04 users. Every world load here logs the same seven NVRM: intermapRegisterDmaMapping: Failed to insert new mapping node for range 0x... (64 KiB ranges), plus gpu_vaspace.c:4155/1846 asserts. On the stock 620.70.06 this corrupts the driver's DevMemoryTable (NVIDIA/open-gpu-kernel-modules#1540): after four VIctory world loads in one boot it froze the whole desktop (KWin and the driver's modeset thread stuck in D state; only a reboot helped). With the six-line fix from NVIDIA/open-gpu-kernel-modules PR #1542 built into the 620.70.06 modules, the same failures occur in every run and are harmless: six world loads (42 failures) and as many process exits in one boot, no freeze. The 580 branch reportedly doesn't have the bug.

6. #1433 on top (one run): untranslated-shader warnings fell from ~460 to ~110 by the world (the lane-mask and untracked-mask refusals nearly gone), and VICTORY_SHOW_TARGET=2560x1440-f28-3 showed the world's G-buffer cleanly. About 2.5 min into the world the kernel logged NVRM: Xid 109 ... CTX SWITCH TIMEOUT for the title, and a minute later the title stopped presenting (frame 1786; no device removal, no CPU spin) until I ended it. Correction (updated): the same Xid 109 also hit two later runs without #1433, one of them without VICTORY_SHOW_TARGET either, and two runs of that stack had none. So it is intermittent on this card and not caused by #1433 or by VICTORY_SHOW_TARGET; it fits the wave64 compute hangs on 32-lane cards (#71). I merged #1433 by hand against #994's single-returning-block change in emit/lower.rs (drain, then branch to the shared return block).

Not tested: AMD/Intel, Windows, Series S mode, movement at the prompt (next).

AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my machine and wrote this report from the logs; no game data, screenshots or addresses beyond the title offsets already discussed in #698/#774.

**@⁠oeirughrepuiohg** on GitHub · 2026-11-24 18:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7140397198) · edited 2026-11-24 18:58 UTC **NVIDIA on Linux (RTX 4070 Ti, Ada) with #994: the clamp fix is what makes the 3D scene draw under Wine; to the movement prompt with #1036, #454 and the #698 pool hook. Plus a warning for anyone on NVIDIA's 620 open driver.** **Setup** - RTX 4070 Ti 12 GB, NVIDIA open kernel modules 620.70.06 (rebuilt with NVIDIA/open-gpu-kernel-modules PR #1542, see below), Fedora 45, kernel 7.3.4, 32 GB RAM + swap. - Wine from Proton Experimental (11.0-20261027b), vkd3d-proton `cae8353e` (from GE-Proton11-14), DXVK `dxgi`. `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`. - Diag build of `main` `ffe310e` + #994 (`993dff8`) + #1036 (`8d898b1`) + #454 (`d2c93fa`); later + the `VICTORY_POOL_NO_ASSERT` hook from #698 (all 5776 allocator copies; 2622 pool-empty `int3` sites by my own scan, which also finds the four named in #698). Series X mode, `VICTORY_SHADER_LOOP_LIMIT=4096`, `VICTORY_NO_WATCHDOG=1`, `VICTORY_DEBUG_PS=1`. Own 1.0.2.1 copy. **1. Without #994 the 3D scene cannot draw under Wine at all.** On my earlier stacks without it (#233/#320/#439/#581/#1036/#454 and the typeless-view branches), the log at world load says `argument clamp: clamp:19:27: E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'` and then `no argument clamp: indirect execution dropped`; every indirect draw and dispatch is dropped (up to ~3100 `indirect kind 10: not bounded` per frame in the credits scene), so the credits backdrop and the world stay black. With #994 there is no clamp error, frames carry ~2000-3600 draws, and the world appears. That is NVIDIA confirmation for #994's first commit; it is not vendor-specific. **2. The NVIDIA driver crashed in `vkCreateComputePipelines`** at the world load (~frame 1180) in three runs without #1036, as in #852/#144. Adding #1036 and `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` together removed it in every later run; I changed both at once, so I can't say which one did it. **3. Where runs ended:** | Stack | End | |---|---| | + #454, no pool hook (two runs) | title `int3` at `+0x5149aec` / `+0x63966f` in the credits; the title's own crash report shows `INSTANCE_LIST` 45000/45000, `BUILDING` 22266/22500 (the #698 stop) | | + pool hook | **reached the first mission's movement prompt** ("L Move around / R Move the camera") after ~23 min, 1-2 fps, ~3300 draws/frame, no device removal, no title `int3`; ended by hand | In the hooked run the presented frames before the prompt show the night scene's emissive windows with bloom and a moving camera; most other frames are black or blown out to flat white/grey, as expected with the lighting passes untranslated. Behind the prompt the presented image is black (max 1/255), so I could not judge movement from it; a run with `VICTORY_SHOW_TARGET` is next. **4. Intermittent stall at `title+0x50eb750` (#774):** one of eight world loads stopped at frame 1368 with one title thread at 100 % CPU in that lookup; the table it probes had plenty of empty slots. The next run with the same build passed the point. **5. Warning for NVIDIA open driver 620.70.06 / 620.73.04 users.** Every world load here logs the same seven `NVRM: intermapRegisterDmaMapping: Failed to insert new mapping node for range 0x...` (64 KiB ranges), plus `gpu_vaspace.c:4155/1846` asserts. On the stock 620.70.06 this corrupts the driver's `DevMemoryTable` (NVIDIA/open-gpu-kernel-modules#1540): after four VIctory world loads in one boot it **froze the whole desktop** (KWin and the driver's modeset thread stuck in D state; only a reboot helped). With the six-line fix from NVIDIA/open-gpu-kernel-modules PR #1542 built into the 620.70.06 modules, the same failures occur in every run and are harmless: six world loads (42 failures) and as many process exits in one boot, no freeze. The 580 branch reportedly doesn't have the bug. **6. #1433 on top (one run):** untranslated-shader warnings fell from ~460 to ~110 by the world (the lane-mask and untracked-mask refusals nearly gone), and `VICTORY_SHOW_TARGET=2560x1440-f28-3` showed the world's G-buffer cleanly. About 2.5 min into the world the kernel logged `NVRM: Xid 109 ... CTX SWITCH TIMEOUT` for the title, and a minute later the title stopped presenting (frame 1786; no device removal, no CPU spin) until I ended it. **Correction (updated):** the same `Xid 109` also hit two later runs *without* #1433, one of them without `VICTORY_SHOW_TARGET` either, and two runs of that stack had none. So it is intermittent on this card and not caused by #1433 or by `VICTORY_SHOW_TARGET`; it fits the wave64 compute hangs on 32-lane cards (#71). I merged #1433 by hand against #994's single-returning-block change in `emit/lower.rs` (drain, then branch to the shared return block). Not tested: AMD/Intel, Windows, Series S mode, movement at the prompt (next). AI use: Claude Code, Claude Opus 5.5 ran the builds and runs on my machine and wrote this report from the logs; no game data, screenshots or addresses beyond the title offsets already discussed in #698/#774.
Author
Owner

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

@⁠deadkid14 a second NVIDIA data point for the fxceless/victory-gta6 fork under Proton: it reproduces on an RTX 4070 Ti, and the first gameplay scene renders lit here too.

Setup

  • RTX 4070 Ti 12 GB, NVIDIA open modules 620.70.06 (with NVIDIA/open-gpu-kernel-modules PR #1542), Fedora 45, kernel 7.3.4.
  • Wine from Proton Experimental (11.0-20261027b), vkd3d-proton cae8353e (GE-Proton11-14), DXVK dxgi, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains.
  • Fork at d279e69 (its three commits) + #454 + a DXC fallback adapted from #178, with DXC 1.9.2609. I generalized the fallback to every runtime D3DCompile site in the fork, not only the clamp: indirect::make_for, host::compile and the card-compare pass in host.rs. Diag build, Series X, VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=32, a USB Xbox controller.

Result (one run, ~25 min):

  • The log shows the clamp refused by Wine's compiler (E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'), then built by DXC with no further error.
  • About 10 min after launch, the first mission's movement prompt with a lit, textured scene: the player character from behind, a yard with a guard tower, buildings, people walking, low sun with light shafts and haze. The same artifacts as yours: noisy, frayed hair, a blocky patch over the head, some pixelated textures.
  • 0.2–0.4 fps while shaders translate, then ~2 fps (~510 ms/frame, ~4000 draws/frame).
  • Only 8 shader does not translate warnings in the whole run (vs. ~110–460 on my main + #994 stacks).
  • No Xid and no NVRM: intermapRegisterDmaMapping: Failed to insert ... in the kernel log. Every world load on my earlier stacks logged the same seven insert failures (see my comment above), and three of them hit Xid 109. So the fork also avoids the trigger for the 620-driver bug here.
  • One visual bug on this card: the intro's 2D art sequence "rubber-bands" rapidly (frames jump back and forth), as if presents alternate between two frames. The world scenes are not affected so far.
  • Controllable: with a USB Xbox controller (passed into my sandbox as one evdev node; Wine's SDL backend gives it to XInput, VIctory reads it as slot 0), the player walks with the left stick and the camera turns with the right stick in that scene, at ~2 fps. Note for testers: a real pad disconnects the keyboard stand-in (#729), so VICTORY_KEYS Enter no longer gets past the player-select screen; press A on the pad there.

Not tested: Series S mode, sessions past ~25 min, anything after the first scene. No images attached (asset policy).

AI use: Claude Code, Claude Opus 5.5 built and ran this on my machine, read the logs and wrote this comment.

**@⁠oeirughrepuiohg** on GitHub · 2026-11-24 19:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7142095655) @⁠deadkid14 a second NVIDIA data point for the **fxceless/victory-gta6** fork under Proton: it reproduces on an RTX 4070 Ti, and the first gameplay scene renders lit here too. **Setup** - RTX 4070 Ti 12 GB, NVIDIA open modules 620.70.06 (with NVIDIA/open-gpu-kernel-modules PR #1542), Fedora 45, kernel 7.3.4. - Wine from Proton Experimental (11.0-20261027b), vkd3d-proton `cae8353e` (GE-Proton11-14), DXVK `dxgi`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`. - Fork at `d279e69` (its three commits) + #454 + a DXC fallback adapted from #178, with DXC 1.9.2609. I generalized the fallback to every runtime `D3DCompile` site in the fork, not only the clamp: `indirect::make_for`, `host::compile` and the card-compare pass in `host.rs`. Diag build, Series X, `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=32`, a USB Xbox controller. **Result (one run, ~25 min):** - The log shows the clamp refused by Wine's compiler (`E5005: Method 'InterlockedMax' is not defined on type 'RWByteAddressBuffer'`), then built by DXC with no further error. - About 10 min after launch, the first mission's movement prompt with a **lit, textured scene**: the player character from behind, a yard with a guard tower, buildings, people walking, low sun with light shafts and haze. The same artifacts as yours: noisy, frayed hair, a blocky patch over the head, some pixelated textures. - 0.2–0.4 fps while shaders translate, then ~2 fps (~510 ms/frame, ~4000 draws/frame). - Only 8 `shader does not translate` warnings in the whole run (vs. ~110–460 on my `main` + #994 stacks). - **No `Xid` and no `NVRM: intermapRegisterDmaMapping: Failed to insert ...`** in the kernel log. Every world load on my earlier stacks logged the same seven insert failures (see my comment above), and three of them hit `Xid 109`. So the fork also avoids the trigger for the 620-driver bug here. - One visual bug on this card: the intro's 2D art sequence "rubber-bands" rapidly (frames jump back and forth), as if presents alternate between two frames. The world scenes are not affected so far. - **Controllable:** with a USB Xbox controller (passed into my sandbox as one evdev node; Wine's SDL backend gives it to XInput, VIctory reads it as slot 0), the player walks with the left stick and the camera turns with the right stick in that scene, at ~2 fps. Note for testers: a real pad disconnects the keyboard stand-in (#729), so `VICTORY_KEYS` Enter no longer gets past the player-select screen; press A on the pad there. Not tested: Series S mode, sessions past ~25 min, anything after the first scene. No images attached (asset policy). AI use: Claude Code, Claude Opus 5.5 built and ran this on my machine, read the logs and wrote this comment.
Author
Owner

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

RDNA2 data point for proton-fixes at 993dff8: RX 6800 XT, Mesa/RADV 26.3.1, Arch, kernel 7.3.5-zen, GE-Proton11-7-based GDK-Proton. diag build cross-compiled with x86_64-pc-windows-gnu (no xwin needed).

  • GE-Proton11-7's vkd3d-proton (af89350c) gives the RADV crash from #752 (radv_shader.c:547). I checked the shader (dda14bf7fb43b7c7) offline: dxil-spirv 8b48f0e (v3.1) emits invalid SPIR-V (exits the loop … but not via a structured exit), 7c04863 (master) emits valid SPIR-V. With vkd3d-proton master ec20719 DLLs next to victory.exe it passes.
  • main ffe310e + those DLLs: device lost on entering the world (gfx ring timeout, UTCL2 TCP permission fault at 0x800332e45000); kernel ring reset, the desktop survived.
  • This branch: in the world with the credits text and audio, black scene, 0–2,200 draws/frame, 3–10 s/frame, no device loss for ~8 min in the world (still running when posted).

Written with Claude Code (Claude Opus 5.5); the numbers are from the runs' logs.

**@⁠Tymon3310** on GitHub · 2026-11-24 19:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7142624448) RDNA2 data point for `proton-fixes` at `993dff8`: RX 6800 XT, Mesa/RADV 26.3.1, Arch, kernel 7.3.5-zen, GE-Proton11-7-based GDK-Proton. diag build cross-compiled with `x86_64-pc-windows-gnu` (no xwin needed). - GE-Proton11-7's vkd3d-proton (`af89350c`) gives the RADV crash from #752 (`radv_shader.c:547`). I checked the shader (`dda14bf7fb43b7c7`) offline: dxil-spirv `8b48f0e` (v3.1) emits invalid SPIR-V (`exits the loop … but not via a structured exit`), `7c04863` (master) emits valid SPIR-V. With vkd3d-proton master `ec20719` DLLs next to `victory.exe` it passes. - `main` `ffe310e` + those DLLs: device lost on entering the world (gfx ring timeout, UTCL2 TCP permission fault at `0x800332e45000`); kernel ring reset, the desktop survived. - This branch: in the world with the credits text and audio, black scene, 0–2,200 draws/frame, 3–10 s/frame, no device loss for ~8 min in the world (still running when posted). Written with Claude Code (Claude Opus 5.5); the numbers are from the runs' logs.
Author
Owner

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

Independent Linux report for 993dff8 on RDNA3, plus two host-level findings that are not specific to this branch.

Environment. CachyOS 7.3.5-2, Mesa 26.3.1 (RADV NAVI31), RX 7900 XT (gfx1100), Ryzen 7 7700X, Proton Experimental experimental-11.0-20261112 (vkd3d-proton 3.2), built with cargo-xwin, Rust 1.98.1, title 1.0.2.1, Series X profile, my own copy. I did not test the Windows path.

The two fault fixes work here. Before this branch the same host lost the device (0x887A0005, GPUVM fault at address 0) 5-10 s into the intro video on every run. With 993dff8 I reached the world twice and neither run lost the device (~4.5 and ~6 minutes; both ended because I killed them).

The world, measured. 2221-6232 draws/frame at 0.1-0.2 fps (5.0-14.0 s/frame). The time is almost all copies: 4.0-13.3 s and 115-350 MB per frame, against 65-192 ms of GPU work. Dropped 1229-1691 draws without a host pipeline and 1714-2006 indirect. That is worse than the 9070 XT numbers posted above; it is consistent with #400 rather than with this branch.

An intermittent stall at the account picker (possibly worth a look). Of eleven launches of the same tree, two reached the world. The other nine sat at the account picker indefinitely (up to 5 minutes), presenting a static 13 draws/frame at 30.0 fps - the captured frames 512, 1024, 2048 and 4096 are byte-identical, and there is no further shader work. VICTORY_KEYS (Enter at 20-150 s) changes nothing. Relaunching the identical binary and environment reached the world on the second attempt, and no environment variable separates the successes from the stalls (release and diagnostics builds, with and without VICTORY_CAPTURE, with and without a network namespace, all appear on both sides). It reads like a race rather than a configuration, and it made every measurement above take several attempts. If it is new in this branch, the neighbourhood I would suspect is the per-submission heap resync.

VICTORY_DEBUG_PS=1 still shows a black window here (title bar: 0 fps, 6766 ms/frame, 5242 drawcalls), so I could not reproduce the debug geometry others report. That may be my host - I have not isolated it.

HDR, which affects every tree, not just this one. With desktop HDR enabled (KDE Plasma 6 on Wayland, DP-3 at 3440x1440@180 Hz) the title's present throttles to about 400 ms/frame (~2.5 fps) and the title's own 30 s watchdog raises int3 at frame 64, on every build I tried including clean upstream and a fresh prefix. kscreen-doctor output.DP-3.hdr.disable and the same binary is immediately 15-30 fps. Finding it took a long bisect (fresh prefix, shader and data caches, native and builtin d3dcompiler_47, CPU governor, compositor focus, occlusion all excluded). If the watchdog change lands, a warning during HDR modes is probably on the table, or just a line in docs/linux-proton.md.

Happy to re-run anything on this host, including a branch that fixes the picker stall.

**@⁠rostaddotcc** on GitHub · 2026-11-24 19:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7142763350) Independent Linux report for `993dff8` on RDNA3, plus two host-level findings that are not specific to this branch. **Environment.** CachyOS 7.3.5-2, Mesa 26.3.1 (RADV NAVI31), RX 7900 XT (gfx1100), Ryzen 7 7700X, Proton Experimental `experimental-11.0-20261112` (vkd3d-proton 3.2), built with cargo-xwin, Rust 1.98.1, title 1.0.2.1, Series X profile, my own copy. I did not test the Windows path. **The two fault fixes work here.** Before this branch the same host lost the device (`0x887A0005`, GPUVM fault at address 0) 5-10 s into the intro video on every run. With `993dff8` I reached the world twice and neither run lost the device (~4.5 and ~6 minutes; both ended because I killed them). **The world, measured.** 2221-6232 draws/frame at 0.1-0.2 fps (5.0-14.0 s/frame). The time is almost all copies: 4.0-13.3 s and 115-350 MB per frame, against 65-192 ms of GPU work. Dropped 1229-1691 draws without a host pipeline and 1714-2006 indirect. That is worse than the 9070 XT numbers posted above; it is consistent with #400 rather than with this branch. **An intermittent stall at the account picker (possibly worth a look).** Of eleven launches of the same tree, two reached the world. The other nine sat at the account picker indefinitely (up to 5 minutes), presenting a static 13 draws/frame at 30.0 fps - the captured frames 512, 1024, 2048 and 4096 are byte-identical, and there is no further shader work. `VICTORY_KEYS` (Enter at 20-150 s) changes nothing. Relaunching the identical binary and environment reached the world on the second attempt, and no environment variable separates the successes from the stalls (release and diagnostics builds, with and without `VICTORY_CAPTURE`, with and without a network namespace, all appear on both sides). It reads like a race rather than a configuration, and it made every measurement above take several attempts. If it is new in this branch, the neighbourhood I would suspect is the per-submission heap resync. **`VICTORY_DEBUG_PS=1` still shows a black window here** (title bar: 0 fps, 6766 ms/frame, 5242 drawcalls), so I could not reproduce the debug geometry others report. That may be my host - I have not isolated it. **HDR, which affects every tree, not just this one.** With desktop HDR enabled (KDE Plasma 6 on Wayland, DP-3 at 3440x1440@180 Hz) the title's present throttles to about 400 ms/frame (~2.5 fps) and the title's own 30 s watchdog raises int3 at frame 64, on every build I tried including clean upstream and a fresh prefix. `kscreen-doctor output.DP-3.hdr.disable` and the same binary is immediately 15-30 fps. Finding it took a long bisect (fresh prefix, shader and data caches, native and builtin d3dcompiler_47, CPU governor, compositor focus, occlusion all excluded). If the watchdog change lands, a warning during HDR modes is probably on the table, or just a line in docs/linux-proton.md. Happy to re-run anything on this host, including a branch that fixes the picker stall.
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-24 21:43 UTC · original

Cross-posting a Linux/Proton + NVIDIA Blackwell verification datapoint from running fxceless/victory-fork (4e17478) + upstream #454 (VICTORY_NO_WATCHDOG=1) + Wine-native HLSL fixes (submitted as fxceless/victory-fork#127):

Environment

  • Hardware / Driver: Ryzen 7 9800X3D, NVIDIA RTX 5080, driver 620.73.04 (CachyOS Linux)
  • Runner: GE-Proton11-14 (vkd3d-proton, DXVK dxgi), WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n", VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains
  • Build / Profile: release build, Series X title data, VICTORY_RELAY=2 (VICTORY_LATE_WAIT=3, VICTORY_WIDE_BACK=1, VICTORY_CARD_BUFFERS_MIN_MB=1, VICTORY_CARD_BUFFERS_MB=1024, VICTORY_CARD_REHASH_RUNS=1)

Results (463.9 s, 3,815 frames, clean exit)

  • Reached playable lit world and could move the character around cleanly.
  • Stability: 0 device removals (0x887A0006), 0 kernel Xids/OOMs, 0 no argument clamp drops, 0 no host copies in the card's memory drops.
  • World performance (draws >= 100, 50 stat intervals):
    • 1.30 fps median (2.0 fps peak in world at 506.7 ms/frame with 3,115 draws/frame; up to 7,644 draws/frame, median 4,589.5)
    • Breakdown (medians): prep 391.15 ms (copies 102.35 ms / 132.40 MB, textures 166.55 ms), gpu 121.55 ms, copying back 185.50 ms (61.70 MB), dropped 461 draws without host pipeline & 4 indirect (median).
  • Note for Wine/Proton contributors: Wine's d3dcompiler_47 (vkd3d-shader) rejects ByteAddressBuffer/RWByteAddressBuffer methods (E5005), [allow_uav_condition] (E5017), and strips [RootSignature(RS)] (E_FAIL 0x80004005) on CARD_COMPARE, indirect.rs, and PlanePass (no pipeline to draw a depth plane from its twin). Replacing those with StructuredBuffer<uint> / RWStructuredBuffer<uint> and serializing root signatures in Rust via D3D12SerializeRootSignature lets all of victory-gpu's internal HLSL compile cleanly with Wine's built-in d3dcompiler_47 and no external dxcompiler.dll (110/111 non-ignored tests in victory-gpu pass under GE-Proton11-14; only the known ID3D12Device1::CreatePipelineLibrary stub test fails).

(Prepared with AI assistance; all numbers taken directly from the session log and test output.)

**@⁠BitWuehler** on GitHub · 2026-11-24 21:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7145313360) Cross-posting a Linux/Proton + NVIDIA Blackwell verification datapoint from running `fxceless/victory-fork` (`4e17478`) + upstream `#454` (`VICTORY_NO_WATCHDOG=1`) + Wine-native HLSL fixes (submitted as [fxceless/victory-fork#127](https://github.com/fxceless/victory-fork/pull/127)): ### Environment - **Hardware / Driver:** Ryzen 7 9800X3D, NVIDIA RTX 5080, driver `620.73.04` (CachyOS Linux) - **Runner:** `GE-Proton11-14` (`vkd3d-proton`, DXVK `dxgi`), `WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n"`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` - **Build / Profile:** release build, Series X title data, `VICTORY_RELAY=2` (`VICTORY_LATE_WAIT=3`, `VICTORY_WIDE_BACK=1`, `VICTORY_CARD_BUFFERS_MIN_MB=1`, `VICTORY_CARD_BUFFERS_MB=1024`, `VICTORY_CARD_REHASH_RUNS=1`) ### Results (`463.9 s`, `3,815` frames, clean exit) - **Reached playable lit world** and could move the character around cleanly. - **Stability:** 0 device removals (`0x887A0006`), 0 kernel Xids/OOMs, 0 `no argument clamp` drops, 0 `no host copies in the card's memory` drops. - **World performance (`draws >= 100`, 50 stat intervals):** - `1.30 fps` median (`2.0 fps` peak in world at `506.7 ms/frame` with `3,115` draws/frame; up to `7,644` draws/frame, median `4,589.5`) - Breakdown (medians): `prep 391.15 ms` (`copies 102.35 ms / 132.40 MB`, `textures 166.55 ms`), `gpu 121.55 ms`, `copying back 185.50 ms` (`61.70 MB`), dropped `461` draws without host pipeline & `4` indirect (median). - **Note for Wine/Proton contributors:** Wine's `d3dcompiler_47` (`vkd3d-shader`) rejects `ByteAddressBuffer`/`RWByteAddressBuffer` methods (`E5005`), `[allow_uav_condition]` (`E5017`), and strips `[RootSignature(RS)]` (`E_FAIL 0x80004005`) on `CARD_COMPARE`, `indirect.rs`, and `PlanePass` (`no pipeline to draw a depth plane from its twin`). Replacing those with `StructuredBuffer<uint>` / `RWStructuredBuffer<uint>` and serializing root signatures in Rust via `D3D12SerializeRootSignature` lets all of `victory-gpu`'s internal HLSL compile cleanly with Wine's built-in `d3dcompiler_47` and no external `dxcompiler.dll` (`110/111` non-ignored tests in `victory-gpu` pass under `GE-Proton11-14`; only the known `ID3D12Device1::CreatePipelineLibrary` stub test fails). *(Prepared with AI assistance; all numbers taken directly from the session log and test output.)*
Author
Owner

@⁠SpacyRainbow on GitHub · 2026-11-25 01:49 UTC · original

NVIDIA Ampere data point under plain Wine (not Proton), on an older base: ffe310e + #650. I know the fork runs above are further along. I'm posting this mainly for the two hang causes, in case they help whoever carries the Linux branch forward.

Setup

  • RTX 3090, NVIDIA 595.104.02, Linux, headless Xvfb.
  • Wine 11.0 Staging, vkd3d-proton 30b0eb9, WINEDLLOVERRIDES=d3d12,d3d12core=n.
  • Diag build of ffe310e + #650 cherry-picked, plus one local change (below). Series X, title 1.0.2.1, my own copy.

Hang 1: mesh shaders, Xid 109

  • Without #650, entering the intro hangs the GPU with Xid 109 (context-switch timeout), and there's no Xid 13 before it. So it's a stall, not an MMU fault. The cause is out-of-range reads through unbounded root SRVs in translated mesh shaders (#778 family). On vkd3d-proton a root SRV is a raw VA, so robustBufferAccess2/nullDescriptor don't catch it.
  • #650 as-is (1 MiB bound): no Xid, but reads inside the allocation come back zero, and the title stalls on the CPU around frame 1786.
  • Bounding at the root view's allocation end instead of the 1 MiB refresh: 0 Xid in 3 runs, up to 8 min to my run limit, last present ~2050.

Hang 2: pixel shader at the intro leadout, Xid 109

  • The 4-group draw [mesh 04b9be37, pixel 1af4a50c] runs a data-bounded loop whose cost follows VICTORY_SHADER_LOOP_LIMIT. At 2^20 it takes ~4 s/draw and ends in Xid 109.
  • At 65536: ~0.4 s/draw, 0 Xid over two full 25 min runs. That's a workaround, not a fix. The count looks like garbage, which would fit #1322 / #1855.
  • Caps below 65536 on that shader brought back an earlier stall around frame 1784-1823 (2 of 2 runs). The VICTORY_SHADER_LOOP_LIMIT=32 used above might behave differently on the fork.

Result: past the leadout to the timed control hint (n=1), and stick input changes what gets drawn and which pipelines get bound. The scene is black, though, at ~1.2 fps, and almost all of that is 2 × ~0.4 s of that one pixel draw per present. The title's pool-full assert (25,000) fired in 1 of 6 long runs; other runs peaked at 18-21k. RtlReleaseSRWLockExclusive ... is not owned exclusive! shows up in every run, passing or failing.

Not tested: current main (4118f33), Proton, the fork, VK_NV_raw_access_chains disabled.

**@⁠SpacyRainbow** on GitHub · 2026-11-25 01:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7149994270) NVIDIA Ampere data point under plain Wine (not Proton), on an older base: `ffe310e` + #650. I know the fork runs above are further along. I'm posting this mainly for the two hang causes, in case they help whoever carries the Linux branch forward. **Setup** - RTX 3090, NVIDIA 595.104.02, Linux, headless Xvfb. - Wine 11.0 Staging, vkd3d-proton `30b0eb9`, `WINEDLLOVERRIDES=d3d12,d3d12core=n`. - Diag build of `ffe310e` + #650 cherry-picked, plus one local change (below). Series X, title 1.0.2.1, my own copy. **Hang 1: mesh shaders, `Xid 109`** - Without #650, entering the intro hangs the GPU with `Xid 109` (context-switch timeout), and there's no `Xid 13` before it. So it's a stall, not an MMU fault. The cause is out-of-range reads through unbounded root SRVs in translated mesh shaders (#778 family). On vkd3d-proton a root SRV is a raw VA, so `robustBufferAccess2`/`nullDescriptor` don't catch it. - #650 as-is (1 MiB bound): no Xid, but reads inside the allocation come back zero, and the title stalls on the CPU around frame 1786. - Bounding at the root view's allocation end instead of the 1 MiB refresh: 0 Xid in 3 runs, up to 8 min to my run limit, last present ~2050. **Hang 2: pixel shader at the intro leadout, `Xid 109`** - The 4-group draw [mesh `04b9be37`, pixel `1af4a50c`] runs a data-bounded loop whose cost follows `VICTORY_SHADER_LOOP_LIMIT`. At 2^20 it takes ~4 s/draw and ends in `Xid 109`. - At `65536`: ~0.4 s/draw, 0 Xid over two full 25 min runs. That's a workaround, not a fix. The count looks like garbage, which would fit #1322 / #1855. - Caps below `65536` on that shader brought back an earlier stall around frame 1784-1823 (2 of 2 runs). The `VICTORY_SHADER_LOOP_LIMIT=32` used above might behave differently on the fork. **Result:** past the leadout to the timed control hint (n=1), and stick input changes what gets drawn and which pipelines get bound. The scene is **black**, though, at ~1.2 fps, and almost all of that is 2 × ~0.4 s of that one pixel draw per present. The title's pool-full assert (25,000) fired in 1 of 6 long runs; other runs peaked at 18-21k. `RtlReleaseSRWLockExclusive ... is not owned exclusive!` shows up in every run, passing or failing. Not tested: current `main` (`4118f33`), Proton, the fork, `VK_NV_raw_access_chains` disabled.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:55 UTC · original · edited 2026-11-25 09:55 UTC

Automated triage for the maintainers.

Running the Windows build under Wine/Proton is tracked as a request in #340; open PR #2082 adds Proton docs. The project's stated scope is Windows hosts, so carrying Linux support is for the maintainers. Pull requests are open to everyone, so please split the proton-fixes branch into focused PRs against current main. Where each part stands:

  • Both world GPU faults are addressed on main: root views are bounded views of their host copy (d71c388, State::root_view in crates/victory-gpu/src/draw.rs), and heap records copied as bytes are mirrored at submission (86a5ed6).
  • Indirect argument clamp under Wine's compiler: still present on main (crates/victory-gpu/src/indirect.rs compiles HLSL with RWByteAddressBuffer through D3DCompile, and on failure logs no argument clamp: indirect execution dropped). Tracked in #170; open PR #1279 takes the same approach. The latest comment confirms this explained the blue/white pictures in the earlier Proton runs.
  • Networking: WSAConnectByList and GetAddrInfoExA are in crates/victory-hle/src/modules/net.rs on main.
  • The single return block, empty pipeline library, Wine watch journal and debug pixel shader are not on main; each would need its own PR.

From the new comments: the Xid 109 hang on compute 72f552f4553fb5f9 goes away with VK_NV_raw_access_chains disabled, which points at vkd3d-proton's code path rather than VIctory's DXIL. The NVIDIA wave64 compute hangs once indirect work runs are the NVIDIA world hang tracked in #71 (open PR #439). Other threads: +0x5149aec in #698, Wine SRW lock messages in #774, the NVIDIA compute-pipeline crash in #852.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7152363538) · edited 2026-11-25 09:55 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T09:20:05Z at=2026-11-25T09:50:38Z --> Automated triage for the maintainers. Running the Windows build under Wine/Proton is tracked as a request in #340; open PR #2082 adds Proton docs. The project's stated scope is Windows hosts, so carrying Linux support is for the maintainers. Pull requests are open to everyone, so please split the `proton-fixes` branch into focused PRs against current `main`. Where each part stands: - **Both world GPU faults are addressed on `main`:** root views are bounded views of their host copy (`d71c388`, `State::root_view` in `crates/victory-gpu/src/draw.rs`), and heap records copied as bytes are mirrored at submission (`86a5ed6`). - **Indirect argument clamp under Wine's compiler:** still present on `main` (`crates/victory-gpu/src/indirect.rs` compiles HLSL with `RWByteAddressBuffer` through `D3DCompile`, and on failure logs `no argument clamp: indirect execution dropped`). Tracked in #170; open PR #1279 takes the same approach. The latest comment confirms this explained the blue/white pictures in the earlier Proton runs. - **Networking:** `WSAConnectByList` and `GetAddrInfoExA` are in `crates/victory-hle/src/modules/net.rs` on `main`. - The single return block, empty pipeline library, Wine watch journal and debug pixel shader are not on `main`; each would need its own PR. From the new comments: the Xid 109 hang on compute `72f552f4553fb5f9` goes away with `VK_NV_raw_access_chains` disabled, which points at vkd3d-proton's code path rather than VIctory's DXIL. The NVIDIA wave64 compute hangs once indirect work runs are the NVIDIA world hang tracked in #71 (open PR #439). Other threads: `+0x5149aec` in #698, Wine SRW lock messages in #774, the NVIDIA compute-pipeline crash in #852. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠desplmfao on GitHub · 2026-11-25 08:34 UTC · original

More on compute 72f552f4553fb5f9 and the Xid 109 with raw access chains, from an RTX 5080 (driver 615.71, Linux, Proton with Proton Experimental's vkd3d-proton 3.2.0 2576c0b4), upstream main 940d32f plus a few open PRs.

Finding it: on this setup most runs stopped at the start of the first mission (frames ~775–980): NVRM: Xid 109 … CTX SWITCH TIMEOUT, the desktop stalled, and the title's watchdog fired (Unsignaled CrossQueueBarrier in its crash log). A small diagnostics watcher logged the pipelines of the submission still running on the GPU after 3 s: one list of 38 compute pipelines. Bisecting with VICTORY_SKIP_PIPELINES came down to 72f552f4553fb5f9 alone. Its first bind is at frame ~950, where every hang happened, and skipping only it reached the world and stayed there. VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains with no skip also stayed in the world with no Xid. VICTORY_SHADER_LOOP_LIMIT=4096 did not help.

Its SPIR-V: I dumped VIctory's DXIL for that hash and matched it byte for byte against vkd3d-proton's dump (VKD3D_SHADER_DUMP_PATH; it's vkd3d's 52923b29bf2256af, 64×1×1).

  • It has 27 OpRawAccessChainNV, and every one carries a robustness operand: 10 RobustnessPerComponentNV, 17 RobustnessPerElementNV. spirv-val --target-env vulkan1.3 --scalar-block-layout passes. So it's not an unbounded access.
  • It has one loop, a search: each iteration loads two words through raw access chains and masks them (& 0x0fffffff, & 0x01ffffff). It leaves when the value it looks for falls inside [a, a + b), when a count is reached, or at VIctory's loop limit (>= 1048576).
  • So the likely reason it never finishes with raw access chains is that those loads return different values than the fallback path does for the same buffer. The search then never matches, and every lane runs to the limit. With thousands of lanes, even a limit of 4096 is far past the timeout, which fits the limit test. That's an inference: I haven't read the loaded values back.

Workarounds that hold here: VICTORY_SKIP_PIPELINES=72f552f4553fb5f9, which drops this one pass, or the extension switch, which changes code generation everywhere. Separately, the world on this stack turns white from the prologue on, with and without the extension, so that doesn't come from this.

**@⁠desplmfao** on GitHub · 2026-11-25 08:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7157194049) More on compute `72f552f4553fb5f9` and the Xid 109 with raw access chains, from an RTX 5080 (driver 615.71, Linux, Proton with Proton Experimental's vkd3d-proton 3.2.0 `2576c0b4`), upstream `main` `940d32f` plus a few open PRs. **Finding it:** on this setup most runs stopped at the start of the first mission (frames ~775–980): `NVRM: Xid 109 … CTX SWITCH TIMEOUT`, the desktop stalled, and the title's watchdog fired (`Unsignaled CrossQueueBarrier` in its crash log). A small diagnostics watcher logged the pipelines of the submission still running on the GPU after 3 s: one list of 38 compute pipelines. Bisecting with `VICTORY_SKIP_PIPELINES` came down to `72f552f4553fb5f9` alone. Its first bind is at frame ~950, where every hang happened, and skipping only it reached the world and stayed there. `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` with no skip also stayed in the world with no Xid. `VICTORY_SHADER_LOOP_LIMIT=4096` did **not** help. **Its SPIR-V:** I dumped VIctory's DXIL for that hash and matched it byte for byte against vkd3d-proton's dump (`VKD3D_SHADER_DUMP_PATH`; it's vkd3d's `52923b29bf2256af`, 64×1×1). - It has **27 `OpRawAccessChainNV`, and every one carries a robustness operand**: 10 `RobustnessPerComponentNV`, 17 `RobustnessPerElementNV`. `spirv-val --target-env vulkan1.3 --scalar-block-layout` passes. So it's not an unbounded access. - It has one loop, a **search**: each iteration loads two words through raw access chains and masks them (`& 0x0fffffff`, `& 0x01ffffff`). It leaves when the value it looks for falls inside `[a, a + b)`, when a count is reached, or at VIctory's loop limit (`>= 1048576`). - So the likely reason it never finishes with raw access chains is that those loads return different values than the fallback path does for the same buffer. The search then never matches, and every lane runs to the limit. With thousands of lanes, even a limit of 4096 is far past the timeout, which fits the limit test. That's an inference: I haven't read the loaded values back. Workarounds that hold here: `VICTORY_SKIP_PIPELINES=72f552f4553fb5f9`, which drops this one pass, or the extension switch, which changes code generation everywhere. Separately, the world on this stack turns white from the prologue on, with and without the extension, so that doesn't come from this.
Author
Owner

@⁠desplmfao on GitHub · 2026-11-25 09:20 UTC · original

An update to my analysis above. Under Wine/Proton, Wine's builtin d3dcompiler_47 can't compile VIctory's run-time helper shaders (E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'). The log then says no argument clamp: indirect execution dropped, and every indirect draw and dispatch is skipped. That applied to every run I reported here, so the blue and white pictures are explained by that, not by the stack. #1528 reached the same point with a DXC fallback.

With Microsoft's d3dcompiler_47.dll next to victory.exe (d3dcompiler_47=n,b), the world is drawn on this RTX 5080. Faces are still black, as in #1528. Documented in #2082.

The catch: now that indirect dispatches actually run, upstream main (plus our PRs) hangs NVIDIA in the intro on several wave64 compute shaders (Xid 109, frames 756–973; skipping one only moves the hang on). With #439 the hangs are gone, but the driver's compiler then crashes or stalls on some of the big wave64 compute shaders #439 emits (b2ff2ef0d6c98dd7 and five others, 59–65 KB of GCN each). I'm working on a fix on top of #439 and will report back.

**@⁠desplmfao** on GitHub · 2026-11-25 09:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7158190806) An update to my analysis above. Under Wine/Proton, Wine's builtin `d3dcompiler_47` can't compile VIctory's run-time helper shaders (`E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'`). The log then says `no argument clamp: indirect execution dropped`, and every indirect draw and dispatch is skipped. That applied to every run I reported here, so the blue and white pictures are explained by that, not by the stack. #1528 reached the same point with a DXC fallback. With Microsoft's `d3dcompiler_47.dll` next to `victory.exe` (`d3dcompiler_47=n,b`), the world is drawn on this RTX 5080. Faces are still black, as in #1528. Documented in #2082. The catch: now that indirect dispatches actually run, upstream `main` (plus our PRs) hangs NVIDIA in the intro on several wave64 compute shaders (Xid 109, frames 756–973; skipping one only moves the hang on). With #439 the hangs are gone, but the driver's compiler then crashes or stalls on some of the big wave64 compute shaders #439 emits (`b2ff2ef0d6c98dd7` and five others, 59–65 KB of GCN each). I'm working on a fix on top of #439 and will report back.
Author
Owner

@⁠desplmfao on GitHub · 2026-11-25 10:20 UTC · original

Follow-up to my last comment: the world is now drawn on this RTX 5080 under Linux and runs for 5 minutes without a GPU timeout. Changes since then:

  • #439 + #2309: wave64 compute on 32-lane GPUs. #2309 is the fix that lets vkd3d-proton's dxil-spirv convert #439's loops.
  • The remaining "hang" was not a hang. #2310 (GPU breadcrumbs) showed one submission of 7,031 dispatches that the GPU works through at about 200 per second until the driver times out. They are three passes from Microsoft's XboxBvhBuilder.dll, which ships with the title and rehydrates streamed ray-tracing structures: Box32Rehydration 28918b7150a7aad5, Box16Rehydration caa78b8ca62bc3d6 and DecompressHeader 4ddd6f9702fab2a7. Skipping them, plus 72f552f4553fb5f9, which turned out to be the hair pass CSGenerateHairVB, avoids the timeout. Ray-traced lighting and hair are then missing. Why they run so slowly under VIctory is the next question.

Settings and the full stack: https://github.com/desplmfao/VIctory/tree/renderer

**@⁠desplmfao** on GitHub · 2026-11-25 10:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7159554401) Follow-up to my last comment: the world is now drawn on this RTX 5080 under Linux and runs for 5 minutes without a GPU timeout. Changes since then: - **#439 + #2309:** wave64 compute on 32-lane GPUs. #2309 is the fix that lets vkd3d-proton's dxil-spirv convert #439's loops. - **The remaining "hang" was not a hang.** #2310 (GPU breadcrumbs) showed one submission of 7,031 dispatches that the GPU works through at about 200 per second until the driver times out. They are three passes from Microsoft's `XboxBvhBuilder.dll`, which ships with the title and rehydrates streamed ray-tracing structures: `Box32Rehydration` `28918b7150a7aad5`, `Box16Rehydration` `caa78b8ca62bc3d6` and `DecompressHeader` `4ddd6f9702fab2a7`. Skipping them, plus `72f552f4553fb5f9`, which turned out to be the hair pass `CSGenerateHairVB`, avoids the timeout. Ray-traced lighting and hair are then missing. Why they run so slowly under VIctory is the next question. Settings and the full stack: https://github.com/desplmfao/VIctory/tree/renderer
Author
Owner

@⁠zeeboguy on GitHub · 2026-11-26 16:09 UTC · original

RTX 5080 16 GB / Linux, desplmfao's renderer (3908d3d): on NVIDIA every R9G9B9E5 texture the title renders or writes to is refused, so those passes never run. In Series S that includes the scene colour and the world is black. Made R11G11B10_FLOAT, the world draws, then blows out to white within ~90 frames. Findings and a partial patch, in case someone who knows the translator can take the second half.

Setup: RTX 5080 16 GB, driver 615.78.08, Ryzen 9 5900X, 32 GB RAM, Arch. proton-cachyos 11.0-20261015 with a wineserver rebuilt with the view-tree patch (CachyOS/wine-cachyos#50); vkd3d-proton master ec207194 (dxil-spirv 7c04863); Microsoft's d3dcompiler_47 10.0.26100. VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains VICTORY_PIPELINE_JOURNAL=1 VICTORY_LEVELS_ON_DEMAND=1, diag build.

1. Memory: why Series S. Every Series X run reached the intro (credits over the 3D scene, 0.5–1.6 s a frame with the wineserver patch) and ran a 32 GB machine out of RAM within 4 minutes: the title at ~26.7 GB, and once VRAM passed ~15 GB the rest went to memory the driver pins outside the process's cgroup. Series S (--console series-s, AMD's PC FSR 3.1.6 from the FidelityFX SDK v2.4.0 signedbin) ran 10+ minutes with 2–8 GB free and VRAM ≤14 GB, at 2–4 fps.

2. The black Series S world. FidelityFX: a resource has no host texture in its state; the upscaling did not run. The 1280×720 scene colour is R9G9B9E5_SHAREDEXP (DXGI 67) with unordered access, and the host refuses it (no host texture … 0x80070057). Series X refuses 49–51 such textures a run as well (all flags: 4, one 5). NVIDIA has no R9G9B9E5 render targets or UAVs, through D3D12 too, so this is not Linux-specific (cf. #741): those passes are silently missing for every NVIDIA user.

3. Partial patch (opt-in VICTORY_E5_AS_R11G11B10=1, 4 files, ~45 lines): an R9G9B9E5 texture with render target or unordered access is made R11G11B10_FLOAT, including one whose memory another title texture writes (uses are merged after host_desc, so it maps again after the merge; takes accepts an R9G9B9E5 desc on such a texture). Its views take that format in fits, as do render target views and pipelines' render target formats. A log of the views the title makes of these textures shows SRV R11G11B10, UAV R11G11B10 and SRV R9G9B9E5, and no R32_UINT views. Result: 0 refusals (49 before), the upscaler runs and the intro's 3D scene appears in Series S (character, hair, bloom).

4. Then it blows out. Within ~90 world frames, in Series S and Series X alike, the picture goes white (bloom, sparkly "firefly" edges). VICTORY_CAPTURE + VICTORY_DUMP_TARGETS at world frames +1/+30/+90: 41 of the remapped textures are written by compute passes, and small R32G32B32A32_FLOAT targets that look like exposure state grow ~10× per 30 frames (52232 → 292581; 143713 → 1392874). My first guess was that R9G9B9E5 cannot hold Inf or NaN while R11G11B10 can, so an overflowing pass would feed Inf onward. A test switch on the branch (VICTORY_STORE_CLAMP=1, diagnostics: every float an image store writes made finite, NaN to 0 and above 65408 to 65408, keyed into the shader cache) does not stop the blowout. So it is something else: values in range that differ between the two formats, a render target path, or one of the R9G9B9E5 reads now returning R11G11B10's decoding of the same memory. I have not found which pass yet.

Not done: finding the pass that runs away, Windows, AMD. Without the switches nothing changes.

Branch: zeeboguy/VIctory e5-targets (two commits on renderer 3908d3d). Happy to open a PR wherever it's wanted.

AI use: Claude Code (Claude Opus 5.5) wrote the patch, ran the title and drafted this; I reviewed it before posting.

**@⁠zeeboguy** on GitHub · 2026-11-26 16:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7197270370) **RTX 5080 16 GB / Linux, desplmfao's `renderer` (`3908d3d`): on NVIDIA every R9G9B9E5 texture the title renders or writes to is refused, so those passes never run. In Series S that includes the scene colour and the world is black. Made R11G11B10_FLOAT, the world draws, then blows out to white within ~90 frames.** Findings and a partial patch, in case someone who knows the translator can take the second half. **Setup:** RTX 5080 16 GB, driver 615.78.08, Ryzen 9 5900X, **32 GB RAM**, Arch. proton-cachyos 11.0-20261015 with a wineserver rebuilt with the view-tree patch (CachyOS/wine-cachyos#50); vkd3d-proton master `ec207194` (dxil-spirv `7c04863`); Microsoft's `d3dcompiler_47` 10.0.26100. `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains VICTORY_PIPELINE_JOURNAL=1 VICTORY_LEVELS_ON_DEMAND=1`, diag build. **1. Memory: why Series S.** Every Series X run reached the intro (credits over the 3D scene, 0.5–1.6 s a frame with the wineserver patch) and ran a 32 GB machine out of RAM within 4 minutes: the title at ~26.7 GB, and once VRAM passed ~15 GB the rest went to memory the driver pins outside the process's cgroup. Series S (`--console series-s`, AMD's PC FSR 3.1.6 from the FidelityFX SDK v2.4.0 `signedbin`) ran 10+ minutes with 2–8 GB free and VRAM ≤14 GB, at 2–4 fps. **2. The black Series S world.** `FidelityFX: a resource has no host texture in its state; the upscaling did not run`. The 1280×720 scene colour is `R9G9B9E5_SHAREDEXP` (DXGI 67) with unordered access, and the host refuses it (`no host texture … 0x80070057`). Series X refuses 49–51 such textures a run as well (all `flags: 4`, one `5`). NVIDIA has no R9G9B9E5 render targets or UAVs, through D3D12 too, so this is not Linux-specific (cf. #741): those passes are silently missing for every NVIDIA user. **3. Partial patch** (opt-in `VICTORY_E5_AS_R11G11B10=1`, 4 files, ~45 lines): an R9G9B9E5 texture with render target or unordered access is made `R11G11B10_FLOAT`, including one whose memory another title texture writes (uses are merged after `host_desc`, so it maps again after the merge; `takes` accepts an R9G9B9E5 desc on such a texture). Its views take that format in `fits`, as do render target views and pipelines' render target formats. A log of the views the title makes of these textures shows SRV R11G11B10, UAV R11G11B10 and SRV R9G9B9E5, and no R32_UINT views. Result: 0 refusals (49 before), the upscaler runs and the intro's 3D scene appears in Series S (character, hair, bloom). **4. Then it blows out.** Within ~90 world frames, in Series S and Series X alike, the picture goes white (bloom, sparkly "firefly" edges). `VICTORY_CAPTURE` + `VICTORY_DUMP_TARGETS` at world frames +1/+30/+90: 41 of the remapped textures are written by compute passes, and small R32G32B32A32_FLOAT targets that look like exposure state grow ~10× per 30 frames (52232 → 292581; 143713 → 1392874). My first guess was that R9G9B9E5 cannot hold Inf or NaN while R11G11B10 can, so an overflowing pass would feed Inf onward. A test switch on the branch (`VICTORY_STORE_CLAMP=1`, diagnostics: every float an image store writes made finite, NaN to 0 and above 65408 to 65408, keyed into the shader cache) does **not** stop the blowout. So it is something else: values in range that differ between the two formats, a render target path, or one of the R9G9B9E5 reads now returning R11G11B10's decoding of the same memory. I have not found which pass yet. **Not done:** finding the pass that runs away, Windows, AMD. Without the switches nothing changes. Branch: [zeeboguy/VIctory `e5-targets`](https://github.com/zeeboguy/VIctory/compare/3908d3d...e5-targets) (two commits on `renderer` `3908d3d`). Happy to open a PR wherever it's wanted. **AI use:** Claude Code (Claude Opus 5.5) wrote the patch, ran the title and drafted this; I reviewed it before posting.
Author
Owner

@⁠anon31-006459 on GitHub · 2026-11-26 17:09 UTC · original

Re the intermapRegisterDmaMapping: Failed to insert new mapping node warning for NVIDIA open-driver users: the 595 branch logs it too. Driver 595.104.02 (open kernel module), RTX 3070 Ti 8 GB, 32 GB RAM, Proton Experimental 11.0-20261112, fxceless/victory-fork + the #1820 recipe.

  • Over two days it appeared in several sessions, followed by gpu_vaspace.c:4637/2070 asserts, then Xid 31 (GPCCLIENT_GCC, FAULT_PDE) and device removal (0x887A0005). I did not see the btreeUnlink oops of NVIDIA/open-gpu-kernel-modules#1540, or a desktop freeze.
  • In my logs the failures track the PC's free memory more than time. In one 25-minute session (copy-backs off), the first two came at 3.4 GB free, then 4 at 1.6 GB, then 11 and 31 at 0.6 to 0.4 GB, as the layer's memory grew over the session.
  • What helped here: letting go of kept host lists and spare upload/read-back buffers as free memory drops (along the lines of avatarmanz/VIctory-7900XTX#255, but keyed on the PC's free memory, since under vkd3d-proton the "shared with the card" budget reads about 24 GB whatever is free). The next session held that memory flat at about 6 GB, with no insert failures. It still ended about 6 minutes in on an Xid 31 read fault, so the insert failures are not the only way to that fault here.

AI-assisted (Claude Code, Claude Opus 5.5); numbers from runs and kernel logs on my machine.

**@⁠anon31-006459** on GitHub · 2026-11-26 17:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7198570562) Re the `intermapRegisterDmaMapping: Failed to insert new mapping node` warning for NVIDIA open-driver users: **the 595 branch logs it too.** Driver 595.104.02 (open kernel module), RTX 3070 Ti 8 GB, 32 GB RAM, Proton Experimental 11.0-20261112, `fxceless/victory-fork` + the #1820 recipe. - Over two days it appeared in several sessions, followed by `gpu_vaspace.c:4637/2070` asserts, then `Xid 31` (`GPCCLIENT_GCC`, `FAULT_PDE`) and device removal (`0x887A0005`). I did not see the `btreeUnlink` oops of NVIDIA/open-gpu-kernel-modules#1540, or a desktop freeze. - In my logs the failures track the PC's free memory more than time. In one 25-minute session (copy-backs off), the first two came at 3.4 GB free, then 4 at 1.6 GB, then 11 and 31 at 0.6 to 0.4 GB, as the layer's memory grew over the session. - What helped here: letting go of kept host lists and spare upload/read-back buffers as free memory drops (along the lines of avatarmanz/VIctory-7900XTX#255, but keyed on the PC's free memory, since under vkd3d-proton the "shared with the card" budget reads about 24 GB whatever is free). The next session held that memory flat at about 6 GB, with no insert failures. It still ended about 6 minutes in on an `Xid 31` read fault, so the insert failures are not the only way to that fault here. *AI-assisted (Claude Code, Claude Opus 5.5); numbers from runs and kernel logs on my machine.*
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-26 18:35 UTC · original

@⁠anon31-006459 Confirming the same NVIDIA open kernel driver NVRM VA-space failure on Linux / Proton (GE-Proton11-14 + vkd3d-proton, RTX 5080 16 GB, Series X profile):

  • When VRAM climbed past ~10.0–10.3 GB (+ ~5.0 GB shared) under vkd3d-proton, the kernel logged repeated:
    • NVRM: _gvaspaceMappingInsert ... NV_ERR_INVALID_ARGUMENT @ gpu_vaspace.c:1805
    • NVRM: dmaAllocMapping_GM107: can't update VA space for mapping
  • Closing the window right after those errors triggered lifecycle's 1 s suspend timeout → TerminateProcess, which wedged NVRM completely (NVML timed out after 8 s, fan controller fell back to 100% failsafe, requiring a hard reset).
  • Keeping VRAM below ~9.0 GB (by re-enabling VICTORY_LEVELS_ON_DEMAND=1 and capping VICTORY_CARD_BUFFERS_MB=512) avoided the gpu_vaspace errors and let subsequent runs exit cleanly.

(AI-assisted log analysis and summary.)

**@⁠BitWuehler** on GitHub · 2026-11-26 18:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/844#issuecomment-7200630706) @⁠anon31-006459 Confirming the same NVIDIA open kernel driver `NVRM` VA-space failure on **Linux / Proton** (GE-Proton11-14 + vkd3d-proton, RTX 5080 16 GB, Series X profile): - When VRAM climbed past `~10.0–10.3 GB` (+ `~5.0 GB` shared) under `vkd3d-proton`, the kernel logged repeated: - `NVRM: _gvaspaceMappingInsert ... NV_ERR_INVALID_ARGUMENT @ gpu_vaspace.c:1805` - `NVRM: dmaAllocMapping_GM107: can't update VA space for mapping` - Closing the window right after those errors triggered `lifecycle`'s 1 s suspend timeout → `TerminateProcess`, which wedged NVRM completely (NVML timed out after 8 s, fan controller fell back to 100% failsafe, requiring a hard reset). - Keeping VRAM below `~9.0 GB` (by re-enabling `VICTORY_LEVELS_ON_DEMAND=1` and capping `VICTORY_CARD_BUFFERS_MB=512`) avoided the `gpu_vaspace` errors and let subsequent runs exit cleanly. *(AI-assisted log analysis and summary.)*
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#844
No description provided.