Offline benchmark of 25 open shader PRs on a retail dump: what each one unblocks #1247

Open
opened 2026-11-26 04:24:52 +00:00 by github-bot · 35 comments
Owner

@⁠zed6000 on GitHub · 2026-11-24 16:46 UTC · original

Offline benchmark of open shader PRs against a retail dump

I measured 25 open shader PRs with victory translate --validate --list on shaders.rpf from a retail dump (x1.0.2.1). Each PR was merged onto main at ffe310e and compared shader by shader with main. Three PRs conflict with main (#69, #302, #193); those were measured at their own head against their merge base.

"Gained" counts unique programs that pass the DXIL validator (dxil.dll 1.8.2502) with the PR and did not on the baseline. No PR lost a single program that validated on its baseline.

Failure on main (programs) PR Gained Notes
a scalar memory read as data (771) #953 +230
#1103 +230 same 230 programs as #953, in 6 lines; 14 move on to "a constant buffer's descriptor read as data" with both
#1083 0 renames the reason (494 / 148 / 127 / 39 under new names)
#1056 0 no change on this data
a 64-bit image atomic (653) #305 +520
#539 +520 same 520 programs as #305
#589 0
a descriptor read only as data (394) #1067 +295 394 → 17
a select on an untracked mask (288) #585 +25
#1084 +2 both of its programs are among #585's 25
#69 +1 vs its merge base
lane mask read as data (564, both reasons) #298 +34 564 → 259
#1074 +29 23 of its 29 overlap #298; union 40
#1073 +6
an address in an SGPR that is no root parameter (195) #333 0 6 programs newly fail with "vertex outputs share a row"
#302, #489 0
an interpolation with computed barycentrics (207) #453 +182 207 → 0; 6 new validator errors (3 × "out of bound coord must be undef", 3 × interpolation mode differs in a packed row)
a packed input half no element holds (166) #176, #621, #592 +117 each all three gain the same 117 programs
a structured buffer of unknown stride (148) #193 +70 vs its merge base
#704 +39 on main
a biased image sample with 16-bit coordinates (108) #306 +153 also fixes other validator failures
#996 +52 36 overlap #306; union 169

Limits. These are counts of programs that translate and validate offline. They do not tell whether the output is correct, and I did not run the PRs' tests or render anything. Where two PRs gain the same programs, review has to pick between them on correctness and code quality. Shader names and dumps are left out per the asset policy.

**@⁠zed6000** on GitHub · 2026-11-24 16:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247) ## Offline benchmark of open shader PRs against a retail dump I measured 25 open shader PRs with `victory translate --validate --list` on `shaders.rpf` from a retail dump (x1.0.2.1). Each PR was merged onto main at ffe310e and compared shader by shader with main. Three PRs conflict with main (#69, #302, #193); those were measured at their own head against their merge base. "Gained" counts unique programs that pass the DXIL validator (dxil.dll 1.8.2502) with the PR and did not on the baseline. **No PR lost a single program that validated on its baseline.** | Failure on main (programs) | PR | Gained | Notes | |---|---|---|---| | a scalar memory read as data (771) | #953 | +230 | | | | #1103 | +230 | same 230 programs as #953, in 6 lines; 14 move on to "a constant buffer's descriptor read as data" with both | | | #1083 | 0 | renames the reason (494 / 148 / 127 / 39 under new names) | | | #1056 | 0 | no change on this data | | a 64-bit image atomic (653) | #305 | +520 | | | | #539 | +520 | same 520 programs as #305 | | | #589 | 0 | | | a descriptor read only as data (394) | #1067 | +295 | 394 → 17 | | a select on an untracked mask (288) | #585 | +25 | | | | #1084 | +2 | both of its programs are among #585's 25 | | | #69 | +1 | vs its merge base | | lane mask read as data (564, both reasons) | #298 | +34 | 564 → 259 | | | #1074 | +29 | 23 of its 29 overlap #298; union 40 | | | #1073 | +6 | | | an address in an SGPR that is no root parameter (195) | #333 | 0 | 6 programs newly fail with "vertex outputs share a row" | | | #302, #489 | 0 | | | an interpolation with computed barycentrics (207) | #453 | +182 | 207 → 0; 6 new validator errors (3 × "out of bound coord must be undef", 3 × interpolation mode differs in a packed row) | | a packed input half no element holds (166) | #176, #621, #592 | +117 each | all three gain the same 117 programs | | a structured buffer of unknown stride (148) | #193 | +70 | vs its merge base | | | #704 | +39 | on main | | a biased image sample with 16-bit coordinates (108) | #306 | +153 | also fixes other validator failures | | | #996 | +52 | 36 overlap #306; union 169 | **Limits.** These are counts of programs that translate and validate offline. They do not tell whether the output is correct, and I did not run the PRs' tests or render anything. Where two PRs gain the same programs, review has to pick between them on correctness and code quality. Shader names and dumps are left out per the asset policy.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:24:52 +00:00
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 17:01 UTC · original

Cross-runtime datum that should reshape how these tables get read, not how they're built: on the sibling runtime (ivall/xcl), the deepest run in the world — ~5 minutes of in-world play before the title's watchdog — ended with its own context line reading "16,374 draws with translated pipelines (0 skipped)". The kill arrived with the draw path fully translated: shader refusals were not what stalled that run (completion-stall class; the shared story). Two consequences for your benchmark's framing:

  1. These counts are not a watchdog countdown. A refused program mostly yields missing/degraded visuals, not a stall; the stall-relevant subset is "refused and the title blocks on that specific work," which offline corpus counts cannot see — the 3,500-row list is the unplayability backlog (black screens, invisible geometry), and a much smaller, scene-specific intersection is the stall backlog. Review effort should rank by validator-gained AND in-world-reachability, not gained alone.
  2. The pairing that would actually produce the stall-critical number exists on both sides: your runtime's breadcrumbs already log the last pipelines bound before a hang (your #1062/#1222 style output), and both runtimes log their refusal reasons per program. Intersect "hung-run last-bound set" × "refused set" across a handful of runs and you get, for the first time anywhere, the stall-critical shader count — I'd bet four figures offline converges to tens of distinct programs per scene, and that would let people stop saying "fix the shaders" as if the answer were 3,500. Happy to run the same intersection on our refusal vocabulary whenever you have three breadcrumb-carrying hang reports to feed it.

Also worth pinning: your "no PR lost a program" line is the most under-appreciated safety property in the weekend's data — it means the merge risk on all 25 is one-directional, which is exactly what a jammed review queue needs to hear.

**@⁠pickles976** on GitHub · 2026-11-24 17:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7138557827) Cross-runtime datum that should reshape how these tables get **read**, not how they're built: on the sibling runtime (ivall/xcl), the deepest run in the world — ~5 minutes of in-world play before the title's watchdog — ended with its own context line reading **"16,374 draws with translated pipelines (0 skipped)"**. The kill arrived with the draw path fully translated: shader refusals were *not* what stalled that run (completion-stall class; the shared story). Two consequences for your benchmark's framing: 1. **These counts are not a watchdog countdown.** A refused program mostly yields missing/degraded visuals, not a stall; the stall-relevant subset is "refused **and** the title blocks on that specific work," which offline corpus counts cannot see — the 3,500-row list is the *unplayability* backlog (black screens, invisible geometry), and a much smaller, scene-specific intersection is the *stall* backlog. Review effort should rank by validator-gained AND in-world-reachability, not gained alone. 2. **The pairing that would actually produce the stall-critical number exists on both sides:** your runtime's breadcrumbs already log the **last pipelines bound before a hang** (your #1062/#1222 style output), and both runtimes log their refusal reasons per program. Intersect "hung-run last-bound set" × "refused set" across a handful of runs and you get, for the first time anywhere, the *stall-critical shader count* — I'd bet four figures offline converges to tens of distinct programs per scene, and that would let people stop saying "fix the shaders" as if the answer were 3,500. Happy to run the same intersection on our refusal vocabulary whenever you have three breadcrumb-carrying hang reports to feed it. Also worth pinning: your "no PR lost a program" line is the most under-appreciated safety property in the weekend's data — it means the merge risk on all 25 is one-directional, which is exactly what a jammed review queue needs to hear.
Author
Owner

@⁠marquezinii on GitHub · 2026-11-24 17:35 UTC · original

Runtime data for the "biased image sample with 16-bit coordinates" rows. The counts above can't tell overlapping PRs apart, so I ran the same three a16 sampling tests on a GPU against each candidate. The tests read back which mip level the hardware picked.

Tests: bc7fe21, details in #306. Wave32 compute programs run image_sample_l, _d and _b with a16 on a 16x4 texture whose mip m holds m. Per-lane address dwords come from a buffer, with junk in the high halves the hardware ignores. Hardware: RTX 5070 (driver 621.40, the only adapter). Each PR head got its own worktree and its own target directory. WARP agreed with the hardware in every run.

head sample_l a16 sample_d a16 sample_b a16
main ffe310e ok wrong levels refused in lower
#306 9342153 ok ok ok
#73 7cc2445 + #1065 37f838d ok ok ok
#160 5ce85c5 + #1065 37f838d ok ok ok
#569 aed9637 + #1065 37f838d ok wrong levels, same as main ok
#996 090d61f + #1065 37f838d ok wrong levels, same as main ok
  • Why #1065 is stacked on some heads. Without it, _b in a compute shader fails DXIL validation on #73, #160 and #996 ("features incompatible with the shader stage (cs)"): validator 1.8 is needed for implicit derivatives in compute. That comes from my test running _b in compute; it says nothing about the bias. #306 has the same fix built in.
  • sample_d "wrong levels". Lane l asks for level l % 5 and gets [2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, ...]. main lays out a16 derivatives as packed halves. Outside the _g16 opcodes they are 32-bit dwords, which is the point r4tedx raised on #306. #569 and #996 don't touch this, so it is main's behaviour, not a regression in either.
  • The bias. Every head that translates _b reads it as an f16 from the low half of its own dword, so it is correct in all of them.
  • #318 1d7bf9b wasn't tested: it no longer merges with main, and the test harness has changed since its base.

For review this means #306, #73 + #1065 and #160 + #1065 give the same sampled levels in these three cases. #569 and #996 fix _b, but a16 _d stays wrong with them. None of this is a comparison with console hardware: the tests check each translation against the GFX10 a16 address layout.

**@⁠marquezinii** on GitHub · 2026-11-24 17:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7139412980) Runtime data for the "biased image sample with 16-bit coordinates" rows. The counts above can't tell overlapping PRs apart, so I ran the same three a16 sampling tests on a GPU against each candidate. The tests read back which mip level the hardware picked. Tests: [`bc7fe21`](https://github.com/marquezinii/VIctory/commit/bc7fe217c116a5829d0cc1137fb49844108761b4), details in [#306](https://git.gtahub.st/github/Marvisak--VIctory/pulls/306). Wave32 compute programs run `image_sample_l`, `_d` and `_b` with `a16` on a 16x4 texture whose mip `m` holds `m`. Per-lane address dwords come from a buffer, with junk in the high halves the hardware ignores. Hardware: RTX 5070 (driver 621.40, the only adapter). Each PR head got its own worktree and its own target directory. WARP agreed with the hardware in every run. | head | `sample_l` a16 | `sample_d` a16 | `sample_b` a16 | |---|---|---|---| | main `ffe310e` | ok | wrong levels | refused in `lower` | | #306 `9342153` | ok | ok | ok | | #73 `7cc2445` + #1065 `37f838d` | ok | ok | ok | | #160 `5ce85c5` + #1065 `37f838d` | ok | ok | ok | | #569 `aed9637` + #1065 `37f838d` | ok | wrong levels, same as main | ok | | #996 `090d61f` + #1065 `37f838d` | ok | wrong levels, same as main | ok | - **Why #1065 is stacked on some heads.** Without it, `_b` in a compute shader fails DXIL validation on #73, #160 and #996 ("features incompatible with the shader stage (cs)"): validator 1.8 is needed for implicit derivatives in compute. That comes from my test running `_b` in compute; it says nothing about the bias. #306 has the same fix built in. - **`sample_d` "wrong levels".** Lane `l` asks for level `l % 5` and gets `[2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, ...]`. main lays out a16 derivatives as packed halves. Outside the `_g16` opcodes they are 32-bit dwords, which is the point r4tedx raised on #306. #569 and #996 don't touch this, so it is main's behaviour, not a regression in either. - **The bias.** Every head that translates `_b` reads it as an f16 from the low half of its own dword, so it is correct in all of them. - **#318 `1d7bf9b`** wasn't tested: it no longer merges with main, and the test harness has changed since its base. For review this means #306, #73 + #1065 and #160 + #1065 give the same sampled levels in these three cases. #569 and #996 fix `_b`, but `a16` `_d` stays wrong with them. None of this is a comparison with console hardware: the tests check each translation against the GFX10 a16 address layout.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-24 17:44 UTC · original

Batch 1 of the remaining open shader PRs (27 more)

I'm now benchmarking all 261 open PRs that touch crates/victory-shader and will post the results here in batches. The method is the same as above: each PR is merged onto main ffe310e (or measured against its merge base where it conflicts), then victory translate --validate --list runs on shaders.rpf (1.0.2.1) and the result is compared with main program by program.

Regression

  • #98 loses 29 compute programs that validate on main. They now fail with "a whole-wave section step the simulation does not follow". Details are on #98.

Gains (programs that newly validate; no losses unless stated)

PR Gained Overlap
#160 +77 includes all 61 of #138; 36 overlap #306
#138 +61 vs merge base d2a4bae (conflicts with main); all 61 are within #160's 77
#73 +36 the same 36 that #306 and #996 also gain
#101 +16 identical to #116; all 16 are within #996's 52
#116 +16 identical to #101

No change in which programs translate or validate: #78, #91, #92, #94, #105, #109, #110, #112, #120, #126, #139, #142, #145, #148, #154, #156, #157, #162, #164, #165, #166. That is expected for correctness-only changes (for example, a different NaN result), and for instructions or forms this title does not use. It is not a judgement on whether a change is correct.

Counts are offline translation and validation only. They say nothing about whether the output is correct, and I did not run any PR's tests.

**@⁠zed6000** on GitHub · 2026-11-24 17:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7139644340) ### Batch 1 of the remaining open shader PRs (27 more) I'm now benchmarking all 261 open PRs that touch `crates/victory-shader` and will post the results here in batches. The method is the same as above: each PR is merged onto main ffe310e (or measured against its merge base where it conflicts), then `victory translate --validate --list` runs on `shaders.rpf` (1.0.2.1) and the result is compared with main program by program. **Regression** - **#98** loses **29** compute programs that validate on main. They now fail with "a whole-wave section step the simulation does not follow". Details are on #98. **Gains** (programs that newly validate; no losses unless stated) | PR | Gained | Overlap | |---|---|---| | #160 | +77 | includes all 61 of #138; 36 overlap #306 | | #138 | +61 | vs merge base d2a4bae (conflicts with main); all 61 are within #160's 77 | | #73 | +36 | the same 36 that #306 and #996 also gain | | #101 | +16 | identical to #116; all 16 are within #996's 52 | | #116 | +16 | identical to #101 | **No change** in which programs translate or validate: #78, #91, #92, #94, #105, #109, #110, #112, #120, #126, #139, #142, #145, #148, #154, #156, #157, #162, #164, #165, #166. That is expected for correctness-only changes (for example, a different NaN result), and for instructions or forms this title does not use. It is not a judgement on whether a change is correct. Counts are offline translation and validation only. They say nothing about whether the output is correct, and I did not run any PR's tests.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-24 17:46 UTC · original

