Skip to content

docs: vkd3d-proton 3.1 crashes the title on NVIDIA; use a build with dxil-spirv's new structurizer - #210

Open
laptopnotebook wants to merge 1 commit into
fxceless:mainfrom
laptopnotebook:linux-wine
Open

laptopnotebook wants to merge 1 commit into
fxceless:mainfrom
laptopnotebook:linux-wine

Conversation

@laptopnotebook

Copy link
Copy Markdown

Changes

  • Add docs/vkd3d-proton.md. It explains why vkd3d-proton 3.1 crashes the title on NVIDIA as gameplay starts, which builds fix it, and how to check a build.
  • Add one "Known problems" line in the README that points to it.

vkd3d-proton 3.1 bundles a dxil-spirv that still uses the legacy structurizer. Some of the world's compute programs have a loop that is only ever left by returning. For those, it emits a merge block with no terminator. spirv-val rejects the SPIR-V, and NVIDIA's compiler crashes or hangs on it inside CreateComputePipelineState. dxil-spirv's new structurizer (7c04863, used by vkd3d-proton master from ec20719) translates the same programs into valid SPIR-V.

No change to VIctory is needed. I tried giving such loops a single exit block in the emitter, but that only moved the legacy structurizer's failure elsewhere: a phi whose incoming blocks do not match its predecessors. So this PR documents the problem instead of working around it.

This PR is separate from the Linux setup guides in #41, #64 and #179, and it merges cleanly with each of them. None of them covers this crash, so their setups can point here.

