Linux/Proton (RADV): six compute pipelines that never finish (280 ms -> 53 ms a frame), heads, faces, GPU faults: all Wine-only #129

Closed
Beqren wants to merge 15 commits from upstream-pr/129 into main
Beqren commented 2026-11-26 06:02:31 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Beqren on 2026-11-26T06:02:31Z.


Draft, being reworked. Please do not review the commits yet. After this was opened I audited every commit against the newest vkd3d-proton, this tracker and the sibling trees. Several claims in the first description were wrong or overstated. This is the corrected account; the branch will be replaced by a smaller one that contains only what held up.

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.ps1 settings. Not tested on Windows, NVIDIA, Intel or other AMD cards.

What the audit found

Commit Verdict
One latch per loop A stopgap, not a fix. With vkd3d-proton 3.2.0 six of the title's compute pipelines are never made (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-proton 71cae09 built from source, all six are made without this change, at the same 55 ms. So it only helps until Proton ships that vkd3d-proton, and VICTORY_PIPELINE_WAIT_MS=0 gives 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.
A compute dispatch waits for its own pipeline Holds up, but my explanation was wrong. A compute dispatch the title issues once is dropped when its pipeline is not ready; for the head blend-shape map (61e54e90adccaf6a) that means heads without skin. Reproduced with the wait off and a cold driver shader cache on vkd3d-proton 3.2.0 and on 71cae09; 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.
Early list without a pipeline library Wrong diagnosis; will be dropped. vkd3d-proton does not refuse the library: the layer asks for an empty one with a non-null pointer and length 0, which d3d12_pipeline_library_init rejects. The fix is a null blob, as in Marvisak/VIctory#347 (AugustoZFJ) and fxceless/victory-fork#885 (Filip722).
Format kind of views read through tables The same fix as #114 (still faces on Windows), so not Wine-specific and not mine to claim. Will be dropped in favour of #114.
16-bit typed loads after a group barrier read the raw view Torn faces went away with it here (vkd3d-proton 3.2.0 + RADV 26.3.1, by eye). Not tested on vkd3d-proton master or any other driver, and "a RADV behaviour" is not established. Depends on the table-slot words, so it will come back separately, after #114, with a test on master.
Texture slots wait for earlier lists (extension of VICTORY_SHOW_NEW_LATER); null views read zeros; the no-heap guard; retiring a released heap; read-back hardening No reproduction in this tree. Their evidence is device losses in another tree. The null-zeros commit also has a defect (every null UAV shares one buffer that shaders write, so a read of a null UAV can see another pass's writes). These will be left out until one of them is shown to be needed here.
VICTORY_KEYS in every build; docs/proton.md Fine; the doc is being corrected in line with the above.

Other 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

  1. An empty pipeline library asked for with a null blob (credit as above), so the library and the early list work under Proton.
  2. A compute dispatch waits for its own pipeline, with the cause stated as above and the gate open for discussion.
  3. The single-latch stopgap, labelled as such and off the cache key outside Wine, or left out if you would rather only document VICTORY_PIPELINE_WAIT_MS=0.
  4. 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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6620594863 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/129). Originally posted by [Beqren](https://github.com/Beqren) on 2026-11-26T06:02:31Z. --- > **Draft, being reworked. Please do not review the commits yet.** After this was opened I audited every commit against the newest vkd3d-proton, this tracker and the sibling trees. Several claims in the first description were wrong or overstated. This is the corrected account; the branch will be replaced by a smaller one that contains only what held up. 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.ps1` settings. Not tested on Windows, NVIDIA, Intel or other AMD cards. ## What the audit found | Commit | Verdict | |---|---| | One latch per loop | **A stopgap, not a fix.** With vkd3d-proton 3.2.0 six of the title's compute pipelines are never made (`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-proton `71cae09` built from source, all six are made **without** this change, at the same 55 ms. So it only helps until Proton ships that vkd3d-proton, and `VICTORY_PIPELINE_WAIT_MS=0` gives 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. | | A compute dispatch waits for its own pipeline | **Holds up, but my explanation was wrong.** A compute dispatch the title issues once is dropped when its pipeline is not ready; for the head blend-shape map (`61e54e90adccaf6a`) that means heads without skin. Reproduced with the wait off and a cold driver shader cache on vkd3d-proton 3.2.0 **and** on `71cae09`; 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. | | Early list without a pipeline library | **Wrong diagnosis; will be dropped.** vkd3d-proton does not refuse the library: the layer asks for an empty one with a non-null pointer and length 0, which `d3d12_pipeline_library_init` rejects. The fix is a null blob, as in Marvisak/VIctory#347 (AugustoZFJ) and fxceless/victory-fork#885 (Filip722). | | Format kind of views read through tables | **The same fix as #114** (still faces on Windows), so not Wine-specific and not mine to claim. Will be dropped in favour of #114. | | 16-bit typed loads after a group barrier read the raw view | Torn faces went away with it here (vkd3d-proton 3.2.0 + RADV 26.3.1, by eye). **Not tested** on vkd3d-proton master or any other driver, and "a RADV behaviour" is not established. Depends on the table-slot words, so it will come back separately, after #114, with a test on master. | | Texture slots wait for earlier lists (extension of `VICTORY_SHOW_NEW_LATER`); null views read zeros; the no-heap guard; retiring a released heap; read-back hardening | **No reproduction in this tree.** Their evidence is device losses in another tree. The null-zeros commit also has a defect (every null UAV shares one buffer that shaders write, so a read of a null UAV can see another pass's writes). These will be left out until one of them is shown to be needed here. | | `VICTORY_KEYS` in every build; `docs/proton.md` | Fine; the doc is being corrected in line with the above. | Other 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 1. An empty pipeline library asked for with a null blob (credit as above), so the library and the early list work under Proton. 2. A compute dispatch waits for its own pipeline, with the cause stated as above and the gate open for discussion. 3. The single-latch stopgap, labelled as such and off the cache key outside Wine, or left out if you would rather only document `VICTORY_PIPELINE_WAIT_MS=0`. 4. `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.
zocram4cc commented 2026-11-26 08:12:52 +00:00 (Migrated from github.com)

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:

  1. WINE_CPU_TOPOLOGY. Linux numbers SMT siblings n and n+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 its 0-7 and 8-12 groups landed on the same five physical cores. With WINE_CPU_TOPOLOGY=16:0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15 the 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 -e or /sys/devices/system/cpu/cpu*/topology/thread_siblings_list gives the pairs.
  2. Series S. On this card --console series-s was 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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7186324761 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/129#issuecomment-7186324761). Originally posted by [zocram4cc](https://github.com/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`: 1. **`WINE_CPU_TOPOLOGY`.** Linux numbers SMT siblings `n` and `n+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 its `0-7` and `8-12` groups landed on the same five physical cores. With `WINE_CPU_TOPOLOGY=16:0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15` the 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 -e` or `/sys/devices/system/cpu/cpu*/topology/thread_siblings_list` gives the pairs. 2. **Series S.** On this card `--console series-s` was 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 commented 2026-11-26 08:49:27 +00:00 (Migrated from github.com)

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).

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7187064233 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/129#issuecomment-7187064233). Originally posted by [zocram4cc](https://github.com/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).
Beqren commented 2026-11-26 08:54:40 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7187172099 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/129#issuecomment-7187172099). Originally posted by [Beqren](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
avatarmanz/VIctory-7900XTX!129
No description provided.