Thanks for this table. The four PRs that gain the most (#1067, #305, #306, #176) are merged together, on top of the bundle #1319, in #1402, with four hand-resolved merges described there. Clippy (both CI runs) and cargo test --workspace pass on it, but I have no dump, so the one thing that is not measured is the combined gain and whether anything is lost. If you can run the same victory translate --validate --list on the branch (MamaLeVrai/VIctory, bundle/shader-high-yield) and compare with main, that would show whether the sum of the four holds and whether the conflict resolutions cost a program. AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-24 17:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7139690365) Thanks for this table. The four PRs that gain the most (#1067, #305, #306, #176) are merged together, on top of the bundle #1319, in #1402, with four hand-resolved merges described there. Clippy (both CI runs) and `cargo test --workspace` pass on it, but I have no dump, so the one thing that is not measured is the combined gain and whether anything is lost. If you can run the same `victory translate --validate --list` on the branch (`MamaLeVrai/VIctory`, `bundle/shader-high-yield`) and compare with main, that would show whether the sum of the four holds and whether the conflict resolutions cost a program. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-24 17:49 UTC · original

Batch 2 (23 more)

The method is the same as batch 1, against main ffe310e. No regressions in this batch.

Gains

PR Gained Notes
#180 +542 275 overlap #1067's 295 and 24 overlap #306; the other 243 are gained by no other PR measured so far

Moves programs to a later failure, no net gain

  • #269 (measured against its merge base d2a4bae; it conflicts with main): 268 programs no longer stop at "a lane mask holding lanes elsewhere read as data". They now get further and stop at the next gap: 242 at "a descriptor read only as data" (the reason #1067 and #180 address), 10 at "a structured buffer of unknown stride", and a few elsewhere. It may pay off combined with one of those. I have not measured it stacked.

Not comparable

  • #231, a draft integration branch: its translate tool counts duplicate containers (0 skipped, against 614 on main), so its totals cannot be compared program for program.
  • #273 (SGD5 record parsing): the totals are identical to main. 43 programs are found at different record offsets, but they are the same programs.

No change: #168, #169, #171, #175, #177, #185, #189, #190, #192, #200, #223, #226, #233, #235, #244, #254, #259, #265, #281.

**@⁠zed6000** on GitHub · 2026-11-24 17:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7139759775) ### Batch 2 (23 more) The method is the same as batch 1, against main ffe310e. **No regressions in this batch.** **Gains** | PR | Gained | Notes | |---|---|---| | #180 | **+542** | 275 overlap #1067's 295 and 24 overlap #306; the other 243 are gained by no other PR measured so far | **Moves programs to a later failure, no net gain** - **#269** (measured against its merge base d2a4bae; it conflicts with main): 268 programs no longer stop at "a lane mask holding lanes elsewhere read as data". They now get further and stop at the next gap: 242 at "a descriptor read only as data" (the reason #1067 and #180 address), 10 at "a structured buffer of unknown stride", and a few elsewhere. It may pay off combined with one of those. I have not measured it stacked. **Not comparable** - **#231**, a draft integration branch: its translate tool counts duplicate containers (0 skipped, against 614 on main), so its totals cannot be compared program for program. - **#273** (SGD5 record parsing): the totals are identical to main. 43 programs are found at different record offsets, but they are the same programs. **No change:** #168, #169, #171, #175, #177, #185, #189, #190, #192, #200, #223, #226, #233, #235, #244, #254, #259, #265, #281.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-24 18:19 UTC · original

Batch 3 (29 more)

No regressions in this batch. Most of the gainers conflict with main, so they were measured against their merge base, d2a4bae.

Gains

PR Gained Baseline Overlap with other measured PRs
#383 +136 merge base 77 overlap #953 and 52 overlap #996; 7 unique
#309 +125 merge base 33 overlap #298 and 22 overlap #1074; 92 unique
#318 +36 merge base the same 36 as #73, #306 and #996
#329 +19 merge base the same 19 that #1067 and #585 gain
#320 +2 main
#385 +2 merge base
#404 +1 merge base

Other

  • #416 (v_cvt_f32_f64): the 4 programs that stopped at the instruction now get further and stop at "a whole-wave section step the simulation does not follow". There is no net gain yet.
  • #378 (runtime hashes in the listing) is not comparable: with it, the tool lists more programs (14,117 vertex/pixel against 14,027 on main), so program-by-program totals don't line up.

No change: #284, #286, #288, #292, #294, #308, #317, #326, #328, #332, #342, #343, #362, #368, #369, #379, #391, #395, #411, #420.

**@⁠zed6000** on GitHub · 2026-11-24 18:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7140489236) ### Batch 3 (29 more) **No regressions in this batch.** Most of the gainers conflict with main, so they were measured against their merge base, d2a4bae. **Gains** | PR | Gained | Baseline | Overlap with other measured PRs | |---|---|---|---| | #383 | +136 | merge base | 77 overlap #953 and 52 overlap #996; 7 unique | | #309 | +125 | merge base | 33 overlap #298 and 22 overlap #1074; **92 unique** | | #318 | +36 | merge base | the same 36 as #73, #306 and #996 | | #329 | +19 | merge base | the same 19 that #1067 and #585 gain | | #320 | +2 | main | | | #385 | +2 | merge base | | | #404 | +1 | merge base | | **Other** - **#416** (v_cvt_f32_f64): the 4 programs that stopped at the instruction now get further and stop at "a whole-wave section step the simulation does not follow". There is no net gain yet. - **#378** (runtime hashes in the listing) is not comparable: with it, the tool lists more programs (14,117 vertex/pixel against 14,027 on main), so program-by-program totals don't line up. **No change:** #284, #286, #288, #292, #294, #308, #317, #326, #328, #332, #342, #343, #362, #368, #369, #379, #391, #395, #411, #420.
Author
Owner

@⁠EduBertozzi on GitHub · 2026-11-24 18:32 UTC · original

A correctness pass on the PRs in your table, which you noted you hadn't run: their victory-shader test suites on a GTX 1060 6 GB (Pascal, 32-lane waves). The machine is Windows 10 22H2 19045 with driver 32.0.15.8266, and the Agility 1.620.2 runtime through #486 so the GPU tests get SM 6.6 on hardware. Each PR was merged onto main (ffe310e) as in your table, then cargo test -p victory-shader --lib. No game data.

PR passed / failed tests it adds
main 120 / 0 –
#953 (scalar read as data) 121 / 0 1
#305 (64-bit image atomics) 121 / 0 1
#539 (64-bit image atomics) 120 / 0 0
#1067 (descriptor read only as data) 121 / 0 1
#453 (computed barycentrics) 130 / 0 10
#176 (packed input half) 121 / 0 1
#621 (packed input half) 122 / 0 2
#592 (packed input half) 121 / 0 1
#306 (biased 16-bit sample) 126 / 0 6
#996 (biased 16-bit sample) 122 / 0 2
#585 (untracked-mask select) 120 / 0 0

Nothing fails on Pascal. For the pairs that gain the same programs, the difference is coverage. #539 and #585 add no test anywhere in their diffs, while #305 and the packed-half PRs carry their own. That may help pick between #305 and #539.

At their own heads, #592 and #621 are 18 commits behind main and #585 is 131 behind. #592's head doesn't build its tests there, because of the old lowers(&words) call that main has since fixed. Merged onto main, all three build and pass.

AI-assisted (Claude Code).

**@⁠EduBertozzi** on GitHub · 2026-11-24 18:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7140787999) A correctness pass on the PRs in your table, which you noted you hadn't run: their `victory-shader` test suites on a **GTX 1060 6 GB** (Pascal, 32-lane waves). The machine is Windows 10 22H2 19045 with driver 32.0.15.8266, and the Agility 1.620.2 runtime through #486 so the GPU tests get SM 6.6 on hardware. Each PR was merged onto `main` (`ffe310e`) as in your table, then `cargo test -p victory-shader --lib`. No game data. | PR | passed / failed | tests it adds | |---|---|---| | `main` | 120 / 0 | – | | #953 (scalar read as data) | 121 / 0 | 1 | | #305 (64-bit image atomics) | 121 / 0 | 1 | | #539 (64-bit image atomics) | 120 / 0 | **0** | | #1067 (descriptor read only as data) | 121 / 0 | 1 | | #453 (computed barycentrics) | 130 / 0 | 10 | | #176 (packed input half) | 121 / 0 | 1 | | #621 (packed input half) | 122 / 0 | 2 | | #592 (packed input half) | 121 / 0 | 1 | | #306 (biased 16-bit sample) | 126 / 0 | 6 | | #996 (biased 16-bit sample) | 122 / 0 | 2 | | #585 (untracked-mask select) | 120 / 0 | **0** | Nothing fails on Pascal. For the pairs that gain the same programs, the difference is coverage. #539 and #585 add no test anywhere in their diffs, while #305 and the packed-half PRs carry their own. That may help pick between #305 and #539. At their own heads, #592 and #621 are 18 commits behind `main` and #585 is 131 behind. #592's head doesn't build its tests there, because of the old `lowers(&words)` call that `main` has since fixed. Merged onto `main`, all three build and pass. AI-assisted (Claude Code).
Author
Owner

@⁠sinan-cmyk on GitHub · 2026-11-24 18:59 UTC · original

Bundle PRs measured with the same method

These are measured, so you can skip them in the batches. I used the same setup as above: shaders.rpf 1.0.2.1, dxil.dll 1.8.2502.11, 25,889 programs, compared program by program.

PR Measured against Gained Lost Detail
#1319 main +285 0 comment
#1402 main / #1319 +1,688 / +1,403 0 comment; the four PRs gain more stacked than one by one
#1492 #1402 0 31 comment; all 31 come from #98, confirmed by reverting only its merge
#1504 #1492 +226 0 comment
#1511 #1504 0 0 comment

Note for single PRs measured against main: with #1402, "a descriptor's address or format read as data" becomes the largest failure (809 programs). Ten open descriptor PRs conflict with #1402 in emit/lower.rs. #1376 has the breakdown by descriptor dword.

For everyone who measures: #1541 adds victory list-diff <before> <after>. It does the program-by-program comparison of two --list outputs and prints only counts and reasons, so you need no private script.

AI-assisted (Claude Code).

**@⁠sinan-cmyk** on GitHub · 2026-11-24 18:59 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7141429888) ### Bundle PRs measured with the same method These are measured, so you can skip them in the batches. I used the same setup as above: `shaders.rpf` 1.0.2.1, dxil.dll 1.8.2502.11, 25,889 programs, compared program by program. | PR | Measured against | Gained | Lost | Detail | |---|---|---|---|---| | #1319 | `main` | +285 | 0 | [comment](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1319) | | #1402 | `main` / #1319 | +1,688 / +1,403 | 0 | [comment](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1402); the four PRs gain more stacked than one by one | | #1492 | #1402 | 0 | **31** | [comment](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1492); all 31 come from #98, confirmed by reverting only its merge | | #1504 | #1492 | +226 | 0 | [comment](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1504) | | #1511 | #1504 | 0 | 0 | [comment](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1511) | **Note for single PRs measured against `main`:** with #1402, "a descriptor's address or format read as data" becomes the largest failure (809 programs). Ten open descriptor PRs conflict with #1402 in `emit/lower.rs`. [#1376](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1376) has the breakdown by descriptor dword. **For everyone who measures:** #1541 adds `victory list-diff <before> <after>`. It does the program-by-program comparison of two `--list` outputs and prints only counts and reasons, so you need no private script. AI-assisted (Claude Code).
Author
Owner

@⁠sinan-cmyk on GitHub · 2026-11-24 19:20 UTC · original

The victory-shader suites of the measured bundles on Ada (RTX 4070 SUPER)

Result: nothing fails on Ada. This continues @⁠EduBertozzi's Pascal pass above, for the shader bundles in my table.

Head passed / failed
main ffe310e 120 / 0
#1319 643aef6 128 / 0
#1402 2310409 137 / 0
#1492 c1e74a3 160 / 0
#1504 0f3e062 170 / 0
#1511 289f241 185 / 0

Each head was tested as is, with cargo test --locked -p victory-shader --lib. Each one is based on main ffe310e. One test is ignored on every head: the bitcode benchmark, which is opt-in.

The GPU tests ran on hardware:

  • The machine has an RTX 4070 SUPER (Ada, 32-lane waves, driver 32.0.16.1088) and the Ryzen 7800X3D's Radeon iGPU.
  • Host::new creates the device on the default adapter. dxdiag lists the RTX first, because it drives the displays.
  • VICTORY_WARP was not set.
  • Windows 11 25H2, Rust 1.98.1 (pinned).

These results add hardware coverage only. #1492 still loses 31 programs offline because of #98, as posted on #1492. That regression is a coverage gap that these tests do not catch.

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

**@⁠sinan-cmyk** on GitHub · 2026-11-24 19:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7141953394) ### The `victory-shader` suites of the measured bundles on Ada (RTX 4070 SUPER) **Result: nothing fails on Ada.** This continues @⁠EduBertozzi's Pascal pass above, for the shader bundles in my table. | Head | passed / failed | |---|---| | `main` ffe310e | 120 / 0 | | #1319 643aef6 | 128 / 0 | | #1402 2310409 | 137 / 0 | | #1492 c1e74a3 | 160 / 0 | | #1504 0f3e062 | 170 / 0 | | #1511 289f241 | 185 / 0 | Each head was tested as is, with `cargo test --locked -p victory-shader --lib`. Each one is based on `main` ffe310e. One test is ignored on every head: the `bitcode` benchmark, which is opt-in. The GPU tests ran on hardware: - The machine has an RTX 4070 SUPER (Ada, 32-lane waves, driver 32.0.16.1088) and the Ryzen 7800X3D's Radeon iGPU. - `Host::new` creates the device on the default adapter. dxdiag lists the RTX first, because it drives the displays. - `VICTORY_WARP` was not set. - Windows 11 25H2, Rust 1.98.1 (pinned). These results add hardware coverage only. #1492 still loses 31 programs offline because of #98, as posted on #1492. That regression is a coverage gap that these tests do not catch. No game data. AI-assisted (Claude Code).
Author
Owner

@⁠ThomasSAMP on GitHub · 2026-11-24 19:26 UTC · original

Follow-up to this table: 19 more open shader PRs, measured the same way, plus what they cost.

Setup. victory translate --validate --list over the title's files (retail 1.0.2.1), program by program. The 15 PRs that merge cleanly were each merged onto ffe310e and compared with ffe310e. The four that conflict (#699, #309, #586, #383) were measured at their own head against their merge base d2a4bae. Same workflow as above, except for the validator: mine is dxil.dll 1.7.2308 from Windows SDK 10.0.26100.

Why "emitted" and not "validated". With this validator, 15,054 of the 21,898 programs that ffe310e emits fail on PSV0 ("Pipeline State Validation does not match"). Only #1208 changes validation. For every other PR the validated count hides almost everything, so the table counts programs emitted: gained means emitted with the PR and not on the base, lost means the reverse.

PR measured emitted, gained / lost net VS+PS / CS / MS most gained were most lost now
#1208 on ffe310e 0 / 0 0 / 0 / 0 (validated: +15,139, 0 lost; VS+PS 2,692 → 12,243, MS 2,573 → 8,161)
#383 vs d2a4bae +145 / −0 +89 / +27 / +29 81 × a scalar memory read as data
#309 vs d2a4bae +136 / −0 +96 / +39 / +1 42 × a lane mask read as data
#1291 on ffe310e +117 / −0 +117 / 0 / 0 117 × a packed input half no element holds
#1008 on ffe310e +39 / −0 +36 / 0 / +3 39 × a descriptor chosen by control flow
#1280 on ffe310e +25 / −0 +25 / 0 / 0 25 × image_sample_d_cl
#694 on ffe310e +16 / −0 0 / +16 / 0 16 × image_gather4_l
#683 on ffe310e +8 / −0 +8 / 0 / 0 8 × the first half of an interpolation
#1012 on ffe310e +1 / −0 0 / +1 / 0 1 × a descriptor chosen by control flow
#1270 on ffe310e 0 / 0 0 / 0 / 0
#1255 on ffe310e 0 / 0 0 / 0 / 0 (29 × image_sample_d_cl become 27 × "a cube sample with texel coordinates, gradients or a level query")
#655 on ffe310e 0 / 0 0 / 0 / 0 (its 8 × "a conditional export" move to other reasons)
#1176 on ffe310e 0 / 0 0 / 0 / 0 (17 × "a hardware SGPR input" → 14)
#1261, #1300, #1314 on ffe310e 0 / 0 0 / 0 / 0
#1230 on ffe310e +34 / −74 −45 / 0 / +5 20 × the first half of an interpolation 71 × barycentrics read directly
#699 vs d2a4bae +0 / −333 −52 / −253 / −28 227 × a descriptor read only as data
#586 vs d2a4bae +1 / −610 0 / 0 / −609 610 × v_readfirstlane in divergent control flow (175 of them validated on the base)

