Linux/Proton (RADV): six compute pipelines that never finish (280 ms -> 53 ms a frame), heads, faces, GPU faults: all Wine-only #129
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!129
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-129"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Beqren on GitHub · 2026-11-26 06:02 UTC · original
Beqren:linux-proton→main· +1659 −59 · 19 files · 15 commits · closed without mergingTested on one machine: CachyOS (kernel 7.3), Radeon RX 9070 16 GB, Mesa RADV 26.3.1, Proton Experimental 11.0-20261112 (vkd3d-proton 3.2.0), view-tree wineserver (CachyOS/wine-cachyos#50), Series X profile, the
play.ps1settings. Not tested on Windows, NVIDIA, Intel or other AMD cards.What the audit found
17829ac71aab4e8d,32ed072b9f845048,afeea48bbb9913ad,559d9f0184e15fe3,a1b20bc47e3c9597,e8c962358d862e3f: 6 of 6 hang when built alone) and every frame spends its whole 500 ms pipeline-wait budget: 285 ms a frame instead of 55. That is a dxil-spirv bug fixed upstream on 2026-11-24/25 (694cc67,3bc8276). With vkd3d-proton71cae09built from source, all six are made without this change, at the same 55 ms. So it only helps until Proton ships that vkd3d-proton, andVICTORY_PIPELINE_WAIT_MS=0gives the same frame time without it. Also: it adds a byte to the shader cache key on every host, so "nothing changes on Windows" was not exact.61e54e90adccaf6a) that means heads without skin. Reproduced with the wait off and a cold driver shader cache on vkd3d-proton 3.2.0 and on71cae09; with a warm cache the skin was there even with the six stuck. So it is a cold-cache timing race, not a vkd3d-proton fault and probably not Wine-specific (cf. #75). It also runs against the direction of #73 / #125, which cap waits; that needs discussing, not asserting.d3d12_pipeline_library_initrejects. The fix is a null blob, as in Marvisak/VIctory#347 (AugustoZFJ) and fxceless/victory-fork#885 (Filip722).VICTORY_SHOW_NEW_LATER); null views read zeros; the no-heap guard; retiring a released heap; read-back hardeningVICTORY_KEYSin every build;docs/proton.mdOther corrections: the 53 ms median I quoted is not in any log (the sessions' medians are 40 to 78 ms; controlled runs give 55 to 57 ms). The suggestion that #61 and #70 are related was unfounded (#70's six hashes are different ones). Faces were only checked in sessions resumed from one checkpoint and only on vkd3d-proton 3.2.0.
What will be in the reworked branch
VICTORY_PIPELINE_WAIT_MS=0.docs/proton.md, corrected.Each re-tested on vkd3d-proton 3.2.0 and on master before it is marked ready.
The investigation, the code and this audit were done with an AI coding assistant (Claude Code), directed and tested by me; the numbers are from this machine's logs. The first description should have been checked this way before it was posted.
A first use waits for its pipeline within 500 ms a frame shared by all threads; past that a draw or dispatch is dropped. A dropped draw loses one frame's picture; a dropped dispatch the title issues once loses its output for the session. Under Proton the world's first frame asks for hundreds of pipelines (vkd3d-proton keeps no pipeline library), and the one-off passes dropped there included the head blend-shape mapping (61e54e90adccaf6a): its maps stayed at the title's fill and the heads were never built (eyes, teeth and hair floating without skin; issue 111, problem 1). On the owner's tree, with dispatches waiting, the heads came back (runs blend-5 and blend-6: 679 waits, 657 ms over the run, longest 19 ms). A compute dispatch now waits for its own pipeline until it is made, up to 20 s (inside the title's 30 s GPU watchdog), once per pipeline. One not made in that time is given up: counted, logged ("a compute pipeline was not made in 20 s"), and its later dispatches are dropped without any wait, so a pipeline that never builds costs 20 s once and no frame budget after. A second dispatch racing the first wait waits within the frame's budget as before. The wait is on the recording thread before the dispatch is recorded, so it keeps its place in the list. Active only under Wine (`VICTORY_COMPUTE_WAIT`: unset, on under Wine only; `0` never; `1` on any host); on Windows the 500 ms budget applies as before. It does not depend on VICTORY_PIPELINE_WAIT_MS. Verified here (Proton Experimental, RX 9070, RADV): builds (release and diagnostics); title runs to follow. Untested on Windows and on other cards (and inert there by default).Title pipelines a run drew or dispatched with are listed, and the next run starts them when the title creates them, during its load; `victory warm --used` makes the same list ahead of a run. The list (and the slow list beside it) was written only beside the host pipeline library. vkd3d-proton refuses the library ("no host pipeline library: pipelines are not kept" in every run under Proton), so the list was never written there: every session began with "title pipelines to start early" at 0, made every pipeline at its first draw, and `warm --used` found nothing. Without a library the two lists are now written alone, as often as the library would be (at most every 20 s, when they changed). Active only under Wine (`VICTORY_EARLY_LIST`: unset, on under Wine only; `0` never; `1` on any host), and only reached when the host has no pipeline library, which a Windows driver has: nothing changes on Windows. Verified here (Proton Experimental, RX 9070, RADV): see the runs' "early pipeline list saved (no host pipeline library)" and the next run's "title pipelines to start early" lines. Untested on Windows and on other cards (and inert there by default).@zocram4cc on GitHub · 2026-11-26 08:12 UTC · original
@Beqren thanks for this, it matches what we see on a similar Linux setup (Proton Experimental, RADV 26.3.1, RX 6900 XT, Ryzen 7 5800X3D, kernel 7.3). Two measured notes that may be worth a line in
docs/proton.md:WINE_CPU_TOPOLOGY. Linux numbers SMT siblingsnandn+8(on an 8-core part); the title pins its threads as if siblings were adjacent (2k,2k+1, as Windows numbers them), so here its0-7and8-12groups landed on the same five physical cores. WithWINE_CPU_TOPOLOGY=16:0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15the title's masks land as intended (0-3,8-11= cores 0-3 with both siblings, and so on) and the busiest title thread went from 64 % to 71 % busy. Frame, median of the first 150 world seconds: 91.1 / 84.7 / 88.6 ms against 92.4 / 90.5 / 93.3 / 90.3 without (about −3 %). The list is per CPU (16 logical CPUs here);lscpu -eor/sys/devices/system/cpu/cpu*/topology/thread_siblings_listgives the pairs.--console series-swas 79.7 / 79.2 ms against 87.9 / 85.1 for Series X (release build, same scenes), the slowest frame of each second 104 / 98 against 140 / 134, and in a capture the faces had their skin there while they were missing in Series X on our tree without your commits. I have not yet run your branch itself in-game (integrated it here; your 14 new tests pass under Proton), so I can't say whether that difference remains with your compute-wait fix.Not tested on Windows. AI-assisted (Claude); measured by me on the rig above.
@zocram4cc on GitHub · 2026-11-26 08:49 UTC · original
In-game on Linux (RX 6900 XT, RADV 26.3.1, Proton Experimental), your branch integrated on top of
85d5641+ our commits: the faces are fixed in Series X (skin on necks and faces in frame captures where it was missing without this PR), 211 world seconds from a cold shader cache with no crash, and the frame is unchanged (87.5 / 84.7 ms against 87.9 / 85.1; numbers in #156).@Beqren on GitHub · 2026-11-26 08:54 UTC · original
Superseded by #166: the same work cut down to what survived an audit against vkd3d-proton master and this tracker (five commits, rebuilt and re-tested on current main). The description above says what was wrong with this one.
github-bot referenced this pull request2026-11-26 11:22:43 +00:00
Pull request closed