Repository navigation
docs: vkd3d-proton 3.1 crashes the title on NVIDIA; use a build with dxil-spirv's new structurizer - #210
docs: vkd3d-proton 3.1 crashes the title on NVIDIA; use a build with dxil-spirv's new structurizer#210laptopnotebook wants to merge 1 commit into
Conversation
…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
left a comment
There was a problem hiding this comment.
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.
|
A concrete versioning caveat for the documentation: our GE-Proton11-14 software-only D3D12 run reports I checked the official upstream commit ancestry and gitlinks (not just the printed version): Suggestion: emphasize the Package follow-up: acquired the official successful 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, 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 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 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) |
Changes
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.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-valrejects the SPIR-V, and NVIDIA's compiler crashes or hangs on it insideCreateComputePipelineState. dxil-spirv's new structurizer (7c04863, used by vkd3d-protonmasterfromec20719) 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
dxgi.VKD3D_SHADER_DUMP_PATH, gave invalid SPIR-V with standalone dxil-spirv--legacy-structurizer.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.INSTANCE_LISTat 45000/45000, which is unrelated to this change.main.AI-assisted patch with local build and runtime validation.