What it says for review.

  • #699, #586 and #1230 lose programs that emit on their base. Some of these may be correct refusals, if the base was lowering a live missing value as zero, which is what #604, #736 and #1230 are about. But #699 drops 253 compute programs and #586 drops 609 mesh programs. The authors should say which it is before these are merged.
  • #1270 changes nothing on this data. All 288 "a select on an untracked mask" refusals remain. 284 of them are variants of one compute program. In the one I disassembled, the mask is an SGPR reloaded from a VGPR lane: v_readlane_b32 s2, v112, 4, then v_cndmask_b32 v30, 1.0, 0, s2. That looks like the SGPR-spill case #309 and #1074 target, not the uniform-mask case #1270 handles. I haven't checked whether either of them clears these 284. #1270 still has its own synthetic value; it just doesn't reach these.
  • #383, #309 and #1291 gain the most and lose nothing.

Same limits as above: these are offline counts. They do not say whether the output is right; I ran no PR's own tests and rendered nothing. No program names or dumps here, per the asset policy.

AI-assisted (Claude Code, Claude Opus 5.5); no game data.

**@⁠ThomasSAMP** on GitHub · 2026-11-24 19:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7142099361) Follow-up to this table: 19 more open shader PRs, measured the same way, plus what they cost. **Setup.** `victory translate --validate --list` over the title's files (retail 1.0.2.1), program by program. The 15 PRs that merge cleanly were each merged onto `ffe310e` and compared with `ffe310e`. The four that conflict (#699, #309, #586, #383) were measured at their own head against their merge base `d2a4bae`. Same workflow as above, except for the validator: mine is `dxil.dll` 1.7.2308 from Windows SDK 10.0.26100. **Why "emitted" and not "validated".** With this validator, 15,054 of the 21,898 programs that `ffe310e` emits fail on PSV0 ("Pipeline State Validation does not match"). Only #1208 changes validation. For every other PR the validated count hides almost everything, so the table counts programs **emitted**: gained means emitted with the PR and not on the base, lost means the reverse. | PR | measured | emitted, gained / lost | net VS+PS / CS / MS | most gained were | most lost now | |---|---|---|---|---|---| | #1208 | on `ffe310e` | 0 / 0 | 0 / 0 / 0 | (validated: **+15,139, 0 lost**; VS+PS 2,692 → 12,243, MS 2,573 → 8,161) | | | #383 | vs `d2a4bae` | **+145 / −0** | +89 / +27 / +29 | 81 × a scalar memory read as data | | | #309 | vs `d2a4bae` | **+136 / −0** | +96 / +39 / +1 | 42 × a lane mask read as data | | | #1291 | on `ffe310e` | **+117 / −0** | +117 / 0 / 0 | 117 × a packed input half no element holds | | | #1008 | on `ffe310e` | +39 / −0 | +36 / 0 / +3 | 39 × a descriptor chosen by control flow | | | #1280 | on `ffe310e` | +25 / −0 | +25 / 0 / 0 | 25 × image_sample_d_cl | | | #694 | on `ffe310e` | +16 / −0 | 0 / +16 / 0 | 16 × image_gather4_l | | | #683 | on `ffe310e` | +8 / −0 | +8 / 0 / 0 | 8 × the first half of an interpolation | | | #1012 | on `ffe310e` | +1 / −0 | 0 / +1 / 0 | 1 × a descriptor chosen by control flow | | | #1270 | on `ffe310e` | 0 / 0 | 0 / 0 / 0 | | | | #1255 | on `ffe310e` | 0 / 0 | 0 / 0 / 0 | (29 × image_sample_d_cl become 27 × "a cube sample with texel coordinates, gradients or a level query") | | | #655 | on `ffe310e` | 0 / 0 | 0 / 0 / 0 | (its 8 × "a conditional export" move to other reasons) | | | #1176 | on `ffe310e` | 0 / 0 | 0 / 0 / 0 | (17 × "a hardware SGPR input" → 14) | | | #1261, #1300, #1314 | on `ffe310e` | 0 / 0 | 0 / 0 / 0 | | | | #1230 | on `ffe310e` | **+34 / −74** | −45 / 0 / +5 | 20 × the first half of an interpolation | **71 × barycentrics read directly** | | #699 | vs `d2a4bae` | **+0 / −333** | −52 / −253 / −28 | | **227 × a descriptor read only as data** | | #586 | vs `d2a4bae` | **+1 / −610** | 0 / 0 / −609 | | **610 × v_readfirstlane in divergent control flow** (175 of them validated on the base) | **What it says for review.** - **#699, #586 and #1230 lose programs that emit on their base.** Some of these may be correct refusals, if the base was lowering a live missing value as zero, which is what #604, #736 and #1230 are about. But #699 drops 253 compute programs and #586 drops 609 mesh programs. The authors should say which it is before these are merged. - **#1270 changes nothing on this data.** All 288 "a select on an untracked mask" refusals remain. 284 of them are variants of one compute program. In the one I disassembled, the mask is an SGPR reloaded from a VGPR lane: `v_readlane_b32 s2, v112, 4`, then `v_cndmask_b32 v30, 1.0, 0, s2`. That looks like the SGPR-spill case #309 and #1074 target, not the uniform-mask case #1270 handles. I haven't checked whether either of them clears these 284. #1270 still has its own synthetic value; it just doesn't reach these. - **#383, #309 and #1291 gain the most and lose nothing.** Same limits as above: these are offline counts. They do not say whether the output is right; I ran no PR's own tests and rendered nothing. No program names or dumps here, per the asset policy. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

@⁠EduBertozzi on GitHub · 2026-11-24 19:30 UTC · original

The same five bundles on Pascal (GTX 1060 6 GB, 32-lane waves, Windows 10 19045, Agility 1.620.2 via #486), each merged onto main ffe310e with cargo test -p victory-shader --lib. Nothing fails here either:

Bundle head tested here passed / failed
#1319 643aef6 128 / 0
#1402 119b763 (Ada run: 2310409) 137 / 0
#1492 5bbc098 (Ada run: c1e74a3) 159 / 0
#1504 1d41891 (Ada run: 0f3e062) 169 / 0
#1511 ca601f0 (Ada run: 289f241) 184 / 0

Four of the heads have moved since @⁠sinan-cmyk's run, and three of them now hold one test fewer. So between the two passes, every bundle passes on Pascal and Ada at the head each run used. As noted above, this covers hardware only, not the offline regressions.

AI-assisted (Claude Code).

**@⁠EduBertozzi** on GitHub · 2026-11-24 19:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7142202848) The same five bundles on **Pascal** (GTX 1060 6 GB, 32-lane waves, Windows 10 19045, Agility 1.620.2 via #486), each merged onto `main` `ffe310e` with `cargo test -p victory-shader --lib`. Nothing fails here either: | Bundle | head tested here | passed / failed | |---|---|---| | #1319 | `643aef6` | 128 / 0 | | #1402 | `119b763` (Ada run: `2310409`) | 137 / 0 | | #1492 | `5bbc098` (Ada run: `c1e74a3`) | 159 / 0 | | #1504 | `1d41891` (Ada run: `0f3e062`) | 169 / 0 | | #1511 | `ca601f0` (Ada run: `289f241`) | 184 / 0 | Four of the heads have moved since @⁠sinan-cmyk's run, and three of them now hold one test fewer. So between the two passes, every bundle passes on Pascal and Ada at the head each run used. As noted above, this covers hardware only, not the offline regressions. AI-assisted (Claude Code).
Author
Owner

@⁠KainanP on GitHub · 2026-11-24 20:26 UTC · original

A combined branch for the next measurement, if someone with the dump has a slot: KainanP/VIctory@integ/next (0ae381d, based on main ffe310e).

It holds 108 open PRs, heads unchanged, in this order: the [BUNDLE] stack #1319 → #1402 → #1492 → #1504 → #1511 (MamaLeVrai), then #704, #180, #309, #160, the wave64 stack #223 → #233 → #320 → #439, the GPU bundles #1418, #1426, #1439, and #493, #431. The tables above measure each PR alone on main; nobody has measured them together, which is what MamaLeVrai asked for on #1402.

git fetch https://github.com/KainanP/VIctory integ/next && git checkout FETCH_HEAD
victory translate --validate --list   # same shaders.rpf, compared with main ffe310e program by program

What I'd expect to show up, so it can be checked rather than assumed:

  • #98 is inside #1492, so its 29 lost compute programs (zed6000's measurement above) should appear as losses here too.
  • #309 overlaps the bundle stack: one of its idioms (a lane mask spilled to a VGPR lane) already translates on the stack without it, so its +125 should shrink.
  • #180 and #160 needed hand fixes to work together (the bias position and level clamp from r4tedx's note on #160, and a TiledResources flag that validator 1.8 asks for when a compute module samples with a clamp).

Every conflict and every change git did not flag is described in its merge commit; INTEGRATION.md on the branch lists the PRs, authors and heads.

Tested here, no game data: Windows 11, RTX 4060 Laptop (32-lane waves) and WARP. cargo test --workspace: 552 passed, 0 failed on the RTX; 560 with --all-features; clippy and xtask policy clean. On WARP the only failure is #1084's v_cndmask_on_an_untracked_mask_tests_this_lanes_bit, a test-harness issue with VICTORY_WARP=1, not a translation one.

AI use: Claude Code (Claude Opus 5.5) resolved the merges, ran the validation and wrote this; reviewed by the user before posting.

**@⁠KainanP** on GitHub · 2026-11-24 20:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7143549142) A combined branch for the next measurement, if someone with the dump has a slot: [`KainanP/VIctory@integ/next`](https://github.com/KainanP/VIctory/tree/integ/next) (`0ae381d`, based on `main` `ffe310e`). It holds 108 open PRs, heads unchanged, in this order: the [BUNDLE] stack #1319 → #1402 → #1492 → #1504 → #1511 (MamaLeVrai), then #704, #180, #309, #160, the wave64 stack #223 → #233 → #320 → #439, the GPU bundles #1418, #1426, #1439, and #493, #431. The tables above measure each PR alone on `main`; nobody has measured them together, which is what MamaLeVrai asked for on #1402. ``` git fetch https://github.com/KainanP/VIctory integ/next && git checkout FETCH_HEAD victory translate --validate --list # same shaders.rpf, compared with main ffe310e program by program ``` What I'd expect to show up, so it can be checked rather than assumed: - **#98 is inside #1492**, so its 29 lost compute programs (zed6000's measurement above) should appear as losses here too. - **#309 overlaps the bundle stack**: one of its idioms (a lane mask spilled to a VGPR lane) already translates on the stack without it, so its +125 should shrink. - #180 and #160 needed hand fixes to work together (the bias position and level clamp from r4tedx's note on #160, and a TiledResources flag that validator 1.8 asks for when a compute module samples with a clamp). Every conflict and every change git did not flag is described in its merge commit; `INTEGRATION.md` on the branch lists the PRs, authors and heads. Tested here, no game data: Windows 11, RTX 4060 Laptop (32-lane waves) and WARP. `cargo test --workspace`: 552 passed, 0 failed on the RTX; 560 with `--all-features`; clippy and `xtask policy` clean. On WARP the only failure is #1084's `v_cndmask_on_an_untracked_mask_tests_this_lanes_bit`, a test-harness issue with `VICTORY_WARP=1`, not a translation one. _AI use: Claude Code (Claude Opus 5.5) resolved the merges, ran the validation and wrote this; reviewed by the user before posting._
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-24 20:41 UTC · original

KainanP: thank you for building the combined branch and for writing down what it should show. Two facts that change what to expect from it:

  • #98 is no longer in #1492. The head of #1492 is 5bbc098 since 19:23 UTC and does not contain #98 (I checked that its head is not an ancestor of the branch): sinan-cmyk's measurement on #1402 showed it loses 31 programs, so I took it out. A tree built from the earlier head of #1492 still has it.
  • #704 on the #1319 to #1511 stack is #1644 (branch bundle/stride-stack, #193 comes with #704's branch). Its only conflict with the stack is the tests at the end of emit/mod.rs (both sets kept), plus a stride_table field that two test literals of the stack need; clippy (both runs) and 412 tests pass there. I tried #160 on the same stack and it conflicts in 13 hunks (emit/lower.rs 10, gfx10/fields.rs 2, emit/host.rs 1), so your hand fixes for it are the part I did not find a mechanical way for.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-24 20:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7143922886) KainanP: thank you for building the combined branch and for writing down what it should show. Two facts that change what to expect from it: - **#98 is no longer in #1492.** The head of #1492 is `5bbc098` since 19:23 UTC and does not contain #98 (I checked that its head is not an ancestor of the branch): sinan-cmyk's measurement on #1402 showed it loses 31 programs, so I took it out. A tree built from the earlier head of #1492 still has it. - **#704 on the #1319 to #1511 stack is #1644** (branch `bundle/stride-stack`, #193 comes with #704's branch). Its only conflict with the stack is the tests at the end of `emit/mod.rs` (both sets kept), plus a `stride_table` field that two test literals of the stack need; clippy (both runs) and 412 tests pass there. I tried #160 on the same stack and it conflicts in 13 hunks (`emit/lower.rs` 10, `gfx10/fields.rs` 2, `emit/host.rs` 1), so your hand fixes for it are the part I did not find a mechanical way for. AI-assisted (Claude Code); no game data.
Author
Owner

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

@⁠MamaLeVrai thanks for the correction: my snapshot of the bundle heads was older than 5bbc098, so both my note on #1492 and integ/next (0ae381d) still carry #98. I'm rebuilding the branch on the current heads (#1511 ca601f0) and will say here when it's up; until then, a measurement of 0ae381d would include #98's losses.

On #160: the 13 hunks are resolved in the merge commit f895638d on that branch, with each hunk described in its message (the bundle's #306 a16 layout kept as the base, #160's offset/compare/gather/_cl forms ported onto it, the duplicate cube_gradient, image_get_lod on cubes restored to the bundle's behaviour, and a TiledResources flag that validator 1.8 requires when a compute module samples with a level clamp). #160's own texel_offsets_and_levels_sample_the_texels_they_name passes for every form on an RTX 4060 on that commit. If it helps, the commit can be cherry-picked onto your stack as a starting point once #180 is there too (two of the fixes are the #180/#160 interaction from r4tedx's note).

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-24 21:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7144592296) @⁠MamaLeVrai thanks for the correction: my snapshot of the bundle heads was older than `5bbc098`, so both my note on #1492 and `integ/next` (`0ae381d`) still carry #98. I'm rebuilding the branch on the current heads (#1511 `ca601f0`) and will say here when it's up; until then, a measurement of `0ae381d` would include #98's losses. On #160: the 13 hunks are resolved in the merge commit `f895638d` on that branch, with each hunk described in its message (the bundle's #306 a16 layout kept as the base, #160's offset/compare/gather/`_cl` forms ported onto it, the duplicate `cube_gradient`, `image_get_lod` on cubes restored to the bundle's behaviour, and a TiledResources flag that validator 1.8 requires when a compute module samples with a level clamp). #160's own `texel_offsets_and_levels_sample_the_texels_they_name` passes for every form on an RTX 4060 on that commit. If it helps, the commit can be cherry-picked onto your stack as a starting point once #180 is there too (two of the fixes are the #180/#160 interaction from r4tedx's note). _AI use: Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠zed6000 on GitHub · 2026-11-24 21:16 UTC · original

@⁠KainanP I measured integ/next at 0ae381d before your rebuild, with the same method as the table above: shaders.rpf 1.0.2.1, dxil.dll 1.8.2502, compared program by program with main ffe310e.

Result: 24,854 programs validate, against 21,724 on main: +3,130, with 0 lost.

Build Validated Change vs main Lost
main ffe310e 21,724
#1402 at 2310409 23,412 +1,688 0
integ/next 0ae381d 24,854 +3,130 0
  • #98's losses don't show up, even though #98 is in this tree. All 29 compute programs that #98 alone stops translating validate on 0ae381d, so something else in the branch makes up for it. So your rebuild without #98 shouldn't change this count for those programs. My guess is the wave64 stack, but I haven't checked.
  • #309: all 125 programs it gains alone validate on the branch. Whether #309 is still needed for them would take a build without it.
  • One caveat on the totals: 0ae381d lists 14,233 vertex/pixel programs, against 14,027 on main. The "0 lost" comparison doesn't depend on that, but the totals aren't over exactly the same set.
  • #437 adds 34 programs that integ/next doesn't have. #437 ("preserve raw scalar buffer loads", +856 alone on main) isn't in the branch. Those 34 fail there with "a descriptor read only as data" (18), "a lane mask read as data" (15) and "a descriptor's address or format read as data" (1). On a stack with #1065, #437's extra compute programs also pass the validator. Without #1065, 638 of them fail with "incompatible with the shader stage", so the two belong together.
  • Tests on AMD: cargo test -p victory-shader --lib on 0ae381d gives 243 passed, 0 failed on an RX 7900 XTX (RDNA3, which runs 64-lane waves natively). Together with the Pascal and Ada passes above, that covers all three GPU families.

After your rebuild on ca601f0 is up, I'll measure it the same way, with and without #437 + #1065 on top.

Offline translation and validation counts only. No program names or data, per the asset policy.

**@⁠zed6000** on GitHub · 2026-11-24 21:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7144707280) @⁠KainanP I measured `integ/next` at `0ae381d` before your rebuild, with the same method as the table above: `shaders.rpf` 1.0.2.1, dxil.dll 1.8.2502, compared program by program with main `ffe310e`. **Result: 24,854 programs validate, against 21,724 on main: +3,130, with 0 lost.** | Build | Validated | Change vs main | Lost | |---|---|---|---| | main `ffe310e` | 21,724 | | | | #1402 at `2310409` | 23,412 | +1,688 | 0 | | `integ/next` `0ae381d` | **24,854** | **+3,130** | **0** | - **#98's losses don't show up**, even though #98 is in this tree. All 29 compute programs that #98 alone stops translating validate on `0ae381d`, so something else in the branch makes up for it. So your rebuild without #98 shouldn't change this count for those programs. My guess is the wave64 stack, but I haven't checked. - **#309:** all 125 programs it gains alone validate on the branch. Whether #309 is still needed for them would take a build without it. - **One caveat on the totals:** `0ae381d` lists 14,233 vertex/pixel programs, against 14,027 on main. The "0 lost" comparison doesn't depend on that, but the totals aren't over exactly the same set. - **#437 adds 34 programs that `integ/next` doesn't have.** #437 ("preserve raw scalar buffer loads", +856 alone on main) isn't in the branch. Those 34 fail there with "a descriptor read only as data" (18), "a lane mask read as data" (15) and "a descriptor's address or format read as data" (1). On a stack with #1065, #437's extra compute programs also pass the validator. Without #1065, 638 of them fail with "incompatible with the shader stage", so the two belong together. - **Tests on AMD:** `cargo test -p victory-shader --lib` on `0ae381d` gives **243 passed, 0 failed** on an RX 7900 XTX (RDNA3, which runs 64-lane waves natively). Together with the Pascal and Ada passes above, that covers all three GPU families. After your rebuild on `ca601f0` is up, I'll measure it the same way, with and without #437 + #1065 on top. Offline translation and validation counts only. No program names or data, per the asset policy.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-24 21:20 UTC · original

Final batch: the remaining 158 open shader PRs, and a summary of all 261

This completes the benchmark of every open PR that touched crates/victory-shader when I started (261 in all). The method is unchanged: each PR merged onto main ffe310e (where it conflicts, measured at its head against its merge base), then victory translate --validate --list on shaders.rpf 1.0.2.1 with dxil.dll 1.8.2502, compared with main program by program. Every PR built.

Thanks to @⁠EduBertozzi (Pascal) and @⁠sinan-cmyk (Ada) for the test passes, to @⁠sinan-cmyk, @⁠ThomasSAMP and @⁠MamaLeVrai for the bundle and extra-PR measurements, and to @⁠KainanP for integ/next. The combined-branch numbers are in my reply above.

Regressions (validate on the baseline, fail with the PR)

PR Lost / gained Lost to Note
#586 −592 / +1 "v_readfirstlane in divergent control flow" (all mesh) matches iurysf's and ThomasSAMP's numbers
#699 −323 / 0 "a descriptor read only as data" 227, "a scalar memory read as data" 26, "a structured buffer of unknown stride" 23 matches iurysf's numbers; the same breakdown as #612 in #736
#1101 −76 / +323 "a descriptor neither loaded nor built" 58, ... details on #1101: the +323 are #736's programs, and the branch is a broad rollback
#1076 −5 / +230 "LDS the program does not allocate" (mesh) details on #1076
#1230 −2 / +42 "barycentrics read directly" already noted by pablogonz12

Two PRs showed −1 / +1, #587 and #1052. That is run-to-run noise: #1052 only adds a test. Which copy of a duplicated container a run keeps depends on thread timing, so one listed program can swap between runs.

Gains in this batch ("unique" = gained by no other PR measured)

PR Gained Overlap
#437 +856 48 unique. With #1065, its extra compute programs also pass the validator (otherwise 638 fail with "incompatible with the shader stage")
#705, #1127 +520 each the same 520 as #305 and #539
#1198 +334 265 overlap #437 and 275 overlap #180; 24 unique
#1130 +240 all within #1067 and #180
#1208 +85 all within #306 (36 of them also #1022)
#1007 +77 identical to #160
#1227 +47 41 unique
#458, #569, #1022, #1245 +36 each all within #306
#1257 +34 identical to #298 (it is stacked on it)
#645 +32 26 unique
#1099 +28 includes #683's 8
#563, #694 +25, +16 within #160
#1065, #1237 +24 each the same 24
#571, #632 +16, +14 within #996
#599, #995, #439 +15, +15, +12 #995 within #953
#683, #1231, #573, #1225, #457, #1221, #498, #499, #576, #1012, #1014 +8 to +1

Moves programs to a later failure, no net gain: #655, #947, #978, #999, #1013, #1176, #1255.

No change on this data (expected for correctness-only fixes, tests, GPU-side and non-shader changes): #422, #426, #434, #438, #447, #452, #456, #465, #470, #477, #483, #486, #502, #511, #517, #521, #523, #524, #526, #534, #542, #551, #568, #584, #596, #605, #606, #608, #617, #627, #628, #646, #650, #659, #660, #661, #664, #667, #668, #672, #673, #682, #684, #697, #707, #709, #710, #925, #926, #946, #955, #961, #969, #984, #990, #994, #1002, #1004, #1005, #1015, #1017, #1021, #1033, #1042, #1043, #1045, #1046, #1048, #1050, #1053, #1055, #1057, #1066, #1077, #1081, #1088, #1090, #1095, #1106, #1108, #1112, #1114, #1133, #1136, #1138, #1142, #1144, #1145, #1148, #1149, #1164, #1170, #1175, #1180, #1182, #1183, #1185, #1190, #1195, #1197, #1202, #1209, #1211, #1223, #1229, #1244, #1253, #1256.

Across all 261 PRs

  • 2,287 programs are gained by at least one PR individually. Main validates 21,724.
  • Combined: integ/next 0ae381d reaches 24,854 (+3,130, 0 lost). A 6-PR stack of #437, #305, #621, #704, #298 and #1065 reaches 24,053 (+2,329, 0 lost), of which 34 programs are missing from integ/next, all from #437. #437, #1065, #704 and #298 each conflict with #1402 (in emit/lower.rs, emit/mod.rs, emit/container.rs and emit/shader.rs).
  • Unique contributors worth keeping in a bundle: #180 (82 unique), #309 (61), #437 (48), #1227 (41), #645 (26), #1198 (24).
  • Tests on AMD: cargo test -p victory-shader --lib passes on an RX 7900 XTX (RDNA3) for all 38 PRs that change programs here, for the stacks, and for integ/next (243 passed). The one exception is #101: its test calls resource::track with 3 arguments, but main's has 4, so it needs a rebase. Its twin #116 passes.

Two scope notes from reading the diffs (not measurement results):

  • #1043's commit f23c493 adds a VICTORY_PATCH hook that patches the loaded image. That is unrelated to its title. The hook ignores its module field and only bounds-checks the start offset, so a long patch panics.
  • #699 also carries a workspace-wide cargo fmt and a WinRT speech module.

Offline translation and validation counts only; they don't show the output is correct. No program names or data, per the asset policy.

**@⁠zed6000** on GitHub · 2026-11-24 21:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7144807568) ### Final batch: the remaining 158 open shader PRs, and a summary of all 261 This completes the benchmark of every open PR that touched `crates/victory-shader` when I started (261 in all). The method is unchanged: each PR merged onto main `ffe310e` (where it conflicts, measured at its head against its merge base), then `victory translate --validate --list` on `shaders.rpf` 1.0.2.1 with dxil.dll 1.8.2502, compared with main program by program. Every PR built. Thanks to @⁠EduBertozzi (Pascal) and @⁠sinan-cmyk (Ada) for the test passes, to @⁠sinan-cmyk, @⁠ThomasSAMP and @⁠MamaLeVrai for the bundle and extra-PR measurements, and to @⁠KainanP for `integ/next`. The combined-branch numbers are in my reply above. **Regressions** (validate on the baseline, fail with the PR) | PR | Lost / gained | Lost to | Note | |---|---|---|---| | #586 | −592 / +1 | "v_readfirstlane in divergent control flow" (all mesh) | matches iurysf's and ThomasSAMP's numbers | | #699 | −323 / 0 | "a descriptor read only as data" 227, "a scalar memory read as data" 26, "a structured buffer of unknown stride" 23 | matches iurysf's numbers; the same breakdown as #612 in #736 | | #1101 | −76 / +323 | "a descriptor neither loaded nor built" 58, ... | details on #1101: the +323 are #736's programs, and the branch is a broad rollback | | #1076 | −5 / +230 | "LDS the program does not allocate" (mesh) | details on #1076 | | #1230 | −2 / +42 | "barycentrics read directly" | already noted by pablogonz12 | Two PRs showed −1 / +1, #587 and #1052. That is run-to-run noise: #1052 only adds a test. Which copy of a duplicated container a run keeps depends on thread timing, so one listed program can swap between runs. **Gains in this batch** ("unique" = gained by no other PR measured) | PR | Gained | Overlap | |---|---|---| | #437 | **+856** | 48 unique. With #1065, its extra compute programs also pass the validator (otherwise 638 fail with "incompatible with the shader stage") | | #705, #1127 | +520 each | the same 520 as #305 and #539 | | #1198 | +334 | 265 overlap #437 and 275 overlap #180; 24 unique | | #1130 | +240 | all within #1067 and #180 | | #1208 | +85 | all within #306 (36 of them also #1022) | | #1007 | +77 | identical to #160 | | #1227 | +47 | 41 unique | | #458, #569, #1022, #1245 | +36 each | all within #306 | | #1257 | +34 | identical to #298 (it is stacked on it) | | #645 | +32 | 26 unique | | #1099 | +28 | includes #683's 8 | | #563, #694 | +25, +16 | within #160 | | #1065, #1237 | +24 each | the same 24 | | #571, #632 | +16, +14 | within #996 | | #599, #995, #439 | +15, +15, +12 | #995 within #953 | | #683, #1231, #573, #1225, #457, #1221, #498, #499, #576, #1012, #1014 | +8 to +1 | | **Moves programs to a later failure, no net gain:** #655, #947, #978, #999, #1013, #1176, #1255. **No change** on this data (expected for correctness-only fixes, tests, GPU-side and non-shader changes): #422, #426, #434, #438, #447, #452, #456, #465, #470, #477, #483, #486, #502, #511, #517, #521, #523, #524, #526, #534, #542, #551, #568, #584, #596, #605, #606, #608, #617, #627, #628, #646, #650, #659, #660, #661, #664, #667, #668, #672, #673, #682, #684, #697, #707, #709, #710, #925, #926, #946, #955, #961, #969, #984, #990, #994, #1002, #1004, #1005, #1015, #1017, #1021, #1033, #1042, #1043, #1045, #1046, #1048, #1050, #1053, #1055, #1057, #1066, #1077, #1081, #1088, #1090, #1095, #1106, #1108, #1112, #1114, #1133, #1136, #1138, #1142, #1144, #1145, #1148, #1149, #1164, #1170, #1175, #1180, #1182, #1183, #1185, #1190, #1195, #1197, #1202, #1209, #1211, #1223, #1229, #1244, #1253, #1256. ### Across all 261 PRs - **2,287 programs** are gained by at least one PR individually. Main validates 21,724. - **Combined:** `integ/next` `0ae381d` reaches 24,854 (+3,130, 0 lost). A 6-PR stack of #437, #305, #621, #704, #298 and #1065 reaches 24,053 (+2,329, 0 lost), of which 34 programs are missing from `integ/next`, all from #437. #437, #1065, #704 and #298 each conflict with #1402 (in `emit/lower.rs`, `emit/mod.rs`, `emit/container.rs` and `emit/shader.rs`). - **Unique contributors worth keeping in a bundle:** #180 (82 unique), #309 (61), #437 (48), #1227 (41), #645 (26), #1198 (24). - **Tests on AMD:** `cargo test -p victory-shader --lib` passes on an RX 7900 XTX (RDNA3) for all 38 PRs that change programs here, for the stacks, and for `integ/next` (243 passed). The one exception is #101: its test calls `resource::track` with 3 arguments, but main's has 4, so it needs a rebase. Its twin #116 passes. **Two scope notes from reading the diffs** (not measurement results): - #1043's commit `f23c493` adds a `VICTORY_PATCH` hook that patches the loaded image. That is unrelated to its title. The hook ignores its `module` field and only bounds-checks the start offset, so a long patch panics. - #699 also carries a workspace-wide `cargo fmt` and a WinRT speech module. Offline translation and validation counts only; they don't show the output is correct. No program names or data, per the asset policy.
Author
Owner

@⁠sinan-cmyk on GitHub · 2026-11-24 21:29 UTC · original · edited 2026-11-25 02:56 UTC

Index of my dump measurements (one table instead of the separate comments)

All counts: victory translate --validate --list on shaders.rpf (1.0.2.1), dxil.dll 1.8.2502.11, 25,889 programs, compared program by program. main is ffe310e (21,724 validated). "Ada" means cargo test --locked -p victory-shader --lib on an RTX 4070 SUPER. Each PR links to its full comment.

PRs that gain programs on main

PR Gained Lost Main reason Overlap
#1127 +520 0 64-bit image atomic same 520 as #1467 and #305 (in #1402)
#1467 +520 0 64-bit image atomic same 520 as #1127 and #305 (in #1402)
#1130 +240 0 descriptor read only as data all in #1402 (#1067)
#1399 +195 0 SGPR address no root parameter none in #1402; only PR that clears this reason
#1291 +117 0 packed input half all in #1402 (#176)
#1409 +24 0 validator: entry function incompatible all in #1402
#995 +15 0 scalar memory read as data all in #1319
#1433 +12 0 mixed 5 in #1402, 7 new; moves 658 programs on
#1221 +2 0 select on an untracked mask both in #1319

Every gain in this table except #1399's and 7 of #1433's is already among #1402's or #1319's gains.

Duplicates (same program sets)

Set PRs
520 programs, 64-bit image atomics #305, #539 (from #1247), #1127, #1467
117 programs, packed input half #176, #621, #592 (from #1247), #1291

Review can pick within each set on correctness and test coverage alone.

No count change on main (45 PRs, 0 gained, 0 lost)

#1336, #1393, #1407, #1412, #1423, #1270, #1397, #1550, #1545, #1540, #1536, #1534, #1524, #1519, #1516, #1554, #1501, #1493, #1491, #1489, #1488, #1486, #1485, #1483, #1480, #1478, #1477, #1476, #1474, #1473, #1471, #1469, #1462, #1460, #1443, #1441, #1437, #1420, #1417, #1416, #1408, #1404, #1398, #1395, #1391

Programs that still fail but move on to a later reason: #1423 219 move on to "descriptor read only as data"; #1491 61 move on to "scalar memory read as data"; #1550 15 move on to "scalar memory read as data"; #1407 5 move on; #1420 5 move on; #1501 1 moves on.

Test failures on Ada

All other PRs above pass on Ada.

PR Test Hardware WARP Cause
#1554 v_mad_f32_flushes_subnormals_around_omod fails fails typo in the new test's vector; one-line fix posted
#1493 immediate_sampler_used_with_and_without_comparison_validates_and_runs fails (0.5 vs 1.0) passes NVIDIA only
#1489 image_gather4_c_lz_and_offset_match_rdna2 fails (raw texels) passes NVIDIA only

Stacked results

PR Base Gained Lost Note
#1423 #1402 +214 0 gained 0 on main; needs #1067
#1407 #1402 +1 0 clean merge
#1221 #1402 0 0 costs 1 program together with #1423
#1291 #1402 0 0
#1130 #1402 0 0 the 72 validator errors seen on main are gone
#1409 #1402 0 0 contradicts #1015's heap-descriptor test

Bundles

PR Base Gained Lost Note
#1319 main +285 0
#1402 main +1,688 0 +1,403 over #1319; the four PRs gain more stacked than alone
#1492 #1402 0 0 lost 31 while #98 was inside (first measurement)
#1504 #1492 +226 0 computed barycentrics
#1511 #1504 0 0 robustness only
#1638 #1402 +226 0 the #1504 set
#1632 #1402 +227 0 the #1504 set plus #1407's one

Runtime boot checks to the first menus, no input: #1456, #1363, #1368, #1386, #1389, #1358, #1439, #1418, #1426, #1542, #1521. All boot like main, with no crashes.log entries. #1426 and #1542 drop two refused 2560×1440 targets instead of failing them.

Update 2026-11-25

main moved to 940d32f (319 commits since ffe310e). Counts above are against ffe310e unless stated. On the new main: 23,918 validated.

  • Regression on main, already reported (#1973, #1987): 867 vertex programs fail with "Flags must match usage" since cd94d35. My independent bisect gives the same commit (868 at cd94d35, 0 at its parent). #1977 and #1989 each restore exactly those 867, the same set, 0 lost.
  • #1587 on 940d32f: −138, all refused on purpose as "a lane mask holding lanes elsewhere read as data" (its #1498 soundness check). 691 programs that main emits invalid are refused cleanly instead.
  • #1333 on ffe310e: +310, 0 lost, of which 15 are new. Two of its own tests fail off by one, on hardware, on WARP and at its head alone. (Now closed.)
  • More PRs with no count change on ffe310e, Ada tests passing: #1387, #1371, #1370, #1366, #1359, #1355, #1342, #1341, #1340, #1339, #1338, #1337, #1327, #1328, #1663, #1662.
  • #995 stacked: 0/0 on #1402. With #1597 it cost 21 programs until #1597's fix cc7d30a.
  • My #1597 was closed by triage: main proves dead edges instead of zero-filling them. Against 940d32f, main validates 1,782 of the 2,183 programs #1597 added over ffe310e. Of the other 401, 365 are emitted but rejected by the validator on main, and 36 are refused. details
  • My #1541 (list-diff) is rebased onto 940d32f and mergeable.

My own PRs

  • #1541: victory list-diff <before> <after>, the program-by-program comparison used for all of the above.
  • #1597: hidden descriptor words at joins with data, stacked on #1402. +494 over #1402, 0 lost (latest). Analysis of the reason it targets: #1376.

AI-assisted (Claude Code). No shader names or data, per the asset policy.

**@⁠sinan-cmyk** on GitHub · 2026-11-24 21:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7144997215) · edited 2026-11-25 02:56 UTC ### Index of my dump measurements (one table instead of the separate comments) All counts: `victory translate --validate --list` on `shaders.rpf` (1.0.2.1), dxil.dll 1.8.2502.11, 25,889 programs, compared program by program. `main` is ffe310e (21,724 validated). "Ada" means `cargo test --locked -p victory-shader --lib` on an RTX 4070 SUPER. Each PR links to its full comment. #### PRs that gain programs on `main` | PR | Gained | Lost | Main reason | Overlap | |---|---|---|---|---| | [#1127](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1127) | +520 | 0 | 64-bit image atomic | same 520 as #1467 and #305 (in #1402) | | [#1467](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1467) | +520 | 0 | 64-bit image atomic | same 520 as #1127 and #305 (in #1402) | | [#1130](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1130) | +240 | 0 | descriptor read only as data | all in #1402 (#1067) | | [#1399](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1399) | +195 | 0 | SGPR address no root parameter | none in #1402; only PR that clears this reason | | [#1291](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1291) | +117 | 0 | packed input half | all in #1402 (#176) | | [#1409](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1409) | +24 | 0 | validator: entry function incompatible | all in #1402 | | [#995](https://git.gtahub.st/github/Marvisak--VIctory/pulls/995) | +15 | 0 | scalar memory read as data | all in #1319 | | [#1433](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1433) | +12 | 0 | mixed | 5 in #1402, 7 new; moves 658 programs on | | [#1221](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1221) | +2 | 0 | select on an untracked mask | both in #1319 | Every gain in this table except #1399's and 7 of #1433's is already among #1402's or #1319's gains. #### Duplicates (same program sets) | Set | PRs | |---|---| | 520 programs, 64-bit image atomics | #305, #539 (from #1247), [#1127](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1127), [#1467](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1467) | | 117 programs, packed input half | #176, #621, #592 (from #1247), [#1291](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1291) | Review can pick within each set on correctness and test coverage alone. #### No count change on `main` (45 PRs, 0 gained, 0 lost) [#1336](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1336), [#1393](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1393), [#1407](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1407), [#1412](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1412), [#1423](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1423), [#1270](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1270), [#1397](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1397), [#1550](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1550), [#1545](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1545), [#1540](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1540), [#1536](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1536), [#1534](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1534), [#1524](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1524), [#1519](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1519), [#1516](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1516), [#1554](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1554), [#1501](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1501), [#1493](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1493), [#1491](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1491), [#1489](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1489), [#1488](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1488), [#1486](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1486), [#1485](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1485), [#1483](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1483), [#1480](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1480), [#1478](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1478), [#1477](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1477), [#1476](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1476), [#1474](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1474), [#1473](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1473), [#1471](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1471), [#1469](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1469), [#1462](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1462), [#1460](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1460), [#1443](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1443), [#1441](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1441), [#1437](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1437), [#1420](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1420), [#1417](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1417), [#1416](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1416), [#1408](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1408), [#1404](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1404), [#1398](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1398), [#1395](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1395), [#1391](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1391) Programs that still fail but move on to a later reason: [#1423](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1423) 219 move on to "descriptor read only as data"; [#1491](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1491) 61 move on to "scalar memory read as data"; [#1550](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1550) 15 move on to "scalar memory read as data"; [#1407](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1407) 5 move on; [#1420](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1420) 5 move on; [#1501](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1501) 1 moves on. #### Test failures on Ada All other PRs above pass on Ada. | PR | Test | Hardware | WARP | Cause | |---|---|---|---|---| | [#1554](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1554) | `v_mad_f32_flushes_subnormals_around_omod` | fails | fails | typo in the new test's vector; one-line fix posted | | [#1493](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1493) | `immediate_sampler_used_with_and_without_comparison_validates_and_runs` | fails (0.5 vs 1.0) | passes | NVIDIA only | | [#1489](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1489) | `image_gather4_c_lz_and_offset_match_rdna2` | fails (raw texels) | passes | NVIDIA only | #### Stacked results | PR | Base | Gained | Lost | Note | |---|---|---|---|---| | [#1423](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1423) | #1402 | **+214** | 0 | gained 0 on `main`; needs #1067 | | [#1407](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1402) | #1402 | +1 | 0 | clean merge | | [#1221](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1221) | #1402 | 0 | 0 | costs 1 program together with #1423 | | [#1291](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1291) | #1402 | 0 | 0 | | | [#1130](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1130) | #1402 | 0 | 0 | the 72 validator errors seen on `main` are gone | | [#1409](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1409) | #1402 | 0 | 0 | contradicts #1015's heap-descriptor test | #### Bundles | PR | Base | Gained | Lost | Note | |---|---|---|---|---| | [#1319](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1319) | `main` | +285 | 0 | | | [#1402](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1402) | `main` | +1,688 | 0 | +1,403 over #1319; the four PRs gain more stacked than alone | | [#1492](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1492) | #1402 | 0 | **0** | lost 31 while #98 was inside ([first measurement](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1492)) | | [#1504](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1504) | #1492 | +226 | 0 | computed barycentrics | | [#1511](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1511) | #1504 | 0 | 0 | robustness only | | [#1638](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1638) | #1402 | +226 | 0 | the #1504 set | | [#1632](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1632) | #1402 | +227 | 0 | the #1504 set plus #1407's one | Runtime boot checks to the first menus, no input: [#1456](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1456), [#1363](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1363), [#1368](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1368), [#1386](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1386), [#1389](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1389), [#1358](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1358), [#1439](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1439), [#1418](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1418), [#1426](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1426), [#1542](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1542), [#1521](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1521). All boot like `main`, with no `crashes.log` entries. #1426 and #1542 drop two refused 2560×1440 targets instead of failing them. #### Update 2026-11-25 **`main` moved to 940d32f (319 commits since ffe310e).** Counts above are against ffe310e unless stated. On the new `main`: 23,918 validated. - **Regression on `main`, already reported (#1973, #1987):** 867 vertex programs fail with "Flags must match usage" since cd94d35. My independent bisect gives the same commit (868 at cd94d35, 0 at its parent). [#1977](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1977) and #1989 each restore exactly those 867, the same set, 0 lost. - **[#1587](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1587) on 940d32f:** −138, all refused on purpose as "a lane mask holding lanes elsewhere read as data" (its #1498 soundness check). 691 programs that `main` emits invalid are refused cleanly instead. - **[#1333](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1333) on ffe310e:** +310, 0 lost, of which 15 are new. Two of its own tests fail off by one, on hardware, on WARP and at its head alone. (Now closed.) - **More PRs with no count change on ffe310e, Ada tests passing:** #1387, #1371, #1370, #1366, #1359, #1355, #1342, #1341, #1340, #1339, #1338, #1337, #1327, #1328, #1663, #1662. - **#995 stacked:** 0/0 on #1402. With #1597 it cost 21 programs until #1597's fix cc7d30a. - **My #1597 was closed by triage:** `main` proves dead edges instead of zero-filling them. Against 940d32f, `main` validates 1,782 of the 2,183 programs #1597 added over ffe310e. Of the other 401, 365 are emitted but rejected by the validator on `main`, and 36 are refused. [details](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1597) - **My #1541 (`list-diff`)** is rebased onto 940d32f and mergeable. #### My own PRs - #1541: `victory list-diff <before> <after>`, the program-by-program comparison used for all of the above. - #1597: hidden descriptor words at joins with data, stacked on #1402. **+494 over #1402, 0 lost** ([latest](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1597)). Analysis of the reason it targets: [#1376](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1376). AI-assisted (Claude Code). No shader names or data, per the asset policy.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-24 22:02 UTC · original

main moved to 70564ae: most measured gains have landed

Main moved from ffe310e (the base of every table above) to 70564ae. Same method: victory translate --validate --list on shaders.rpf 1.0.2.1, dxil.dll 1.8.2502, compared program by program.

Vertex/pixel Compute Mesh Validated
ffe310e 12,155 1,417 8,152 21,724
70564ae 14,205 1,886 8,694 24,785 (+3,061, 0 lost)
70564ae + #1065 (rebased) 14,205 2,621 8,694 25,520 (+735)

cargo test -p victory-shader --lib on 70564ae gives 209 passed and 0 failed on an RX 7900 XTX.

What this means for the open PRs. For almost every PR that gained programs in the tables above, 85–100% of those programs now validate on 70564ae as well. That includes #305 / #539 / #705 / #1127, #953, #1067, #437, #1198, #453, #306, #176 / #621 / #592, #160, #193 / #704, #298, #309 and #383. Their counts against ffe310e should now be read as already covered by main. What a PR still adds has to be measured on 70564ae.

What still fails on 70564ae

Programs Reason Open PR that addresses it
735 (compute) validator: "Entry function performs some operation that is incompatible with the shader stage" #1065 clears all 735, but it conflicts with 70564ae in two hunks. The resolution and the measurement are on #1065
195 "an address in an SGPR that is no root parameter" #1399 (sinan-cmyk measured +195 on ffe310e). It conflicts with 70564ae in 9 files, so I couldn't measure it there
71 validator: mesh output size greater than 32768 none
40 "a register joining a lane mask and data, read as data" none found
36 "a descriptor read only as data" #1067, #180, #437 and #1198 each fixed these on ffe310e; they need a rebase
22 other (lane masks, v_cvt_f32_f64, barycentrics, ...)

#1409 and #1237, which target the same validator error as #1065, also conflict with 70564ae.

Counts are offline only. No program names or data, per the asset policy.

**@⁠zed6000** on GitHub · 2026-11-24 22:02 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7145720333) ### main moved to `70564ae`: most measured gains have landed Main moved from `ffe310e` (the base of every table above) to `70564ae`. Same method: `victory translate --validate --list` on `shaders.rpf` 1.0.2.1, dxil.dll 1.8.2502, compared program by program. | | Vertex/pixel | Compute | Mesh | **Validated** | |---|---|---|---|---| | `ffe310e` | 12,155 | 1,417 | 8,152 | 21,724 | | **`70564ae`** | 14,205 | 1,886 | 8,694 | **24,785 (+3,061, 0 lost)** | | `70564ae` + #1065 (rebased) | 14,205 | **2,621** | 8,694 | **25,520 (+735)** | `cargo test -p victory-shader --lib` on `70564ae` gives 209 passed and 0 failed on an RX 7900 XTX. **What this means for the open PRs.** For almost every PR that gained programs in the tables above, 85–100% of those programs now validate on `70564ae` as well. That includes #305 / #539 / #705 / #1127, #953, #1067, #437, #1198, #453, #306, #176 / #621 / #592, #160, #193 / #704, #298, #309 and #383. Their counts against `ffe310e` should now be read as already covered by main. What a PR still adds has to be measured on `70564ae`. **What still fails on `70564ae`** | Programs | Reason | Open PR that addresses it | |---|---|---| | **735** (compute) | validator: "Entry function performs some operation that is incompatible with the shader stage" | **#1065 clears all 735**, but it conflicts with `70564ae` in two hunks. The resolution and the measurement are on #1065 | | 195 | "an address in an SGPR that is no root parameter" | #1399 (sinan-cmyk measured +195 on `ffe310e`). It conflicts with `70564ae` in 9 files, so I couldn't measure it there | | 71 | validator: mesh output size greater than 32768 | none | | 40 | "a register joining a lane mask and data, read as data" | none found | | 36 | "a descriptor read only as data" | #1067, #180, #437 and #1198 each fixed these on `ffe310e`; they need a rebase | | 22 | other (lane masks, v_cvt_f32_f64, barycentrics, ...) | | #1409 and #1237, which target the same validator error as #1065, also conflict with `70564ae`. Counts are offline only. No program names or data, per the asset policy.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-25 02:12 UTC · original

Open shader PRs measured on the new main: none still gains a program

After the merges since ffe310e, I re-checked all 444 open PRs that touch crates/victory-shader:

  • 333 no longer merge onto main 70564ae and need a rebase.
  • 111 still merge cleanly. I measured each on 70564ae with the same method (shaders.rpf 1.0.2.1, dxil.dll 1.8.2502, program by program). The program counts are unchanged from 70564ae through ccfb029, so these results still hold there.
Result on 70564ae PRs
Gain programs none
No change 100
Lose programs #1301 (−8,712), #98 (−44, with a tested one-line fix on #98), #1716 (−6), #1646 (−4); each is detailed on its PR
Merge cleanly but no longer compile #244, #1281
Not comparable (listing format) #378

So, of the open PRs that still apply, none adds a translated program today. The useful remaining work is the rebases of PRs that fix what still fails:

Still failing on main Programs PR
validator: "Entry function ... incompatible with the shader stage" 735 #1065 (rebased today to e198449: +735 / 0 lost on ccfb029)
"an address in an SGPR that is no root parameter" 195 #1399 (+195 on ffe310e, needs a rebase)
validator: mesh output size greater than 32768 71 none
"a register joining a lane mask and data, read as data" 40 none found
"a descriptor read only as data" 36 #1067 / #180 / #437 / #1198 covered these on ffe310e; each needs a rebase

New regression on main: commit cd94d35 makes 867 vertex programs fail validation with "Flags must match usage" (main 940d32f: 23,918 validated, against 24,785 before it). The details and a tested fix (the "UAVs at every stage" flag; +867, 0 lost, tests and clippy clean) are in #1973.

Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-25 02:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7150445837) ### Open shader PRs measured on the new main: none still gains a program After the merges since `ffe310e`, I re-checked all **444** open PRs that touch `crates/victory-shader`: - **333 no longer merge** onto main `70564ae` and need a rebase. - **111 still merge cleanly.** I measured each on `70564ae` with the same method (`shaders.rpf` 1.0.2.1, dxil.dll 1.8.2502, program by program). The program counts are unchanged from `70564ae` through `ccfb029`, so these results still hold there. | Result on `70564ae` | PRs | |---|---| | **Gain programs** | **none** | | No change | 100 | | Lose programs | #1301 (−8,712), #98 (−44, with a tested one-line fix on #98), #1716 (−6), #1646 (−4); each is detailed on its PR | | Merge cleanly but no longer compile | #244, #1281 | | Not comparable (listing format) | #378 | So, of the open PRs that still apply, none adds a translated program today. The useful remaining work is the rebases of PRs that fix what still fails: | Still failing on main | Programs | PR | |---|---|---| | validator: "Entry function ... incompatible with the shader stage" | 735 | **#1065** (rebased today to `e198449`: +735 / 0 lost on `ccfb029`) | | "an address in an SGPR that is no root parameter" | 195 | #1399 (+195 on `ffe310e`, needs a rebase) | | validator: mesh output size greater than 32768 | 71 | none | | "a register joining a lane mask and data, read as data" | 40 | none found | | "a descriptor read only as data" | 36 | #1067 / #180 / #437 / #1198 covered these on `ffe310e`; each needs a rebase | **New regression on main:** commit `cd94d35` makes 867 vertex programs fail validation with "Flags must match usage" (main `940d32f`: 23,918 validated, against 24,785 before it). The details and a tested fix (the "UAVs at every stage" flag; +867, 0 lost, tests and clippy clean) are in #1973. Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-25 04:25 UTC · original

PRs opened tonight, and what merging the ready fixes would give

Newly opened shader PRs. 90 were opened since my last listing. 59 merge cleanly onto main 940d32f, and I measured all of them there with the same method (shaders.rpf 1.0.2.1, dxil.dll 1.8.2502, program by program). 31 conflict.

Result on 940d32f PRs
Gain programs #1971 +36 (clears every remaining "a descriptor read only as data"), #1883 +21 (16 of the 40 "a register joining a lane mask and data", plus 5 lane-mask joins), #1737 +1
Lose programs none
No change the other 56

#1737's new test file doesn't compile on 940d32f (it misses main's new view_marks field); details are on #1737.

What the ready fixes add together. These four merge cleanly onto 940d32f and with each other:

Build Validated Change
main 940d32f 23,918
940d32f + #1989 + #1065 + #1971 + #1883 25,601 of 25,889 +1,683, 0 lost

On that combined tree, cargo test -p victory-shader --lib passes (252/0) on an RX 7900 XTX.

What would still fail after those four:

Programs Reason Open PR
195 "an address in an SGPR that is no root parameter" #1399 (+195 on ffe310e; needs a rebase)
71 validator: mesh output size greater than 32768 none. On an RX 7900 XTX the driver still creates pipelines for all of them, so they are validator-only rejections
24 "a register joining a lane mask and data, read as data" (the rest of the 40) none found
~20 small reasons: lane masks (8), v_cvt_f32_f64 (5), barycentrics (3), others

Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-25 04:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7152832343) ### PRs opened tonight, and what merging the ready fixes would give **Newly opened shader PRs.** 90 were opened since my last listing. 59 merge cleanly onto main `940d32f`, and I measured all of them there with the same method (`shaders.rpf` 1.0.2.1, dxil.dll 1.8.2502, program by program). 31 conflict. | Result on `940d32f` | PRs | |---|---| | **Gain programs** | **#1971 +36** (clears every remaining "a descriptor read only as data"), **#1883 +21** (16 of the 40 "a register joining a lane mask and data", plus 5 lane-mask joins), #1737 +1 | | Lose programs | none | | No change | the other 56 | #1737's new test file doesn't compile on `940d32f` (it misses main's new `view_marks` field); details are on #1737. **What the ready fixes add together.** These four merge cleanly onto `940d32f` and with each other: - #1989: the fix for main's own regression in #1973 - #1065: rebased today - #1971 - #1883 | Build | Validated | Change | |---|---|---| | main `940d32f` | 23,918 | | | `940d32f` + #1989 + #1065 + #1971 + #1883 | **25,601 of 25,889** | **+1,683, 0 lost** | On that combined tree, `cargo test -p victory-shader --lib` passes (252/0) on an RX 7900 XTX. **What would still fail after those four:** | Programs | Reason | Open PR | |---|---|---| | 195 | "an address in an SGPR that is no root parameter" | #1399 (+195 on `ffe310e`; needs a rebase) | | 71 | validator: mesh output size greater than 32768 | none. On an RX 7900 XTX the driver still creates pipelines for all of them, so they are validator-only rejections | | 24 | "a register joining a lane mask and data, read as data" (the rest of the 40) | none found | | ~20 | small reasons: lane masks (8), `v_cvt_f32_f64` (5), barycentrics (3), others | | Offline counts only; no program names or data.
Author
Owner

@⁠reboot0000-cmd on GitHub · 2026-11-25 05:58 UTC · original

Hardware-side numbers to go alongside these offline tables, since validation is close to saturating and pipeline creation is the gap they cannot see. Measured on a Windows 10 IoT Enterprise LTSC 2021 host, build 19044.7846 (frozen servicing — deliberately not a patched 19045 box), RTX 4090 24 GB, DXC 1.8.2502 dxil.dll via VICTORY_DXIL, main 940d32f6 + PR #463's Agility opt-in (1.614.1) so the host reaches SM 6.6, translate --validate --pipelines over shaders.rpf (26,084 programs), ~43 min, no device removal.

stage emitted validated pipelines created
vertex 2,191 1,324 2,191
pixel 12,014 12,014 12,014
mesh 8,765 8,694 8,765
compute 2,621 1,886 2,227

Two things the validation tables cannot show:

  1. Pipeline creation clears everything the validator complains about. All 867 vertex Flags must match usage programs and all 71 mesh output size > 32768 programs still created a pipeline on hardware — the driver accepted what the validator rejected. For the mesh 32 KiB class specifically (#459/#1563) that means the practical blocker is the driver limit, not this validator message, and any count of "mesh shaders fixed" should be stated as validated-vs-runnable, because the two differ here.
  2. The only creation-stage failures are 394 compute programs, all with one error (The parameter is incorrect.), and 382 of those 394 pass validation — they are driver-only rejections, invisible to every table above. They are not a concentrated family: 394 refusals span 382 distinct program names (at most two per name), so no single lowering fix is likely to clear them, and thread-group/wave requirements are the obvious next thing to split them by.

So the remaining offline-to-hardware gap is: 394 compute pipelines, 867 vertex validator misses (harmless on this driver), 735 compute dx.valver misses (#1065's class), 71 mesh output-size misses. Offline counts say "24,785 programs validate"; the driver runs 25,197 of the 25,591 that emit. Both numbers are useful, they are not the same number.

Host detail that made this measurable at all: on this LTSC build the in-box D3D12 reports SM 6.5, so --pipelines aborts before doing anything; #463's app-local opt-in is what turns it on (#1945 covers a related trap — the SDK's own dxil.dll here is a 1.7 engine that prints 1.8.2502, so any of these tables measured with the default validator is counting a different thing). Counts and offsets only, no title data.

**@⁠reboot0000-cmd** on GitHub · 2026-11-25 05:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7154316157) Hardware-side numbers to go alongside these offline tables, since validation is close to saturating and pipeline creation is the gap they cannot see. Measured on a Windows 10 IoT Enterprise LTSC 2021 host, build 19044.7846 (frozen servicing — deliberately not a patched 19045 box), RTX 4090 24 GB, DXC 1.8.2502 `dxil.dll` via `VICTORY_DXIL`, main `940d32f6` + PR #463's Agility opt-in (1.614.1) so the host reaches SM 6.6, `translate --validate --pipelines` over `shaders.rpf` (26,084 programs), ~43 min, no device removal. | stage | emitted | validated | **pipelines created** | |---|---:|---:|---:| | vertex | 2,191 | 1,324 | **2,191** | | pixel | 12,014 | 12,014 | **12,014** | | mesh | 8,765 | 8,694 | **8,765** | | compute | 2,621 | 1,886 | 2,227 | Two things the validation tables cannot show: 1. **Pipeline creation clears everything the validator complains about.** All 867 vertex `Flags must match usage` programs and all 71 mesh `output size > 32768` programs still created a pipeline on hardware — the driver accepted what the validator rejected. For the mesh 32 KiB class specifically (#459/#1563) that means the practical blocker is the driver limit, not this validator message, and any count of "mesh shaders fixed" should be stated as validated-vs-runnable, because the two differ here. 2. **The only creation-stage failures are 394 compute programs**, all with one error (`The parameter is incorrect.`), and **382 of those 394 pass validation** — they are driver-only rejections, invisible to every table above. They are not a concentrated family: 394 refusals span 382 distinct program names (at most two per name), so no single lowering fix is likely to clear them, and thread-group/wave requirements are the obvious next thing to split them by. So the remaining offline-to-hardware gap is: 394 compute pipelines, 867 vertex validator misses (harmless on this driver), 735 compute `dx.valver` misses (#1065's class), 71 mesh output-size misses. Offline counts say "24,785 programs validate"; the driver runs 25,197 of the 25,591 that emit. Both numbers are useful, they are not the same number. Host detail that made this measurable at all: on this LTSC build the in-box D3D12 reports SM 6.5, so `--pipelines` aborts before doing anything; #463's app-local opt-in is what turns it on (#1945 covers a related trap — the SDK's own `dxil.dll` here is a 1.7 engine that prints 1.8.2502, so any of these tables measured with the default validator is counting a different thing). Counts and offsets only, no title data.
Author
Owner

@⁠KainanP on GitHub · 2026-11-25 09:48 UTC · original

@⁠zed6000 a GPU pass for the four ready fixes you listed, on NVIDIA (your runs are on AMD): #1989 0f11320, #1065 e198449, #1971 1ae8ad3, #1883 a31d8cc, merged in that order onto main 940d32f — all four merge cleanly together.

RTX 4060 Laptop (Ada, 32-lane waves, driver 32.0.16.1047), Windows 11 26200, plus WARP; cargo test --workspace --locked --no-fail-fast, compared test by test with 940d32f:

940d32f + the four
RTX 695 passed, 5 failed 703 passed, the same 5 failed
WARP 696 passed, 4 failed 704 passed, the same 4 failed
--all-features (RTX) 700 passed, 5 failed 708 passed, the same 5 failed
clippy -D warnings, xtask policy clean clean

The four add 8 tests, all passing; no test changes outcome. The failures are main's own and already reported: the two descriptor::host/memory dynamic-slot tests and stride_tests::a_heap_buffer_read_* / synthetic_tests::gathers_at_a_level_match_the_hardware are #1835 (HEAP_VIEWS = 2^21 above NVIDIA's 1,000,000-descriptor heap; several open PRs fix it), and on WARP synthetic_tests::permutes_read_the_lane_named_and_zero_from_lanes_left_out ("no pipeline for a wave of 32").

AI use: Claude Code (Claude Opus 5.5) ran the merges and tests and wrote this.

**@⁠KainanP** on GitHub · 2026-11-25 09:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7158830437) @⁠zed6000 a GPU pass for the four ready fixes you listed, on NVIDIA (your runs are on AMD): #1989 `0f11320`, #1065 `e198449`, #1971 `1ae8ad3`, #1883 `a31d8cc`, merged in that order onto main `940d32f` — all four merge cleanly together. RTX 4060 Laptop (Ada, 32-lane waves, driver 32.0.16.1047), Windows 11 26200, plus WARP; `cargo test --workspace --locked --no-fail-fast`, compared test by test with `940d32f`: | | `940d32f` | + the four | |---|---|---| | RTX | 695 passed, 5 failed | 703 passed, the same 5 failed | | WARP | 696 passed, 4 failed | 704 passed, the same 4 failed | | `--all-features` (RTX) | 700 passed, 5 failed | 708 passed, the same 5 failed | | clippy `-D warnings`, `xtask policy` | clean | clean | The four add 8 tests, all passing; no test changes outcome. The failures are main's own and already reported: the two `descriptor::host`/`memory` dynamic-slot tests and `stride_tests::a_heap_buffer_read_*` / `synthetic_tests::gathers_at_a_level_match_the_hardware` are #1835 (`HEAP_VIEWS` = 2^21 above NVIDIA's 1,000,000-descriptor heap; several open PRs fix it), and on WARP `synthetic_tests::permutes_read_the_lane_named_and_zero_from_lanes_left_out` ("no pipeline for a wave of 32"). _AI use: Claude Code (Claude Opus 5.5) ran the merges and tests and wrote this._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 10:12 UTC · original · edited 2026-11-26 06:47 UTC

Automated triage for the maintainers.

