RTX 3070 (32-lane): after #11 (90228a7) the driver refuses ~80 more compute pipelines with E_INVALIDARG #75

Closed
opened 2026-11-26 03:35:41 +00:00 by github-bot · 8 comments
Owner

@⁠adamMasMusic on GitHub · 2026-11-24 21:12 UTC · original

After merging main at 4e17478, the NVIDIA driver refuses about 80 more compute pipelines on an RTX 3070 (32-lane waves), with E_INVALIDARG (0x80070057), and their dispatches are dropped. The opening cutscene looks visibly worse. The only change to shader translation between the two builds I compared is 90228a7 (#11, "restore parked lane-mask pairs a few instructions apart; relative VGPR reads keep parked lanes").

Setup: Windows 10 22H2 (19045) with the Agility SDK 1.620 runtime (needed for shader model 6.6 on Windows 10), RTX 3070 8 GB, Series X profile, release build, warm pipeline library.

Before: 1684989 plus local launch aids (watchdog hook, shader-cache key, offline fill tool, Agility exports). None of those touch translation.

  • 4 compute pipelines refused: 02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764. Also the mesh pipeline f5e50eb2108c425b that #51 fixes.
  • The cutscene renders as expected.

After: the same tree with main merged up to 4e17478, which adds 3930989 (tests), 90228a7 (#11) and 4e17478 (docs).

  • 84 compute pipelines refused, all 0x80070057, mostly while the pipeline library warms up at start.
  • The same 85 refusals (84 compute plus the mesh pipeline) with and without VICTORY_RELAY=2 / VICTORY_PIPELINE_WAIT_MS=24, so it is not the relay.

The newly refused programs include the four that #11 lets translate for the first time (7f05ddab771799a9, a53a7977fe762268, be14e72d86362031, f133e35efed2a48a). The rest translated and were created fine before. My guess, not verified: the new form needs 64-lane waves (or something else a 32-lane NVIDIA card can't do), which the driver refuses at pipeline creation.

The 80 compute programs refused after the merge but not before
06cf47dbd76827cd 0709e8356abd9082 07f451a14b13fecb 0a5d4f9047b3dce4 0c028454b58543f0 0df635ace0117319 10efcf59eb60cca7 119ee96f602f1668 14264103296aa43a 17af15c4015cb4b6 191ecaed66eea3b1 196bf6114ff3a131 1c4b3c0547e3e6fa 1d44a723bdebbf27 20b78ee12ecdb57d 240cb516c1af0bc3 2809db6c31de483d 291822a279c07067 2b17036bf3a1d615 2cfa4a6ad9ef005a 2dc602192abf6288 2f03a2df10503cef 3142b71ea80fc214 31d703207b51549a 3a56bc8c4389a473 3c196d81eca7ff15 3d002bca51069e01 42683eebec081520 466ec41d3f9d24c0 4996d173208d83eb 4e5d5eee2aaffd68 51e19585b4753814 52a86f2c41d1882b 55679a0547649d0b 56f3bf2d9388e5a7 5964b734c70b91eb 5c6224a6bc3a4066 647443e8b7b68415 65de113e23fa4fdd 660814153af43185 726205f726e842e7 78c04f8d197a2904 7c4002c5baa28f33 804b342cb4b9d1e9 82849f7a614208eb 89d08e561897d4e5 922e1d0ee1e19a85 92c12c7a7d607a9a 9afd549c4f530901 9bdd33d77fb8ca0f a1f6cdf8874960a9 a53a7977fe762268 ab5455fc6abb804f abd7a22106898c66 acf14a70f37fb012 b4b0427232707598 b4db8c3785b6fbc5 b8f3f7979d6bbc50 be14e72d86362031 be6ce5d849d51127 bfad8c6743ac5977 cd5aaf9ca7c2d8ee ce79e9eba7ae0348 d7db57731ada919b df3cf10a274e26ca e07a678d3f79d4cd e18931c72af42e46 e24dff38794241ab e4576c6eca0f8ce3 e798cc38df9dabc0 eae3498e6553afa8 f0aa2b1e79275592 f133e35efed2a48a f753697c1c03772b f79824724d8e2daf f8a6133bfedc5759 f8f50ab85e7b10bb fa0bd10a35bfef3c fd46520032208bed fdd56d97a806bcca 

I'm testing a local revert of 90228a7 next and will add the result here.

**@⁠adamMasMusic** on GitHub · 2026-11-24 21:12 UTC · [original](https://github.com/fxceless/victory-fork/issues/75) After merging `main` at 4e17478, the NVIDIA driver refuses about 80 more compute pipelines on an RTX 3070 (32-lane waves), with `E_INVALIDARG` (0x80070057), and their dispatches are dropped. The opening cutscene looks visibly worse. The only change to shader translation between the two builds I compared is 90228a7 (#11, "restore parked lane-mask pairs a few instructions apart; relative VGPR reads keep parked lanes"). **Setup:** Windows 10 22H2 (19045) with the Agility SDK 1.620 runtime (needed for shader model 6.6 on Windows 10), RTX 3070 8 GB, Series X profile, release build, warm pipeline library. **Before:** 1684989 plus local launch aids (watchdog hook, shader-cache key, offline fill tool, Agility exports). None of those touch translation. - 4 compute pipelines refused: `02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`. Also the mesh pipeline `f5e50eb2108c425b` that #51 fixes. - The cutscene renders as expected. **After:** the same tree with `main` merged up to 4e17478, which adds 3930989 (tests), 90228a7 (#11) and 4e17478 (docs). - 84 compute pipelines refused, all `0x80070057`, mostly while the pipeline library warms up at start. - The same 85 refusals (84 compute plus the mesh pipeline) with and without `VICTORY_RELAY=2` / `VICTORY_PIPELINE_WAIT_MS=24`, so it is not the relay. The newly refused programs include the four that #11 lets translate for the first time (`7f05ddab771799a9`, `a53a7977fe762268`, `be14e72d86362031`, `f133e35efed2a48a`). The rest translated and were created fine before. My guess, not verified: the new form needs 64-lane waves (or something else a 32-lane NVIDIA card can't do), which the driver refuses at pipeline creation. <details><summary>The 80 compute programs refused after the merge but not before</summary> ``` 06cf47dbd76827cd 0709e8356abd9082 07f451a14b13fecb 0a5d4f9047b3dce4 0c028454b58543f0 0df635ace0117319 10efcf59eb60cca7 119ee96f602f1668 14264103296aa43a 17af15c4015cb4b6 191ecaed66eea3b1 196bf6114ff3a131 1c4b3c0547e3e6fa 1d44a723bdebbf27 20b78ee12ecdb57d 240cb516c1af0bc3 2809db6c31de483d 291822a279c07067 2b17036bf3a1d615 2cfa4a6ad9ef005a 2dc602192abf6288 2f03a2df10503cef 3142b71ea80fc214 31d703207b51549a 3a56bc8c4389a473 3c196d81eca7ff15 3d002bca51069e01 42683eebec081520 466ec41d3f9d24c0 4996d173208d83eb 4e5d5eee2aaffd68 51e19585b4753814 52a86f2c41d1882b 55679a0547649d0b 56f3bf2d9388e5a7 5964b734c70b91eb 5c6224a6bc3a4066 647443e8b7b68415 65de113e23fa4fdd 660814153af43185 726205f726e842e7 78c04f8d197a2904 7c4002c5baa28f33 804b342cb4b9d1e9 82849f7a614208eb 89d08e561897d4e5 922e1d0ee1e19a85 92c12c7a7d607a9a 9afd549c4f530901 9bdd33d77fb8ca0f a1f6cdf8874960a9 a53a7977fe762268 ab5455fc6abb804f abd7a22106898c66 acf14a70f37fb012 b4b0427232707598 b4db8c3785b6fbc5 b8f3f7979d6bbc50 be14e72d86362031 be6ce5d849d51127 bfad8c6743ac5977 cd5aaf9ca7c2d8ee ce79e9eba7ae0348 d7db57731ada919b df3cf10a274e26ca e07a678d3f79d4cd e18931c72af42e46 e24dff38794241ab e4576c6eca0f8ce3 e798cc38df9dabc0 eae3498e6553afa8 f0aa2b1e79275592 f133e35efed2a48a f753697c1c03772b f79824724d8e2daf f8a6133bfedc5759 f8f50ab85e7b10bb fa0bd10a35bfef3c fd46520032208bed fdd56d97a806bcca ``` </details> I'm testing a local revert of 90228a7 next and will add the result here.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:41 +00:00
Author
Owner

@⁠adamMasMusic on GitHub · 2026-11-24 21:14 UTC · original

Confirmed by reverting: the same tree with 90228a7 reverted (and #51, #40, #52 and #63 merged on top) refuses only 3 compute pipelines (02384a60fda6f2d0, 2da4beb386509b77, 369cbe906ea72764), all refused before #11 as well. With 90228a7 in, it was 84. Same machine, same Windows 10 / Agility 1.620 setup, RTX 3070.

**@⁠adamMasMusic** on GitHub · 2026-11-24 21:14 UTC · [original](https://github.com/fxceless/victory-fork/issues/75#issuecomment-7144676453) Confirmed by reverting: the same tree with 90228a7 reverted (and #51, #40, #52 and #63 merged on top) refuses only 3 compute pipelines (`02384a60fda6f2d0`, `2da4beb386509b77`, `369cbe906ea72764`), all refused before #11 as well. With 90228a7 in, it was 84. Same machine, same Windows 10 / Agility 1.620 setup, RTX 3070.
Author
Owner

@⁠JFIREonFIRE on GitHub · 2026-11-24 21:26 UTC · original

A data point against this: on Windows 11 with the in-box D3D12 runtime, 4e17478 (with 90228a7) refuses only the old four. RTX 3090, driver 621.01, diag build, an empty pipeline library, 15 minutes with about 11 of them in the world. Full report in #94.

  • Refused: only 02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77 and 369cbe906ea72764 (plus mesh f5e50eb2108c425b).
  • Programs from your list that were translated and got a pipeline in this run include 3 of the 4 that #11 newly lets translate: 7f05ddab771799a9, a53a7977fe762268 and be14e72d86362031. Also 06cf47dbd76827cd, 0709e8356abd9082, 0c028454b58543f0, 17af15c4015cb4b6, 2dc602192abf6288 and 55679a0547649d0b. That is every one I checked. The fourth, f133e35efed2a48a, doesn't translate here ("a lane mask exchanged where not every lane runs is not supported").
  • 973 compute pipelines were created in total.

So on this machine the #11 form creates fine on a 32-lane NVIDIA card. The difference from your run is Windows 10 with the Agility SDK 1.620 runtime, plus a 3070 instead of a 3090 and a release build. That suggests the extra 80 refusals come from the runtime, or from something the Agility runtime checks that the Windows 11 one does not, rather than from the driver refusing a 64-lane form. Not verified beyond this one run. Running the D3D12 debug layer on your setup would show what the runtime objects to in one of those pipelines (for example 7f05ddab771799a9).

AI-assisted (Claude Code).

**@⁠JFIREonFIRE** on GitHub · 2026-11-24 21:26 UTC · [original](https://github.com/fxceless/victory-fork/issues/75#issuecomment-7144933707) A data point against this: on **Windows 11 with the in-box D3D12 runtime**, `4e17478` (with 90228a7) refuses only the old four. RTX 3090, driver 621.01, diag build, an empty pipeline library, 15 minutes with about 11 of them in the world. Full report in #94. - Refused: only `02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77` and `369cbe906ea72764` (plus mesh `f5e50eb2108c425b`). - Programs from your list that were translated **and got a pipeline** in this run include 3 of the 4 that #11 newly lets translate: `7f05ddab771799a9`, `a53a7977fe762268` and `be14e72d86362031`. Also `06cf47dbd76827cd`, `0709e8356abd9082`, `0c028454b58543f0`, `17af15c4015cb4b6`, `2dc602192abf6288` and `55679a0547649d0b`. That is every one I checked. The fourth, `f133e35efed2a48a`, doesn't translate here ("a lane mask exchanged where not every lane runs is not supported"). - 973 compute pipelines were created in total. So on this machine the #11 form creates fine on a 32-lane NVIDIA card. The difference from your run is Windows 10 with the Agility SDK 1.620 runtime, plus a 3070 instead of a 3090 and a release build. That suggests the extra 80 refusals come from the runtime, or from something the Agility runtime checks that the Windows 11 one does not, rather than from the driver refusing a 64-lane form. Not verified beyond this one run. Running the D3D12 debug layer on your setup would show what the runtime objects to in one of those pipelines (for example `7f05ddab771799a9`). AI-assisted (Claude Code).
Author
Owner

@⁠Paull007 on GitHub · 2026-11-24 21:44 UTC · original

Following up on the 3090 result above: the same build makes pipelines for most of the hashes the 3070 refuses, on the same GPU generation, so #11's translations look fine and the difference is the 3070 setup.

Two things I checked:

  • Not the pipeline library. Entries are named by a hash of the translated code and root signature, and a failed load falls back to CreateComputePipelineState, so the 0x80070057 is the create call refusing what it was given.
  • Not something exotic in #11's output. On a synthetic wave64 program with a parked lane mask restored one instruction apart, #11 changes the translation from WaveSize(32) + WaveOps to no WaveSize and no wave ops, i.e. the plainest form. Diag and release builds translate the same.

What the 3070 run has that the 3090 run doesn't: a warm library, a local shader-cache key and an offline fill tool. The translation of a wave64 program depends on the host's wave size (set_host_max_wave). A cache filled by a process that never set it to 32 holds WaveSize(64) translations, which NVIDIA refuses with E_INVALIDARG. The upstream cache key doesn't include the wave size, and a local key may not include the executable either.

@⁠adamMasMusic, could you try one run at 4e17478 with an empty shader cache folder and an empty pipeline library, no offline fill? If that drops to the old 3 or 4, it's the cache. If not, VICTORY_D3D12_DEBUG=1 on a diagnostics build (or victory translate --pipelines with VICTORY_HOST_WAVE=32 VICTORY_D3D12_DEBUG=1 VICTORY_TRANSLATE_ONLY=7f05ddab771799a9) will print the debug layer's reason.

Attached: a small patch that adds the host's widest wave and VICTORY_WAVE_LOCAL to the shader cache key, so a cache filled under another wave size is never served.

AI-assisted, no game data.

0001-GPU-the-shader-cache-keys-on-the-host-s-widest-wave-.patch

**@⁠Paull007** on GitHub · 2026-11-24 21:44 UTC · [original](https://github.com/fxceless/victory-fork/issues/75#issuecomment-7145316198) Following up on the 3090 result above: the same build makes pipelines for most of the hashes the 3070 refuses, on the same GPU generation, so #11's translations look fine and the difference is the 3070 setup. Two things I checked: - **Not the pipeline library.** Entries are named by a hash of the translated code and root signature, and a failed load falls back to `CreateComputePipelineState`, so the `0x80070057` is the create call refusing what it was given. - **Not something exotic in #11's output.** On a synthetic wave64 program with a parked lane mask restored one instruction apart, #11 changes the translation from `WaveSize(32)` + WaveOps to no `WaveSize` and no wave ops, i.e. the plainest form. Diag and release builds translate the same. What the 3070 run has that the 3090 run doesn't: a warm library, a local shader-cache key and an offline fill tool. The translation of a wave64 program depends on the host's wave size (`set_host_max_wave`). A cache filled by a process that never set it to 32 holds `WaveSize(64)` translations, which NVIDIA refuses with `E_INVALIDARG`. The upstream cache key doesn't include the wave size, and a local key may not include the executable either. @⁠adamMasMusic, could you try one run at 4e17478 with an empty shader cache folder and an empty pipeline library, no offline fill? If that drops to the old 3 or 4, it's the cache. If not, `VICTORY_D3D12_DEBUG=1` on a diagnostics build (or `victory translate --pipelines` with `VICTORY_HOST_WAVE=32 VICTORY_D3D12_DEBUG=1 VICTORY_TRANSLATE_ONLY=7f05ddab771799a9`) will print the debug layer's reason. Attached: a small patch that adds the host's widest wave and `VICTORY_WAVE_LOCAL` to the shader cache key, so a cache filled under another wave size is never served. AI-assisted, no game data. [0001-GPU-the-shader-cache-keys-on-the-host-s-widest-wave-.patch](https://github.com/user-attachments/files/35378003/0001-GPU-the-shader-cache-keys-on-the-host-s-widest-wave-.patch)
Author
Owner

@⁠m335671 on GitHub · 2026-11-24 21:46 UTC · original

Another data point against a regression from 90228a7, this time on Ada, with a before/after on the same machine: RTX 4070, Windows 11, in-box D3D12 runtime. The refused set is identical before and after #11, and the three programs #11 newly translates get pipelines and are bound.

Setup: RTX 4070 12 GB (32-lane waves), driver 32.0.16.2124, Ryzen 9 7900, 32 GB, Windows 11 Pro 26300, in-box D3D12 (no Agility redistributable). Release builds plus one diagnostics build, Series X profile, the same save (prologue), and one pipeline library shared across the runs. Counts and hashes only.

Run Translation Distinct refused pipelines
7b0f736 before #11 6
1684989 + #25 before #11 6
90228a7 + #77 with #11 6
90228a7 + #77, diag build, warm library, ~11 min with #11 6

In all four runs the refused set is the same, each refused once:

  • compute 02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764, 6b82bc7d22016cb5;
  • mesh f5e50eb2108c425b + pixel ce3f0432a08f1d35.

7f05ddab771799a9, a53a7977fe762268 and be14e72d86362031 were shader does not translate on 7b0f736. On 90228a7 they log shader translated, a pipeline is made (not refused), and each gets a first bind.

So, like the 3090 on Windows 11 above, this points at the 3070's Windows 10 / Agility 1.620 setup rather than at #11's translations.

Not tested: Windows 10 or the Agility SDK runtime, Ampere, an empty pipeline library on the 90228a7 runs.

AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) built and ran them, read the logs and wrote this comment.

**@⁠m335671** on GitHub · 2026-11-24 21:46 UTC · [original](https://github.com/fxceless/victory-fork/issues/75#issuecomment-7145359381) Another data point against a regression from 90228a7, this time on Ada, with a before/after on the same machine: **RTX 4070, Windows 11, in-box D3D12 runtime. The refused set is identical before and after #11, and the three programs #11 newly translates get pipelines and are bound.** **Setup:** RTX 4070 12 GB (32-lane waves), driver 32.0.16.2124, Ryzen 9 7900, 32 GB, Windows 11 Pro 26300, in-box D3D12 (no Agility redistributable). Release builds plus one diagnostics build, Series X profile, the same save (prologue), and one pipeline library shared across the runs. Counts and hashes only. | Run | Translation | Distinct refused pipelines | |---|---|---| | `7b0f736` | before #11 | 6 | | `1684989` + #25 | before #11 | 6 | | `90228a7` + #77 | **with #11** | 6 | | `90228a7` + #77, diag build, warm library, ~11 min | **with #11** | 6 | In all four runs the refused set is the same, each refused once: - compute `02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`, `6b82bc7d22016cb5`; - mesh `f5e50eb2108c425b` + pixel `ce3f0432a08f1d35`. `7f05ddab771799a9`, `a53a7977fe762268` and `be14e72d86362031` were `shader does not translate` on `7b0f736`. On `90228a7` they log `shader translated`, a pipeline is made (not refused), and each gets a `first bind`. So, like the 3090 on Windows 11 above, this points at the 3070's Windows 10 / Agility 1.620 setup rather than at #11's translations. **Not tested:** Windows 10 or the Agility SDK runtime, Ampere, an empty pipeline library on the `90228a7` runs. AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) built and ran them, read the logs and wrote this comment.
Author
Owner

@⁠JFIREonFIRE on GitHub · 2026-11-24 22:10 UTC · original

Root cause of the four compute refusals that every 32-lane NVIDIA report shows (02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764, plus 6b82bc7d22016cb5 from #7 and above). Measured offline on an RTX 3090 at 4e17478 with VICTORY_HOST_MAX_WAVE=32 VICTORY_TRANSLATE_ONLY=<hashes> victory translate shaders.rpf --pipelines --validate --list.

  • All five translate and validate. Then pipeline creation fails with E_INVALIDARG.
  • The emitted modules (dxc -dumpbin) all declare WaveSize(64), and PSV0 says min = max = 64. Groupshared memory is within limits: the largest is 6b82… at exactly 32,768 B, 02384a60… uses 16.5 KiB, and the others 512 B.
  • The wave size is the only cause. I made a throwaway build that leaves the wave size out of both the entry metadata and PSV0. With it, the driver creates all five pipelines. That build isn't correct, and I discarded it.

Why the translator keeps 64 lanes for each one: in every case the last reason is "an LDS read and write in one lane-branch region". These programs rely on the console's 64 lanes reaching LDS in lockstep without a barrier. Split into two 32-lane waves, they would need a group barrier inside a branch that only some lanes take.

program group what pins it to 64 lanes
369cbe906ea72764 GpuParticleUpdate CS_Visibility 64 Lane 0 initialises counters 0–5 without a barrier, then every lane runs ds_add_rtn on them. A block that only thread 0 runs reads dwords 4–5 and writes 0, 1, 4, 5 and 12. A loop reads dword 0 while adding atomically to dwords 16 and 20.
2cc4c197ee29e291 sr_tracing CS_Tiling_Generate_Opaque 8×8 Lanes exchange data through LDS inside a lane branch: one block writes one lane's address and reads another's (0x488 / 0x49c). It also uses v_mbcnt and a lane mask read as a number. The retry stops at "a lane mask exchanged where not every lane runs".
02384a60fda6f2d0 vfx_triangleClip CS_DefragHeap_ComputeRelocations 128 (two console waves) Each console wave runs its own loop. v_mbcnt over the 64-lane mask gives each lane a slot. Lane 63 alone then adds the wave's count to a counter in LDS, and v_readlane(…, 63) decides when the loop exits. Splitting it would need a barrier for only one console wave's two host waves, and D3D12 has none.
2da4beb386509b77 alphaResolve CS_AlphTransmissionPrefilterMip 256 The whole body sits inside a per-lane bounds check. Some lanes write LDS, the title's own s_barrier follows, and other lanes read it. That barrier is inside a lane branch, so it is already only a fence today. Splitting would also break the reads within one console wave that are right today.
6b82bc7d22016cb5 vfx_triangleClip CS_CollectTriangles_Meshlets 1024, 32 KiB LDS Counter read-modify-writes inside lane branches, plus reads around a ds_add_rtn. "Local waves" is rejected at 0x3a14: "a count or sum over the wave used as data".

The closest to fixable is 369cbe…. It would need two analyses: proof that a branch runs at most one lane (its condition is group*64 + tid == 0), and proof that constant LDS addresses written and read in one region don't overlap. For the others I see no sound form on 32-lane hosts. A per-console-wave barrier built from LDS spin-waits has no forward-progress guarantee between waves in D3D12. So on NVIDIA these dispatches stay dropped (about 1–5 per frame in the prologue). I didn't check whether that is visible.

The refused mesh pipeline (f5e50eb2108c425b) is a different thing: blending on an R8_UINT target, which #51 fixes.

AI-assisted (Claude Code). No game data attached.

**@⁠JFIREonFIRE** on GitHub · 2026-11-24 22:10 UTC · [original](https://github.com/fxceless/victory-fork/issues/75#issuecomment-7145889385) Root cause of the four compute refusals that every 32-lane NVIDIA report shows (`02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`, plus `6b82bc7d22016cb5` from #7 and above). Measured offline on an RTX 3090 at `4e17478` with `VICTORY_HOST_MAX_WAVE=32 VICTORY_TRANSLATE_ONLY=<hashes> victory translate shaders.rpf --pipelines --validate --list`. - All five translate and validate. Then pipeline creation fails with `E_INVALIDARG`. - The emitted modules (`dxc -dumpbin`) all declare `WaveSize(64)`, and PSV0 says min = max = 64. Groupshared memory is within limits: the largest is `6b82…` at exactly 32,768 B, `02384a60…` uses 16.5 KiB, and the others 512 B. - **The wave size is the only cause.** I made a throwaway build that leaves the wave size out of both the entry metadata and PSV0. With it, the driver creates all five pipelines. That build isn't correct, and I discarded it. Why the translator keeps 64 lanes for each one: in every case the last reason is "an LDS read and write in one lane-branch region". These programs rely on the console's 64 lanes reaching LDS in lockstep without a barrier. Split into two 32-lane waves, they would need a group barrier inside a branch that only some lanes take. | program | group | what pins it to 64 lanes | |---|---|---| | `369cbe906ea72764` GpuParticleUpdate CS_Visibility | 64 | Lane 0 initialises counters 0–5 without a barrier, then every lane runs `ds_add_rtn` on them. A block that only thread 0 runs reads dwords 4–5 and writes 0, 1, 4, 5 and 12. A loop reads dword 0 while adding atomically to dwords 16 and 20. | | `2cc4c197ee29e291` sr_tracing CS_Tiling_Generate_Opaque | 8×8 | Lanes exchange data through LDS inside a lane branch: one block writes one lane's address and reads another's (0x488 / 0x49c). It also uses `v_mbcnt` and a lane mask read as a number. The retry stops at "a lane mask exchanged where not every lane runs". | | `02384a60fda6f2d0` vfx_triangleClip CS_DefragHeap_ComputeRelocations | 128 (two console waves) | Each console wave runs its own loop. `v_mbcnt` over the 64-lane mask gives each lane a slot. Lane 63 alone then adds the wave's count to a counter in LDS, and `v_readlane(…, 63)` decides when the loop exits. Splitting it would need a barrier for only one console wave's two host waves, and D3D12 has none. | | `2da4beb386509b77` alphaResolve CS_AlphTransmissionPrefilterMip | 256 | The whole body sits inside a per-lane bounds check. Some lanes write LDS, the title's own `s_barrier` follows, and other lanes read it. That barrier is inside a lane branch, so it is already only a fence today. Splitting would also break the reads within one console wave that are right today. | | `6b82bc7d22016cb5` vfx_triangleClip CS_CollectTriangles_Meshlets | 1024, 32 KiB LDS | Counter read-modify-writes inside lane branches, plus reads around a `ds_add_rtn`. "Local waves" is rejected at 0x3a14: "a count or sum over the wave used as data". | The closest to fixable is `369cbe…`. It would need two analyses: proof that a branch runs at most one lane (its condition is `group*64 + tid == 0`), and proof that constant LDS addresses written and read in one region don't overlap. For the others I see no sound form on 32-lane hosts. A per-console-wave barrier built from LDS spin-waits has no forward-progress guarantee between waves in D3D12. So on NVIDIA these dispatches stay dropped (about 1–5 per frame in the prologue). I didn't check whether that is visible. The refused mesh pipeline (`f5e50eb2108c425b`) is a different thing: blending on an `R8_UINT` target, which #51 fixes. AI-assisted (Claude Code). No game data attached.
Author
Owner

@⁠Revens2 on GitHub · 2026-11-24 22:12 UTC · original

Another data point, and I could not reproduce the ~80 extra refusals: RTX 5070, Windows 11, in-box D3D12 runtime, 4e17478 (with #11), release build.

Setup: RTX 5070 12 GB (32-lane waves), driver 32.0.16.2124, Series X profile, release build of unmodified main at 4e17478, one 480 s run from a fresh data dir (so a cold pipeline library and shader cache), 2024 "shader translated" lines.

Result:

  • Distinct refused pipelines (host pipeline refused, 0x80070057): 5, all compute: 02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764, 6b82bc7d22016cb5. None of the 80 hashes listed in the report is among them.
  • Device removed: 0. Steady 30.0 fps / 33.3 ms per frame at the end of the run.
  • The run stayed at the profile selector (one ENTER at 48 s), so this says nothing about the cutscene.

This matches the RTX 3090 and RTX 4070 reports above (the old set plus 6b82bc7d22016cb5, as in the 4070 run). Together with the reporter's own revert result, it points at the Windows 10 / Agility 1.620 + 3070 setup or a stale/foreign shader-cache entry rather than at #11's translation. Paull007's suggestion (a cache filled under another wave size) is the only concrete hypothesis so far; I did not test it, since this machine does not show the problem.

Not tested: Windows 10, the Agility SDK runtime, Ampere, a warm pipeline library, the cutscene. Because it does not reproduce here, I am not opening a fix PR for this issue.

AI use: the run was done on my machine; Claude Code (Claude Sonnet 5.5) built and ran it and wrote this comment.

**@⁠Revens2** on GitHub · 2026-11-24 22:12 UTC · [original](https://github.com/fxceless/victory-fork/issues/75#issuecomment-7145935783) Another data point, and I could not reproduce the ~80 extra refusals: **RTX 5070, Windows 11, in-box D3D12 runtime, `4e17478` (with #11), release build.** **Setup:** RTX 5070 12 GB (32-lane waves), driver 32.0.16.2124, Series X profile, release build of unmodified `main` at `4e17478`, one 480 s run from a fresh data dir (so a cold pipeline library and shader cache), 2024 "shader translated" lines. **Result:** - Distinct refused pipelines (`host pipeline refused`, `0x80070057`): **5**, all compute: `02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`, `6b82bc7d22016cb5`. None of the 80 hashes listed in the report is among them. - Device removed: 0. Steady 30.0 fps / 33.3 ms per frame at the end of the run. - The run stayed at the profile selector (one ENTER at 48 s), so this says nothing about the cutscene. This matches the RTX 3090 and RTX 4070 reports above (the old set plus `6b82bc7d22016cb5`, as in the 4070 run). Together with the reporter's own revert result, it points at the Windows 10 / Agility 1.620 + 3070 setup or a stale/foreign shader-cache entry rather than at #11's translation. Paull007's suggestion (a cache filled under another wave size) is the only concrete hypothesis so far; I did not test it, since this machine does not show the problem. **Not tested:** Windows 10, the Agility SDK runtime, Ampere, a warm pipeline library, the cutscene. Because it does not reproduce here, I am not opening a fix PR for this issue. AI use: the run was done on my machine; Claude Code (Claude Sonnet 5.5) built and ran it and wrote this comment.
Author
Owner

@⁠adamMasMusic on GitHub · 2026-11-24 22:13 UTC · original

Correction: this was my setup, not #11. Sorry for the noise, and thanks to everyone who checked.

Retested on the same RTX 3070 / Windows 10 / Agility 1.620 machine with a build that has 90228a7 back in, under a fresh shader-cache key (no fill tool, no VICTORY_SHADER_CACHE_EXE), into the world:

  • Refused: only the old four (02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764).
  • 7f05ddab771799a9, a53a7977fe762268 and be14e72d86362031 translated, got pipelines and were bound. f133e35efed2a48a still doesn't translate.

Cause of the 84: before those runs I had started the offline VICTORY_FILL_SHADER_CACHE fill with that same executable and stopped it part way. Without a host GPU (and without VICTORY_HOST_MAX_WAVE=32) the fill translates the 64-lane forms, and it stores them under the key the game run then reads, so the runs got translations the 32-lane card refuses. Exactly as @⁠Paull007 guessed. Closing.

**@⁠adamMasMusic** on GitHub · 2026-11-24 22:13 UTC · [original](https://github.com/fxceless/victory-fork/issues/75#issuecomment-7145965441) Correction: this was my setup, not #11. Sorry for the noise, and thanks to everyone who checked. Retested on the same RTX 3070 / Windows 10 / Agility 1.620 machine with a build that has 90228a7 back in, under a fresh shader-cache key (no fill tool, no `VICTORY_SHADER_CACHE_EXE`), into the world: - Refused: only the old four (`02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`). - `7f05ddab771799a9`, `a53a7977fe762268` and `be14e72d86362031` translated, got pipelines and were bound. `f133e35efed2a48a` still doesn't translate. Cause of the 84: before those runs I had started the offline `VICTORY_FILL_SHADER_CACHE` fill with that same executable and stopped it part way. Without a host GPU (and without `VICTORY_HOST_MAX_WAVE=32`) the fill translates the 64-lane forms, and it stores them under the key the game run then reads, so the runs got translations the 32-lane card refuses. Exactly as @⁠Paull007 guessed. Closing.
Author
Owner

@⁠arminkhaleghirod on GitHub · 2026-11-24 23:18 UTC · original

RTX 4080, debug layer on (translate --pipelines, VICTORY_TRANSLATE_ONLY set to the four):

  • 2cc4c197ee29e291 and 2da4beb386509b77: "Shader wants wave lane count of 64 but maximum wave lane count for device is 32". 2da4… gets it twice, from WaveSize and from PSV0.
  • 369cbe906ea72764: no layer message, just the bare E_INVALIDARG.
  • VICTORY_HOST_MAX_WAVE=32 changes nothing: all four still keep WaveSize(64). So it's not the offline wave-width artifact #76 fixes.
  • Groupshared is under the limit for all four.

That agrees with the analysis above: only 369c… looks safe to run without WaveSize, and only if you can prove the lane-0 init branch runs one lane.

**@⁠arminkhaleghirod** on GitHub · 2026-11-24 23:18 UTC · [original](https://github.com/fxceless/victory-fork/issues/75#issuecomment-7147249403) RTX 4080, debug layer on (`translate --pipelines`, `VICTORY_TRANSLATE_ONLY` set to the four): - `2cc4c197ee29e291` and `2da4beb386509b77`: "Shader wants wave lane count of 64 but maximum wave lane count for device is 32". `2da4…` gets it twice, from WaveSize and from PSV0. - `369cbe906ea72764`: no layer message, just the bare E_INVALIDARG. - `VICTORY_HOST_MAX_WAVE=32` changes nothing: all four still keep `WaveSize(64)`. So it's not the offline wave-width artifact #76 fixes. - Groupshared is under the limit for all four. That agrees with the analysis above: only `369c…` looks safe to run without WaveSize, and only if you can prove the lane-0 init branch runs one lane.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#75
No description provided.