Linux/Proton (RADV): six compute pipelines that never finish (280 ms -> 53 ms a frame), heads, faces, GPU faults: all Wine-only #129
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by Beqren on 2026-11-26T06:02:31Z.
Tested 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.
Imported from avatarmanz/VIctory-7900XTX. Originally posted by zocram4cc on 2026-11-26T08:12:52Z.
@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.
Imported from avatarmanz/VIctory-7900XTX. Originally posted by zocram4cc on 2026-11-26T08:49:27Z.
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).Imported from avatarmanz/VIctory-7900XTX. Originally posted by Beqren on 2026-11-26T08:54:40Z.
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.
Pull request closed