Thanks for the offline benchmark and the follow-up batches; they are useful for review. Where it stands, per the later comments here:

  • The regression of 867 vertex programs since "Flags must match usage" (#1973) is fixed in main: Shader::finish in crates/victory-shader/src/emit/shader.rs sets the "UAVs at every stage" flag for vertex, geometry and mesh programs that declare UAVs.
  • main 63bcca4 validates 24,850 of 26,084 programs. Of the shader PRs measured since (#2936–#3038), only #2999 (+748, the same programs as #1065) and #3016 (+4, the last "lane mask read as data" programs) gain; the rest change no program's outcome. #2405 at head 7ffdba5 now loses 878 programs (down from 1,829); details on #2405. #3033 was not measured.
  • What would move main's count now, all open: #1065 (validator 1.8 for compute derivatives, +748) or #2999 instead (same programs; reported to pick the console's mip in 2D compute groups on RDNA3 where #1065 does not); #1924 (rebase of #1399, +390); and, stacked with those, #385, #2978, #1737, #3016 and #2363. That stack measured 26,012 of 26,084 (+1,162, 0 lost), with the shader and GPU tests passing on an RX 7900 XTX. Left after that: 71 oversized mesh programs (validator only; the driver creates them) and 1 barycentrics read directly, which #1738 fixes but which needs porting onto #385 and #1924.
  • The pipeline pre-build skipping 1,029 of 28,164 pipelines on main is tracked in #2930, now with PRs #3047 and #3048.

On the compute pipelines refused on 32-lane hosts ("wants wave lane count of 64"): main's behaviour in Lower::new (crates/victory-shader/src/emit/lower.rs). Tracked in #2220 and, for the world hang it causes, #71.

Please keep to counts here; the game's own program names must not be posted in this tracker.

Counts here are offline only and say nothing about output correctness. This stays open as tracked review data.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7159388076) · edited 2026-11-26 06:47 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-26T05:10:43Z at=2026-11-26T07:15:00Z --> Automated triage for the maintainers. Thanks for the offline benchmark and the follow-up batches; they are useful for review. Where it stands, per the later comments here: - The regression of 867 vertex programs since "Flags must match usage" (#1973) is fixed in `main`: `Shader::finish` in `crates/victory-shader/src/emit/shader.rs` sets the "UAVs at every stage" flag for vertex, geometry and mesh programs that declare UAVs. - **`main` 63bcca4 validates 24,850 of 26,084 programs.** Of the shader PRs measured since (#2936–#3038), only #2999 (+748, the same programs as #1065) and #3016 (+4, the last "lane mask read as data" programs) gain; the rest change no program's outcome. #2405 at head `7ffdba5` now loses 878 programs (down from 1,829); details on #2405. #3033 was not measured. - **What would move `main`'s count now**, all open: #1065 (validator 1.8 for compute derivatives, +748) or #2999 instead (same programs; reported to pick the console's mip in 2D compute groups on RDNA3 where #1065 does not); #1924 (rebase of #1399, +390); and, stacked with those, #385, #2978, #1737, #3016 and #2363. That stack measured **26,012 of 26,084 (+1,162, 0 lost)**, with the shader and GPU tests passing on an RX 7900 XTX. Left after that: 71 oversized mesh programs (validator only; the driver creates them) and 1 `barycentrics read directly`, which #1738 fixes but which needs porting onto #385 and #1924. - The pipeline pre-build skipping 1,029 of 28,164 pipelines on `main` is tracked in #2930, now with PRs #3047 and #3048. On the compute pipelines refused on 32-lane hosts ("wants wave lane count of 64"): `main`'s behaviour in `Lower::new` (`crates/victory-shader/src/emit/lower.rs`). Tracked in #2220 and, for the world hang it causes, #71. Please keep to counts here; the game's own program names must not be posted in this tracker. Counts here are offline only and say nothing about output correctness. This stays open as tracked review data. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠reboot0000-cmd on GitHub · 2026-11-25 15:24 UTC · original

Closing the loop on the 394 compute refusals in my table above: they are all one cause, measured at archive scale. The driver's reason is identical for every one (CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32), a static read of all 2,621 emitted compute programs agrees exactly (394 demand 64 lanes; the 2,227 that create either declare nothing — 1,315 — or demand 32 — 912; none of the created ones demand 64), and changing only that declaration metadata flips the whole set: 2,621 of 2,621 create, nothing new breaks.

Two things that change what "fixed" means: the driver polices minimum lane count, not whether a wave size is declared — so a skip-rule written as "declares 64-lane waves" would wrongly skip the 912 programs that declare 32 and run fine. And 14 of the 394 demand 64 lanes for thread groups of ≤32 threads (0xbe1c0ab is 1x1x1), which look like over-declarations rather than needs — the lowering hard-codes the console lane width in its cross-lane math, so they need review, not a metadata flip. Details, method and the causal test on #2220.

Caveat for the leaderboard: this is Windows 10 LTSC 2021 19044.7846 + RTX 4090. Nothing here tests whether a 64-lane-capable card accepts all 394.

**@⁠reboot0000-cmd** on GitHub · 2026-11-25 15:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7166793526) Closing the loop on the 394 compute refusals in my table above: they are all one cause, measured at archive scale. The driver's reason is identical for every one (`CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32`), a static read of all 2,621 emitted compute programs agrees exactly (394 demand 64 lanes; the 2,227 that create either declare nothing — 1,315 — or demand 32 — 912; none of the created ones demand 64), and changing only that declaration metadata flips the whole set: 2,621 of 2,621 create, nothing new breaks. Two things that change what "fixed" means: the driver polices **minimum** lane count, not whether a wave size is declared — so a skip-rule written as "declares 64-lane waves" would wrongly skip the 912 programs that declare 32 and run fine. And 14 of the 394 demand 64 lanes for thread groups of ≤32 threads (`0xbe1c0ab` is 1x1x1), which look like over-declarations rather than needs — the lowering hard-codes the console lane width in its cross-lane math, so they need review, not a metadata flip. Details, method and the causal test on #2220. Caveat for the leaderboard: this is Windows 10 LTSC 2021 19044.7846 + RTX 4090. Nothing here tests whether a 64-lane-capable card accepts all 394.
Author
Owner

@⁠reboot0000-cmd on GitHub · 2026-11-25 17:05 UTC · original

Re-ran both censuses after the merge burst, so the hardware table above has a before/after rather than a single snapshot. Same host (Windows 10 IoT Enterprise LTSC 2021 19044.7846, RTX 4090, Agility 1.614.1 via #463), same DXC 1.8.2502 validator, same archive (26,084 programs); 940d32f → 67e8ae1 (82 commits).

940d32f 67e8ae1
vertex + pixel validated 13,338 / 14,205 14,242 / 14,242 (100%)
vertex + pixel pipelines 14,205 / 14,205 14,242 / 14,242
compute validated 1,886 / 2,621 1,910 / 2,658
compute pipelines 2,227 / 2,621 2,262 / 2,658
mesh validated 8,694 / 8,765 8,694 / 8,765
mesh pipelines 8,765 / 8,765 8,765 / 8,765
programs emitted 25,591 / 26,084 25,665 / 26,084
pipelines created 25,197 25,269
refused at creation 394 396

The Flags must match usage class I reported at 867 is gone — that was the cd94d35 view-mark regression, fixed by a1a2077, and vertex and pixel validation is now complete at 100%. Mesh is unchanged: still the 71 programs over the 32 KiB output budget, still all 8,765 creating on hardware.

Program-by-program the refusal sets are worth stating exactly, because a total is misleading here: 0 previously-refused programs were cleared, 394 are still refused, and 2 newly appear, both newly-emitted programs. So the merge burst moved compute emission by +37 and creation by +35 while the wave64 population on this host grew slightly rather than shrinking — expected, since #189 / #439 / #1890 / #1922 / #2176 are all still open. The 394 remain the full set of creation-stage failures on this machine, and 383 of the 396 refuse despite passing validation.

Net: 72 more programs run on hardware than before, the validation story is now complete for vertex and pixel, and the one remaining hardware gap is unchanged in character. No new failure classes appeared.

**@⁠reboot0000-cmd** on GitHub · 2026-11-25 17:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7168988719) Re-ran both censuses after the merge burst, so the hardware table above has a before/after rather than a single snapshot. Same host (Windows 10 IoT Enterprise LTSC 2021 19044.7846, RTX 4090, Agility 1.614.1 via #463), same DXC 1.8.2502 validator, same archive (26,084 programs); `940d32f` → `67e8ae1` (82 commits). | | `940d32f` | `67e8ae1` | |---|---:|---:| | vertex + pixel validated | 13,338 / 14,205 | **14,242 / 14,242 (100%)** | | vertex + pixel pipelines | 14,205 / 14,205 | 14,242 / 14,242 | | compute validated | 1,886 / 2,621 | 1,910 / 2,658 | | compute pipelines | 2,227 / 2,621 | 2,262 / 2,658 | | mesh validated | 8,694 / 8,765 | 8,694 / 8,765 | | mesh pipelines | 8,765 / 8,765 | 8,765 / 8,765 | | **programs emitted** | 25,591 / 26,084 | **25,665 / 26,084** | | **pipelines created** | 25,197 | **25,269** | | refused at creation | 394 | 396 | The `Flags must match usage` class I reported at 867 is gone — that was the `cd94d35` view-mark regression, fixed by `a1a2077`, and vertex and pixel validation is now complete at 100%. Mesh is unchanged: still the 71 programs over the 32 KiB output budget, still all 8,765 creating on hardware. Program-by-program the refusal sets are worth stating exactly, because a total is misleading here: **0** previously-refused programs were cleared, **394 are still refused**, and **2** newly appear, both newly-emitted programs. So the merge burst moved compute emission by +37 and creation by +35 while the wave64 population on this host grew slightly rather than shrinking — expected, since #189 / #439 / #1890 / #1922 / #2176 are all still open. The 394 remain the full set of creation-stage failures on this machine, and 383 of the 396 refuse despite passing validation. Net: 72 more programs run on hardware than before, the validation story is now complete for vertex and pixel, and the one remaining hardware gap is unchanged in character. No new failure classes appeared.
Author
Owner

@⁠reboot0000-cmd on GitHub · 2026-11-25 17:29 UTC · original

One-line correction to my re-measurement above, now that I have the two programs identified: the 394 → 396 change is not a regression. alphaResolve:CS_AlphTransmissionPrefilterMip_610a2fad (0xbdf7769) and indirect_light_probes:CS_IrradianceCache_Shade_823aad37 (0xc32ac63) previously failed to translate at all — one refused at resource tracking, one in emission — so they never reached a pipeline. The merge burst carried both through to emission and validation, and the driver then refused them with the same message the other 394 carry.

So a1a2077 restored 867 vertex programs and additionally promoted two compute programs from "not translated" to "translated, validated, refused on a 32-lane host". They now belong to the wave64 population in #2220; we have not yet confirmed their declared lane count directly.

**@⁠reboot0000-cmd** on GitHub · 2026-11-25 17:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7169576323) One-line correction to my re-measurement above, now that I have the two programs identified: the 394 → 396 change is not a regression. `alphaResolve:CS_AlphTransmissionPrefilterMip_610a2fad` (`0xbdf7769`) and `indirect_light_probes:CS_IrradianceCache_Shade_823aad37` (`0xc32ac63`) previously **failed to translate at all** — one refused at resource tracking, one in emission — so they never reached a pipeline. The merge burst carried both through to emission and validation, and the driver then refused them with the same message the other 394 carry. So `a1a2077` restored 867 vertex programs and additionally promoted two compute programs from "not translated" to "translated, validated, refused on a 32-lane host". They now belong to the wave64 population in #2220; we have not yet confirmed their declared lane count directly.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-25 18:32 UTC · original

@⁠KainanP thanks, that's the NVIDIA half of the picture. An update since then, on main 13f91ca, using the same offline method:

  • Main now has the equivalents of three of the four. #1989 was closed in favour of a1a2077, and the 867 vertex programs validate again. The programs #1971 and #1883 gained on 940d32f (35 and 21) now validate on main as well. Main stands at 24,846 of 25,889, +928 over 940d32f with 0 lost.
  • #1065 (rebased, d22149a) on 13f91ca: +748, 0 lost, giving 25,594. That count is 748 now rather than 735, because 13 more compute programs reach the same validator error on main. cargo test -p victory-shader --lib passes (273/0) on the RX 7900 XTX.

So #1065 is the one ready fix left from that list. After it, the remaining failures are the 195 SGPR-address geometry programs (#1399 / #1924, both need a rebase), the 71 oversized mesh programs (validator only) and about 29 small cases. I'm measuring the 187 shader PRs opened since yesterday against 13f91ca and will post the results here. Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-25 18:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7171039329) @⁠KainanP thanks, that's the NVIDIA half of the picture. An update since then, on main `13f91ca`, using the same offline method: - **Main now has the equivalents of three of the four.** #1989 was closed in favour of `a1a2077`, and the 867 vertex programs validate again. The programs #1971 and #1883 gained on `940d32f` (35 and 21) now validate on main as well. Main stands at **24,846 of 25,889**, +928 over `940d32f` with 0 lost. - **#1065** (rebased, `d22149a`) on `13f91ca`: **+748, 0 lost, giving 25,594**. That count is 748 now rather than 735, because 13 more compute programs reach the same validator error on main. `cargo test -p victory-shader --lib` passes (273/0) on the RX 7900 XTX. So #1065 is the one ready fix left from that list. After it, the remaining failures are the 195 SGPR-address geometry programs (#1399 / #1924, both need a rebase), the 71 oversized mesh programs (validator only) and about 29 small cases. I'm measuring the 187 shader PRs opened since yesterday against `13f91ca` and will post the results here. Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-25 23:51 UTC · original

The shader PRs opened on 2026-11-25, measured on main 13f91ca

The method is the same as above: each PR merged onto 13f91ca, victory translate --validate --list over shaders.rpf 1.0.2.1 with dxil.dll 1.8.2502, compared program by program. 187 shader PRs were opened since my last listing. 167 merge cleanly onto 13f91ca; I security-reviewed them before building, and 166 were measured (20 conflict). None failed to build.

Result PRs
Regression #2405: −1,829 (details and the comparison with #2406 on #2405)
Gain #2027 +748 (the same 748 programs as #1065; triage proposes closing it), #2289 +4 ("a lane mask read as data"), #2363 +1 ("a descriptor read only as data")
Gain only through main #2041, #2126 and #2647 each show +4. They are based on a main that already contains #2468 (merged tonight), and these are #2468's 4 programs. #2289's 4 are a different set
No change the other 157

Two checks along the way:

  • Determinism. Three runs of the same 13f91ca build give an identical outcome for every program (24,846 each). The tables in this issue are reproducible run to run.
  • The merge burst. Main 552208c (after tonight's merges) validates exactly the same 24,846 programs as 13f91ca (0 gained, 0 lost), and cargo test -p victory-shader --lib passes (289/0) on an RX 7900 XTX.

What would move main's count now:

Remaining on main Programs Fix
"Entry function ... incompatible with the shader stage" 748 #1065 (cbd152c: +748, 0 lost on 13f91ca)
"an address in an SGPR that is no root parameter" 195 #1924 / #1399 (+390 with the export halves; #1924 rebased onto 13f91ca with tests and clippy clean; the resolution is on #1924)
mesh output size above 32768 71 none (validator only)
small reasons ~30 #2289 (+4) and #2363 (+1) among them

Measured together (the #1924 port plus #1065, merged onto 13f91ca): +1,138, 0 lost, so 25,984 programs validate, against 24,846 on main (#1065 also lets more programs reach the listing: 26,084 instead of 25,889). cargo test -p victory-shader --lib passes (278/0).

Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-25 23:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7178140894) ### The shader PRs opened on 2026-11-25, measured on main `13f91ca` The method is the same as above: each PR merged onto `13f91ca`, `victory translate --validate --list` over `shaders.rpf` 1.0.2.1 with dxil.dll 1.8.2502, compared program by program. 187 shader PRs were opened since my last listing. 167 merge cleanly onto `13f91ca`; I security-reviewed them before building, and 166 were measured (20 conflict). None failed to build. | Result | PRs | |---|---| | **Regression** | **#2405: −1,829** (details and the comparison with #2406 on #2405) | | Gain | #2027 +748 (the same 748 programs as #1065; triage proposes closing it), **#2289 +4** ("a lane mask read as data"), **#2363 +1** ("a descriptor read only as data") | | Gain only through main | #2041, #2126 and #2647 each show +4. They are based on a main that already contains #2468 (merged tonight), and these are #2468's 4 programs. #2289's 4 are a different set | | No change | the other 157 | Two checks along the way: - **Determinism.** Three runs of the same `13f91ca` build give an identical outcome for every program (24,846 each). The tables in this issue are reproducible run to run. - **The merge burst.** Main `552208c` (after tonight's merges) validates exactly the same 24,846 programs as `13f91ca` (0 gained, 0 lost), and `cargo test -p victory-shader --lib` passes (289/0) on an RX 7900 XTX. **What would move main's count now:** | Remaining on main | Programs | Fix | |---|---|---| | "Entry function ... incompatible with the shader stage" | 748 | **#1065** (`cbd152c`: +748, 0 lost on `13f91ca`) | | "an address in an SGPR that is no root parameter" | 195 | **#1924** / #1399 (+390 with the export halves; #1924 rebased onto `13f91ca` with tests and clippy clean; the resolution is on #1924) | | mesh output size above 32768 | 71 | none (validator only) | | small reasons | ~30 | #2289 (+4) and #2363 (+1) among them | Measured together (the #1924 port plus #1065, merged onto `13f91ca`): **+1,138, 0 lost**, so 25,984 programs validate, against 24,846 on main (#1065 also lets more programs reach the listing: 26,084 instead of 25,889). `cargo test -p victory-shader --lib` passes (278/0). Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 01:55 UTC · original

The 69 shader PRs opened since the last listing, measured on main 63bcca4

Same method as above: each PR merged onto 63bcca4, victory translate --validate --list over shaders.rpf 1.0.2.1 with dxil.dll 1.8.2502, compared program by program. Everything was security-reviewed before building. 66 of the 69 were measured.

  • Main 63bcca4: 24,850 programs validate, of the 25,889 listed as before (+4 on 13f91ca, the lane-mask programs of #2468; 0 lost). cargo test -p victory-shader --lib passes (302/0).
  • 62 PRs merge cleanly onto 63bcca4: none changes a program's outcome (0 gained, 0 lost for each). They also leave the IR instruction count exactly as on main (40,601,701). None of them regresses the title's shaders, and none moves the count; their effects are in what the emitted code does at run time, which this measurement can't see.
  • 4 conflict with 63bcca4 (#2822, #2813, #2733, #2723). At their own heads against their base 13f91ca, they also give 0 gained / 0 lost.
  • Not measured: #2758 (a 60k-line merge of a fork's branch), plus #2807 and #2815 (a personal test branch and an experiment branch that add dependencies or scripts).

What would move the count is unchanged: #1065 (748) and #1924 / #1399 (390). Measured together on 13f91ca, they give +1,138 / 0 lost (above).

Separately, the pipeline pre-build skipped 1,029 of the pack's 28,164 pipelines on main. #2930 has the cause and a measured fix that brings it to 41.

Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-26 01:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7180288583) ### The 69 shader PRs opened since the last listing, measured on main `63bcca4` Same method as above: each PR merged onto `63bcca4`, `victory translate --validate --list` over `shaders.rpf` 1.0.2.1 with dxil.dll 1.8.2502, compared program by program. Everything was security-reviewed before building. 66 of the 69 were measured. - **Main `63bcca4`:** 24,850 programs validate, of the 25,889 listed as before (+4 on `13f91ca`, the lane-mask programs of #2468; 0 lost). `cargo test -p victory-shader --lib` passes (302/0). - **62 PRs merge cleanly onto `63bcca4`: none changes a program's outcome** (0 gained, 0 lost for each). They also leave the IR instruction count exactly as on `main` (40,601,701). None of them regresses the title's shaders, and none moves the count; their effects are in what the emitted code does at run time, which this measurement can't see. - **4 conflict with `63bcca4`** (#2822, #2813, #2733, #2723). At their own heads against their base `13f91ca`, they also give 0 gained / 0 lost. - **Not measured:** #2758 (a 60k-line merge of a fork's branch), plus #2807 and #2815 (a personal test branch and an experiment branch that add dependencies or scripts). What would move the count is unchanged: #1065 (748) and #1924 / #1399 (390). Measured together on `13f91ca`, they give +1,138 / 0 lost (above). Separately, the pipeline pre-build skipped 1,029 of the pack's 28,164 pipelines on `main`. #2930 has the cause and a measured fix that brings it to 41. Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 02:47 UTC · original

Five open PRs take main to 26,007 of 26,084 (99.7%), measured together

Stacked on main 63bcca4 (24,850 validate), measured the same way as above, program by program:

PR What it unblocks on this title Alone
#1065 (cbd152c) 748 compute programs: the validator's "Entry function ... incompatible with the shader stage" +748 (on 13f91ca)
#1924 (port, see #1924) 195 geometry programs ("an address in an SGPR that is no root parameter") + their 195 export halves +390 (on 63bcca4)
#385 (a3defec) 13 compute programs: "a lane-mask join of an untracked mask" 0 alone; +13 with #1065 (on 63bcca4)
#2978 (ab08acb, carries #2348) 5 compute programs: v_cvt_f32_f64 inside f64 wave sums +1 alone; +5 with #385 + #1065 (on 63bcca4)
#1737 (abb811f) 1 compute program: v_permlanex16_b32 +1 (on 13f91ca)

All five together: +1,157, 0 lost, 26,007 of 26,084 validate. cargo test -p victory-shader --lib passes 337/0 on the stack (RX 7900 XTX, built-in WARP). A second run with #2978's earlier head gave the same outcome for every program.

What's left on the stack (77):

  • 71 mesh programs over the validator's 32,768-byte output size. The AMD driver creates those pipelines anyway; the limit is in the validator only.
  • 4 "a lane mask read as data": exactly the 4 #2289 gained (checked program by program) before it was closed for rework.
  • 1 "barycentrics read directly" and 1 "a descriptor read only as data" (#2363 has that one, +1, but conflicts with 63bcca4 now).

Merge notes, all keep-both:

  • #2978 vs #385: mod sum64; / mod phi; in emit/lower.rs, and the tests at the end of valu_tests.rs.
  • #1737: the mod tests tail of emit/lower.rs (see #1737).
  • #1924: one hunk in emit/lower.rs plus gs: None in test initializers. Whichever of #385 / #1737 / #2978 lands first adds more of those (lower/phi.rs, permlane_tests.rs, one in valu_tests.rs). The main list is on #1924.
  • #1065 merged cleanly in every order I tried.

Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-26 02:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7181123828) ### Five open PRs take main to 26,007 of 26,084 (99.7%), measured together Stacked on main `63bcca4` (24,850 validate), measured the same way as above, program by program: | PR | What it unblocks on this title | Alone | |---|---|---| | #1065 (`cbd152c`) | 748 compute programs: the validator's "Entry function ... incompatible with the shader stage" | +748 (on `13f91ca`) | | #1924 (port, see #1924) | 195 geometry programs ("an address in an SGPR that is no root parameter") + their 195 export halves | +390 (on `63bcca4`) | | #385 (`a3defec`) | 13 compute programs: "a lane-mask join of an untracked mask" | 0 alone; +13 with #1065 (on `63bcca4`) | | #2978 (`ab08acb`, carries #2348) | 5 compute programs: `v_cvt_f32_f64` inside f64 wave sums | +1 alone; +5 with #385 + #1065 (on `63bcca4`) | | #1737 (`abb811f`) | 1 compute program: `v_permlanex16_b32` | +1 (on `13f91ca`) | **All five together: +1,157, 0 lost, 26,007 of 26,084 validate.** `cargo test -p victory-shader --lib` passes 337/0 on the stack (RX 7900 XTX, built-in WARP). A second run with #2978's earlier head gave the same outcome for every program. What's left on the stack (77): - 71 mesh programs over the validator's 32,768-byte output size. The AMD driver creates those pipelines anyway; the limit is in the validator only. - 4 "a lane mask read as data": exactly the 4 #2289 gained (checked program by program) before it was closed for rework. - 1 "barycentrics read directly" and 1 "a descriptor read only as data" (#2363 has that one, +1, but conflicts with `63bcca4` now). Merge notes, all keep-both: - #2978 vs #385: `mod sum64;` / `mod phi;` in `emit/lower.rs`, and the tests at the end of `valu_tests.rs`. - #1737: the `mod tests` tail of `emit/lower.rs` (see #1737). - #1924: one hunk in `emit/lower.rs` plus `gs: None` in test initializers. Whichever of #385 / #1737 / #2978 lands first adds more of those (`lower/phi.rs`, `permlane_tests.rs`, one in `valu_tests.rs`). The main list is on #1924. - #1065 merged cleanly in every order I tried. Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 03:34 UTC · original

23 more shader PRs (#2936 to #2999), on main 63bcca4

Same method. All 23 merge cleanly and were security-reviewed before building.

  • #2999: +748, 0 lost. These are exactly the 748 programs #1065 gains (checked program by program), with a different take on the compute quad order. Details are on #2999.
  • The other 22: 0 gained, 0 lost each.
  • #2978 (f64 whole-wave sums) is covered above: +1 alone, all 5 v_cvt_f32_f64 programs with #385 + #1065.

So the stack above stays the way to 26,007, with #2999 as an alternative to #1065 there. Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-26 03:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7181837803) ### 23 more shader PRs (#2936 to #2999), on main `63bcca4` Same method. All 23 merge cleanly and were security-reviewed before building. - **#2999: +748, 0 lost.** These are exactly the 748 programs #1065 gains (checked program by program), with a different take on the compute quad order. Details are on #2999. - **The other 22: 0 gained, 0 lost** each. - #2978 (f64 whole-wave sums) is covered above: +1 alone, all 5 `v_cvt_f32_f64` programs with #385 + #1065. So the stack above stays the way to 26,007, with #2999 as an alternative to #1065 there. Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 04:09 UTC · original

8 more (#3000 to #3023), and the stack is now at 26,011

On 63bcca4, same method, all security-reviewed:

Stack update: #1924 (port) + #2978 + #385 + #2999 (or #1065, which gains the same 748, but #2999 picks the console's mip in 2D compute groups; see #1065) + #1737 + #3016 on 63bcca4 gives 26,011 of 26,084 validated (+1,161, 0 lost), with 334/0 tests on an RX 7900 XTX. What's left: the 71 mesh programs over the validator's output size (the AMD driver creates them), 1 barycentrics read directly and 1 a descriptor read only as data (#2363). Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-26 04:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7182350510) ### 8 more (#3000 to #3023), and the stack is now at 26,011 On `63bcca4`, same method, all security-reviewed: - **#3016: +4, 0 lost**: the last 4 `a lane mask read as data` programs (the ones #2289 had). - **#3023: 0 / 0.** It's in the scalar-VCC area where #2405 lost 1,829; this one costs nothing. - The other 6 (#3000, #3007, #3008, #3009, #3010, #3017): 0 / 0. **Stack update:** #1924 (port) + #2978 + #385 + #2999 (or #1065, which gains the same 748, but #2999 picks the console's mip in 2D compute groups; see #1065) + #1737 + #3016 on `63bcca4` gives **26,011 of 26,084 validated (+1,161, 0 lost)**, with 334/0 tests on an RX 7900 XTX. What's left: the 71 mesh programs over the validator's output size (the AMD driver creates them), 1 `barycentrics read directly` and 1 `a descriptor read only as data` (#2363). Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 05:10 UTC · original

Where things stand (2026-11-26, morning), on main 63bcca4

The latest measurements, for anyone picking this up (method as above):

Stack on 63bcca4 Validated vs main
main 24,850 of 26,084
+ #1924 (port) + #2978 + #385 + #2999 + #1737 + #3016 26,011 +1,161, 0 lost (334/0 tests)
+ #2363 (its only conflict is a doc comment) 26,012 +1,162, 0 lost (shader 334/0, gpu 231/0)
  • What's left: 71 mesh programs over the validator's output size (the AMD driver creates them), and 1 barycentrics read directly. #1738 fixes that one (+1, 0 lost alone on 63bcca4). It needs a real port onto #385 (fill_phis moved to lower/phi.rs) and #1924 (the interps fields), so it isn't measured on the stack.
  • #2999 vs #1065: the same 748 programs. On RDNA3, #1065 samples level 3 where the console's quads give 1 in 2D groups, and #2999 gets 1 (on #1065). #2999's newer head 7b5a3fc gives the same +748.
  • #2405 now carries 3980ea0. Head 7ffdba5 loses only the 878 compute programs from its VCC refusals, down from 1,829.
  • #3016's narrowed head 7872701 keeps its +4.
  • Since my last listing: #3027, #3032 and #3038 are 0 / 0. #3033 (an Agility SDK loader with a new crate) wasn't measured.
  • Pipeline pre-build: #2930 has the fix that takes the skips from 1,029 to 41. The triage asked for it as two PRs, and both patches are ready.

Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-26 05:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7183250247) ### Where things stand (2026-11-26, morning), on main `63bcca4` The latest measurements, for anyone picking this up (method as above): | Stack on `63bcca4` | Validated | vs main | |---|---:|---:| | main | 24,850 of 26,084 | | | + #1924 (port) + #2978 + #385 + #2999 + #1737 + #3016 | 26,011 | +1,161, 0 lost (334/0 tests) | | + #2363 (its only conflict is a doc comment) | **26,012** | +1,162, 0 lost (shader 334/0, gpu 231/0) | - **What's left:** 71 mesh programs over the validator's output size (the AMD driver creates them), and 1 `barycentrics read directly`. **#1738 fixes that one** (+1, 0 lost alone on `63bcca4`). It needs a real port onto #385 (`fill_phis` moved to `lower/phi.rs`) and #1924 (the `interps` fields), so it isn't measured on the stack. - **#2999 vs #1065:** the same 748 programs. On RDNA3, #1065 samples level 3 where the console's quads give 1 in 2D groups, and #2999 gets 1 (on #1065). #2999's newer head `7b5a3fc` gives the same +748. - **#2405** now carries `3980ea0`. Head `7ffdba5` loses only the 878 compute programs from its VCC refusals, down from 1,829. - **#3016**'s narrowed head `7872701` keeps its +4. - **Since my last listing:** #3027, #3032 and #3038 are 0 / 0. #3033 (an Agility SDK loader with a new crate) wasn't measured. - **Pipeline pre-build:** #2930 has the fix that takes the skips from 1,029 to 41. The triage asked for it as two PRs, and both patches are ready. Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 11:52 UTC · original

29 more shader PRs (#3043 to #3166), on main 63bcca4

Same method, all security-reviewed before building: every one is 0 gained, 0 lost. They are #3043, #3051, #3056, #3082, #3083, #3086, #3088, #3090, #3093, #3115, #3116, #3117, #3124, #3127, #3131, #3135, #3142, #3143, #3147, #3148, #3149, #3151, #3152, #3153, #3155, #3158, #3159, #3160 and #3166. #3097 couldn't be fetched (its head ref is gone).

Main hasn't moved since 63bcca4, so the stack figures above (26,011, or 26,012 with #2363) still stand. The pre-build fixes from #2930 are open as #3047 and #3048. Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-26 11:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7191286955) ### 29 more shader PRs (#3043 to #3166), on main `63bcca4` Same method, all security-reviewed before building: **every one is 0 gained, 0 lost**. They are #3043, #3051, #3056, #3082, #3083, #3086, #3088, #3090, #3093, #3115, #3116, #3117, #3124, #3127, #3131, #3135, #3142, #3143, #3147, #3148, #3149, #3151, #3152, #3153, #3155, #3158, #3159, #3160 and #3166. #3097 couldn't be fetched (its head ref is gone). Main hasn't moved since `63bcca4`, so the stack figures above (26,011, or 26,012 with #2363) still stand. The pre-build fixes from #2930 are open as #3047 and #3048. Offline counts only; no program names or data.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 13:11 UTC · original

Update: the stack reaches 26,013 of 26,084. With #1738 ported onto it (the resolution is on #1738), every program of the title validates except the 71 mesh programs over the validator's output size: +1,163 on main, 0 lost. Shader tests pass 357/0 and GPU tests 231/0 on the stack, and clippy is clean. Offline counts only; no program names or data.

**@⁠zed6000** on GitHub · 2026-11-26 13:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/1247#issuecomment-7193009000) **Update: the stack reaches 26,013 of 26,084.** With #1738 ported onto it (the resolution is on #1738), every program of the title validates except the 71 mesh programs over the validator's output size: +1,163 on `main`, 0 lost. Shader tests pass 357/0 and GPU tests 231/0 on the stack, and clippy is clean. Offline counts only; no program names or data.
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/Marvisak--VIctory#1247
No description provided.