Validation

  • Fedora 45, Wine 11.21 (Staging), RTX 5050 with driver 620.70.06, DXVK 3.1.1 dxgi.
  • vkd3d-proton 3.1: the run died at the first world compute pipelines every time.
    • The crashing program's DXIL, dumped with VKD3D_SHADER_DUMP_PATH, gave invalid SPIR-V with standalone dxil-spirv --legacy-structurizer.
    • The same DXIL gave valid SPIR-V with the default structurizer.
  • vkd3d-proton master (ec20719, CI artifact): the intro cutscene played with audio into gameplay for about 9 minutes. It bound 3,042 pipelines and none failed to create.
    • That run then stopped on a title-side assertion with INSTANCE_LIST at 45000/45000, which is unrelated to this change.
  • Documentation-only change. The asset-policy check passed.
  • Test-merged into every open PR: no conflicts, apart from Fix mesh pipeline test on unsupported GPUs (issue #4) #181, which already conflicts with main.

AI-assisted patch with local build and runtime validation.

…dxil-spirv's new structurizer

vkd3d-proton 3.1's dxil-spirv still uses the legacy structurizer, which turns
a loop left only by returning into a merge block with no terminator. NVIDIA's
compiler crashes or hangs on that SPIR-V in CreateComputePipelineState at the
first world compute pipelines. vkd3d-proton master (ec20719) uses the new
structurizer and translates the same programs correctly.

@ErRusso ErRusso left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at d0cc34d against 2119b0e.

Documentation only. The diagnosis matches the failure mode: vkd3d-proton 3.1's bundled legacy structurizer emits an invalid merge block for a loop left only by returning, spirv-val rejects it, and NVIDIA's compiler takes the process down. The fix guidance (new structurizer / vkd3d-proton after 3.1 or master) and the VKD3D_SHADER_DUMP_PATH + spirv-val check are actionable. The note correctly distinguishes this from #257's different back-edge assert.

LGTM.

@ArturoWolff

ArturoWolff commented Nov 25, 2026 •

Copy link
Copy Markdown

A concrete versioning caveat for the documentation: our GE-Proton11-14 software-only D3D12 run reports applicationVersion: 3.2.0, but its actual vkd3d-proton build log says cae8353ed7959c4+ (v3.1-83-gcae8353ed-GE-Proton(dirty)+). The bundled version manifest also names cae8353ed7959c448ac976342052de1ec2b81715.

I checked the official upstream commit ancestry and gitlinks (not just the printed version): cae8353ed is 14 commits before 71cae09 and its upstream dxil-spirv gitlink is 34f0ff845eb7f1ca76ca8df5d1593d6913f19e9c, whereas 71cae09 names b540c8a2484eecc7c2155994c806bbd8a8706f41. The intervening history includes ec20719 and removal of the legacy structurizer. Because GE labels the binary dirty, this establishes the upstream base, not all bundled changes or which path the actual binary takes.

Suggestion: emphasize the ec20719 ancestry check (or equivalent verified backport), even for builds reporting an application version newer than 3.1. A numeric version alone does not establish the fix. Related report: Marvisak/VIctory#144 and #2723. The latter's handle-cache correction appears already represented on this fork: both c5820ac and d510ee4 include both property words in the only annotated-handle cache key; the phi/select paths construct handles directly. The native heap_texture_atomic_widths test passes on the integrated c5820ac tree. This is a source audit and software-only observation, not a world-load or NVIDIA driver validation.

Package follow-up: acquired the official successful Artifacts (Package) push-run artifact for 71cae091b06571e51446cf2a937f0b04c237c04d (run 45638272256, artifact 15035285936). Downloaded ZIP SHA-256 matches the GitHub API artifact digest. Copied the same GE-Proton11-14 software-only prefix twice and replaced only the D3D12 DLL pairs in the candidate copy, leaving the original runtime untouched. The integrated c5820ac + #830/#20/#1006 test executable and DXC DLLs were identical in both arms. Both report applicationVersion: 3.2.0, but the control logs cae8353ed7959c4+ and the candidate actually loads 71cae091b06571e. Both create an FL11_0 device on llvmpipe 26.3.1 and construct the production indirect-clamp root signature and compute PSO (one passed each, exit 0). All four DLL hashes matched their respective pre-run hashes afterwards. This verifies package loading and the helper pipeline on software Vulkan only; it does not validate the title's world shaders or an NVIDIA driver.

Bounded physical RTX 4060 run: subsequent guarded normal Series X loading run on Linux, RTX 4060 8 GB (620.73.04), 16 GB system RAM, GE-Proton11-14 with those same official x64 D3D12 DLLs in an isolated overlay, c5820ac + #830/#20/#1006, 1920x1080, file physical backing, texture guard=0, texture no-wait=1. Runtime log confirms 71cae091b06571e. Inherited 1,482 early pipeline keys (the log reports 1,482), copied original profile and translation cache, initially empty driver cache. Changed runtime/build/cache mean this is not a controlled A/B. The account-picker capture is at 37.7 s, and one controller A press/release was recorded followed by loading artwork at 47.2 s. There are 33 private game captures: artwork persisted through 306.4 s, then black frames at 316.7 and 326.5 s. No recognizable 3D world, credits, subtitles, or movement/camera control verified; 9–13 draws/frame through almost all of loading, last rate line says 767 pipelines still being made. Audio relay measured 11/20 chunks with nonzero game PCM; listening fidelity unverified.

Scheduled stop at 332.3 s, not a crash or RAM-guard stop. Peak GPU memory used 6,513 MiB (whole device), game scope peak charged memory 7,416 MiB and swap 3,032 MiB, minimum host MemAvailable 3,418 MiB, no OOM counter advance. No NVIDIA Xid in the accessible kernel journal window, no device removal/exception lines matching the checked patterns. Both game and guard units inactive after stop. Two DXC fallback messages, no DXC failed too or missing-argument-clamp messages; the run did not reach sustained world indirect draws, so this is not proof of the graphics fix or stability beyond the loading milestone. Previous Series X file-backed observation: #830.

Warm-cache repeat (same physical RTX 4060, same executable and runtime): I copied the original pre-run prefix and saves into a new isolated trial, and copied only the translation/driver caches from the previous bounded run (1,484 early keys). Same integrated c5820acd4fc24a387396dc6ccef051115cbe9813 + #830 951dc00, #20 d4a36b1, #1006 4e7af7b, binary SHA-256 1fc76b46939ecded2b4098e8c9d8c4faed5843854867afdd3225119a9a2e287b; same Series X/file backing/1920x1080/texture settings. The actual runtime again logged 71cae091b06571e; early list 1,484 and translation-cache counters (639 hits, 14 misses at the first reported interval). The vkd3d cache mapped a read-only cache. The account picker was visible at 34.7 s and the same one controller A press/release was recorded. Loading artwork by 59.6 s, last visibly lit artwork at 246.4 s, black transition at 263.5–292.8 s. Unlike the previous cold-driver-cache attempt, at 302.5 s the private game's visible output shows a recognizable third-person woman, street lights, palms and partial vehicles/structures; still visible at 312.1 and 321.5 s. The scene is very dark with apparently missing surfaces; no in-world controller movement, HUD/prompts, full graphics or audio fidelity verified. At transition/world load the logged intervals were 0.2–0.9 FPS, with many dropped draws, sometimes 0 pipelines still being made. This is not a playable milestone or controlled causal A/B (cache histories differ). It is evidence that this runtime/build can produce visible world geometry on this specific NVIDIA/Proton combination.

Scheduled stop at 334.0 s; no guard stop, OOM counter change, matching device-removed/exception lines, or Xid in the accessible kernel journal interval. Whole GPU peak 7,320 MiB, scope peak charged 8,695 MiB/swap 3,322 MiB, minimum host MemAvailable 2,070 MiB; both exact units inactive after stop. Nonzero isolated game PCM in 14/21 chunks; fidelity unknown. 1,638 retained early keys after the run. The 0.2–0.9 FPS and dropped draws remain substantial; this does not establish that the structurizer change alone fixed the old failure. No game assets or captures attached.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants