World-frame translation failures, classified: 303 in three minutes, 93% dataflow, not instructions #1481

Open
opened 2026-11-26 04:33:32 +00:00 by github-bot · 6 comments
Owner

@⁠MoonYueya on GitHub · 2026-11-24 18:20 UTC · original

What this is

A second, independent GTA VI Xbox→PC attempt (project Project Leonida) ran this repository, built from source at ffe310e, against a retail title dump, and classified every shader that failed to translate during world load. Counts, error strings and hashes only — no game bytes, no shader names, no paths.

Assembled with AI assistance, then checked line by line against the raw logs. Every number below is reproducible with the commands in the appendix.

The short version:

303 translation failures in a three-minute world window. 283 of them (93.4%) are dataflow the translator has not modelled, not instructions it does not implement.
The three gaps the README names — 64-bit image atomics, merged geometry stages, the ray-tracing builder — account for 6 of 303 (2.0%), and two of the three are zero in this window.


Setup and window

Item Value
Build cargo build --profile diag -p victory --features diagnostics, no source changes
Runs 3 × 180 s, killed by taskkill /F (exit 1 is ours, not the title's); 0 panics, no crash log
Runs reported run 2 and run 3, real GPU; run 1 was WARP and is excluded
Frames reached run 2 to frame 2,048; run 3 to frame 1,024 (plus 1,300 and 1,400 saved)
Import binding bound ...: 88 hle, 427 host, 72 title, 0 missing — nothing fell through to a stub
Menus 30.0 fps / 33.3 ms, 0 dropped draws

(The logs do not record the adapter model; they record only whether WARP was in use. We are not asserting a GPU model here.)


The failure taxonomy

shader does not translate; its pipelines' draws are dropped stage=<s> hash=<h> error=<e> fired 303 times in run 3 (272 in run 2). Grouping by error string:

Class What it is Count Share Error strings (verbatim)
A Mask / control-flow tracking 127 41.9% a select on an untracked mask (64), a lane mask holding lanes elsewhere read as data (60), a lane-mask join of an untracked mask (3)
B Descriptor tracking 62 20.5% a descriptor read only as data (51), a descriptor read from the first lane of computed VGPRs (4), a descriptor's address or format read as data (3), a descriptor neither loaded nor built (2), a descriptor partly joined by control flow (1), a descriptor chosen by control flow (1)
C Address / root-parameter tracking 49 16.2% an address in an SGPR that is no root parameter (31), an address not from a root parameter (16), an address from a phi (2)
D Structured buffer / scalar memory 45 14.9% a structured buffer of unknown stride (27), a scalar memory read as data (18)
E Instruction not implemented 12 4.0% image_gather4_l (7), image_sample_d_cl (3), an LDS write of bytes or halves (2)
F 64-bit image atomic 6 2.0% a 64-bit image atomic (6)
J Other 2 0.7% barycentrics read directly (1), an LDS operation (1)
G Merged geometry / MS mixing 0 0% —
H Ray-tracing builder (BVH) 0 0% xboxbvhbuilder.dll maps with 0 missing imports; no program of it was reached
I Needs 64-lane waves 0 0% wave64 / 64-lane: 0 hits in all three logs
Sum 303 100%

The split that matters: A through D are the translator has not modelled a dataflow — mask provenance, descriptor provenance, address provenance, buffer element size. E through J are this instruction or semantic is not implemented. 283 vs 20.

By stage: compute 272, mesh 14, pixel 13, vertex 4.

Hashes, for correlating with your own runs (stage in brackets). A: ce79e9eba7ae0348 (compute), b2ff2ef0d6c98dd7 (compute), 8b9483919d8d5e99 (compute). B: 00167d58cc5a78d7 (compute), fb5e4cf7091f9525 (mesh), fe660f2d6d57de76 (mesh), 11eeb27c2d15980d (compute). C: 3cea4534bbc15632, 6d7fe7745ab9c6d8, d9978c76c746d809 (all compute). D: 17af15c4015cb4b6 (compute), 4e35b816f2f91d68 (vertex). E: fc5e66f8f873d3bb (compute), ee41ebc3eb3fbbdc (pixel), e535cfd7baac93b8 (compute).


The world frame draws more than it drops, but it drops a lot

Metric run 2 run 3
Draws per frame, peak 1,976 3,919
Dropped per frame, peak 3,587 2,966
Dropped per frame, range over world frames 352 – 3,587 1,219 – 2,966
of which indirect, range 0 – 3,549 0 – 3,175
Dropped in the menu segment 0 0
Frame time, worst 11,689.7 ms 9,315.2 ms

The log line is N draws/frame, dropped M without a host pipeline (K being made) and I indirect. Note the range lower bounds: the first world frames drop little (draw 5 / drop 25 as the world starts), so the peak figure is not a floor. We have written the full range rather than the peak-loading subset, because the peak-loading subset is the misleading one.

No GPU hang. device removed, 0x887a0005, TDR and gpu hang are 0 in both real-GPU runs. There were 24 (run 2) and 26 (run 3) slow host submission events over 250 ms, worst 5,727 ms — close enough to the default 2 s TDR threshold that the risk you document is real, but it did not fire here.

Read together with the taxonomy: the dark world is not a GPU that stopped. It is a frame that issues 900–3,900 draws and simultaneously drops 1,200–3,600 because the pipelines do not exist.


Title-memory copies during the world segment

Same runs, CPU-side preparation per frame:

Metric (world segment) run 2 run 3
CPU preparation, worst frame 626.6 ms 1,013.4 ms
— of which copies 489.9 ms 679.2 ms
— bytes copied 312.6 MB 435.4 MB
Copies throughput 1.57 ms/MB 1.56 ms/MB

Several hundred MB of copy per frame at ~1.5 ms/MB sits in the same order of magnitude as the GPU time on those frames. Anything that reduces copied bytes hits both sides. We are not proposing a design here — watch.rs already journals dirty 64 KiB pages with an asking number so overlapping host copies do not re-copy each other's pages, and shadow.rs's copy_stale coalesces stale pages into runs before copying. This section is only the numbers.

For comparison, from a different title state in our own project, four independent implementations we compared: a content hash on top of write watching measured 25 MB/frame down to 3 MB/frame of actual upload on their corpus. That is a different title state and a different corpus, so treat the ratio as an illustration, not a prediction.


What we are not claiming

  • Three minutes, one machine, one title build. The proportions will move with run length and content; the method is what transfers, not the constants.
  • G, H and I being 0 means not reached in this window. A longer run or a different save may reach them. We are reporting what the window contains, not what the title contains.
  • We have not verified that fixing A–D is sufficient to light the scene. Given that the frame drops more draws than it issues, our own read is that it is necessary and probably not sufficient.

Related PRs will be linked here. Anything we propose as code goes there rather than into this thread.

Measurements by Project Leonida, 2026-11-24. AI-assisted write-up, human-verified against the logs.

Follow-ups: analysis rules for the largest failure classes in #1482; comments on #694 and #1343. Related PRs will be linked here.

**@⁠MoonYueya** on GitHub · 2026-11-24 18:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/1481) ### What this is A second, independent GTA VI Xbox→PC attempt (project *Project Leonida*) ran this repository, built from source at `ffe310e`, against a retail title dump, and classified every shader that failed to translate during world load. Counts, error strings and hashes only — no game bytes, no shader names, no paths. **Assembled with AI assistance**, then checked line by line against the raw logs. Every number below is reproducible with the commands in the appendix. The short version: > **303 translation failures in a three-minute world window. 283 of them (93.4%) are dataflow the translator has not modelled, not instructions it does not implement.** > The three gaps the README names — 64-bit image atomics, merged geometry stages, the ray-tracing builder — account for **6 of 303 (2.0%)**, and two of the three are zero in this window. --- ### Setup and window | Item | Value | |---|---| | Build | `cargo build --profile diag -p victory --features diagnostics`, no source changes | | Runs | 3 × 180 s, killed by `taskkill /F` (exit 1 is ours, not the title's); 0 panics, no crash log | | Runs reported | run 2 and run 3, real GPU; run 1 was WARP and is excluded | | Frames reached | run 2 to frame 2,048; run 3 to frame 1,024 (plus 1,300 and 1,400 saved) | | Import binding | `bound ...: 88 hle, 427 host, 72 title, 0 missing` — nothing fell through to a stub | | Menus | 30.0 fps / 33.3 ms, **0 dropped draws** | *(The logs do not record the adapter model; they record only whether WARP was in use. We are not asserting a GPU model here.)* --- ### The failure taxonomy `shader does not translate; its pipelines' draws are dropped stage=<s> hash=<h> error=<e>` fired **303** times in run 3 (272 in run 2). Grouping by error string: | Class | What it is | Count | Share | Error strings (verbatim) | |---|---|---:|---:|---| | **A** | Mask / control-flow tracking | **127** | 41.9% | `a select on an untracked mask` (64), `a lane mask holding lanes elsewhere read as data` (60), `a lane-mask join of an untracked mask` (3) | | **B** | Descriptor tracking | **62** | 20.5% | `a descriptor read only as data` (51), `a descriptor read from the first lane of computed VGPRs` (4), `a descriptor's address or format read as data` (3), `a descriptor neither loaded nor built` (2), `a descriptor partly joined by control flow` (1), `a descriptor chosen by control flow` (1) | | **C** | Address / root-parameter tracking | **49** | 16.2% | `an address in an SGPR that is no root parameter` (31), `an address not from a root parameter` (16), `an address from a phi` (2) | | **D** | Structured buffer / scalar memory | **45** | 14.9% | `a structured buffer of unknown stride` (27), `a scalar memory read as data` (18) | | **E** | Instruction not implemented | **12** | 4.0% | `image_gather4_l` (7), `image_sample_d_cl` (3), `an LDS write of bytes or halves` (2) | | **F** | 64-bit image atomic | **6** | 2.0% | `a 64-bit image atomic` (6) | | **J** | Other | **2** | 0.7% | `barycentrics read directly` (1), `an LDS operation` (1) | | **G** | Merged geometry / MS mixing | **0** | 0% | — | | **H** | Ray-tracing builder (BVH) | **0** | 0% | `xboxbvhbuilder.dll` maps with 0 missing imports; no program of it was reached | | **I** | Needs 64-lane waves | **0** | 0% | `wave64` / `64-lane`: 0 hits in all three logs | | | **Sum** | **303** | 100% | | **The split that matters:** A through D are *the translator has not modelled a dataflow* — mask provenance, descriptor provenance, address provenance, buffer element size. E through J are *this instruction or semantic is not implemented*. 283 vs 20. By stage: compute 272, mesh 14, pixel 13, vertex 4. **Hashes, for correlating with your own runs** (stage in brackets). A: `ce79e9eba7ae0348` (compute), `b2ff2ef0d6c98dd7` (compute), `8b9483919d8d5e99` (compute). B: `00167d58cc5a78d7` (compute), `fb5e4cf7091f9525` (mesh), `fe660f2d6d57de76` (mesh), `11eeb27c2d15980d` (compute). C: `3cea4534bbc15632`, `6d7fe7745ab9c6d8`, `d9978c76c746d809` (all compute). D: `17af15c4015cb4b6` (compute), `4e35b816f2f91d68` (vertex). E: `fc5e66f8f873d3bb` (compute), `ee41ebc3eb3fbbdc` (pixel), `e535cfd7baac93b8` (compute). --- ### The world frame draws more than it drops, but it drops a lot | Metric | run 2 | run 3 | |---|---:|---:| | Draws per frame, peak | 1,976 | **3,919** | | Dropped per frame, peak | **3,587** | 2,966 | | Dropped per frame, range over world frames | **352 – 3,587** | 1,219 – 2,966 | | of which indirect, range | 0 – 3,549 | 0 – 3,175 | | Dropped in the menu segment | **0** | **0** | | Frame time, worst | 11,689.7 ms | 9,315.2 ms | The log line is `N draws/frame, dropped M without a host pipeline (K being made) and I indirect`. Note the range lower bounds: the first world frames drop little (draw 5 / drop 25 as the world starts), so the peak figure is not a floor. We have written the full range rather than the peak-loading subset, because the peak-loading subset is the misleading one. **No GPU hang.** `device removed`, `0x887a0005`, `TDR` and `gpu hang` are **0** in both real-GPU runs. There were 24 (run 2) and 26 (run 3) `slow host submission` events over 250 ms, worst **5,727 ms** — close enough to the default 2 s TDR threshold that the risk you document is real, but it did not fire here. **Read together with the taxonomy:** the dark world is not a GPU that stopped. It is a frame that issues 900–3,900 draws and simultaneously drops 1,200–3,600 because the pipelines do not exist. --- ### Title-memory copies during the world segment Same runs, CPU-side preparation per frame: | Metric (world segment) | run 2 | run 3 | |---|---:|---:| | CPU preparation, worst frame | 626.6 ms | **1,013.4 ms** | | — of which copies | 489.9 ms | 679.2 ms | | — bytes copied | 312.6 MB | **435.4 MB** | | Copies throughput | 1.57 ms/MB | 1.56 ms/MB | Several hundred MB of copy per frame at ~1.5 ms/MB sits in the same order of magnitude as the GPU time on those frames. Anything that reduces copied bytes hits both sides. We are **not** proposing a design here — `watch.rs` already journals dirty 64 KiB pages with an asking number so overlapping host copies do not re-copy each other's pages, and `shadow.rs`'s `copy_stale` coalesces stale pages into runs before copying. This section is only the numbers. For comparison, from a different title state in our own project, four independent implementations we compared: a content hash on top of write watching measured **25 MB/frame down to 3 MB/frame** of actual upload on their corpus. That is a different title state and a different corpus, so treat the ratio as an illustration, not a prediction. --- ### What we are not claiming - Three minutes, one machine, one title build. The proportions will move with run length and content; the method is what transfers, not the constants. - G, H and I being 0 means *not reached in this window*. A longer run or a different save may reach them. We are reporting what the window contains, not what the title contains. - We have not verified that fixing A–D is sufficient to light the scene. Given that the frame drops more draws than it issues, our own read is that it is necessary and probably not sufficient. **Related PRs will be linked here.** Anything we propose as code goes there rather than into this thread. *Measurements by Project Leonida, 2026-11-24. AI-assisted write-up, human-verified against the logs.* **Follow-ups:** analysis rules for the largest failure classes in #1482; comments on #694 and #1343. Related PRs will be linked here.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:33:32 +00:00
Author
Owner

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

One way to make the 93.4% figure easier to use for prioritization: on ffe310e, Shader::translated logs a failed translation once per distinct container in the process. The 303 warnings measure the breadth of shader failures. Their relative frequencies do not weight how often a shader's pipelines drop work. Container deduplication and translation warning

I verified the distinction with a synthetic victory-gpu diagnostics unit test against that revision. Two distinct non-translatable containers, with the first requested eight times, emitted two warnings. Feeding the same sequence into the drop counter recorded nine shader-related drops. A separate sample recorded three drops under being made without any new translation warnings. One test passed. No title or GPU was involved.

For a second, workload-weighted view, the existing dropped …/frame without a host pipeline lines can rank the biggest reasons within logged samples. They report the top 40 reasons for the sampled interval, and a failed pipeline can list multiple shaders on one line. Treat those combined entries as one drop bucket if aggregating them. Drop reasons · Sampling and output

AI-assisted source review and synthetic test.

**@⁠Ingenioeren** on GitHub · 2026-11-24 18:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/1481#issuecomment-7140595599) One way to make the 93.4% figure easier to use for prioritization: on `ffe310e`, `Shader::translated` logs a failed translation once per distinct container in the process. The 303 warnings measure the breadth of shader failures. Their relative frequencies do not weight how often a shader's pipelines drop work. [Container deduplication and translation warning](https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/src/pipeline.rs#L74-L129) I verified the distinction with a synthetic `victory-gpu` diagnostics unit test against that revision. Two distinct non-translatable containers, with the first requested eight times, emitted two warnings. Feeding the same sequence into the drop counter recorded nine shader-related drops. A separate sample recorded three drops under `being made` without any new translation warnings. One test passed. No title or GPU was involved. For a second, workload-weighted view, the existing `dropped …/frame without a host pipeline` lines can rank the biggest reasons within logged samples. They report the top 40 reasons for the sampled interval, and a failed pipeline can list multiple shaders on one line. Treat those combined entries as one drop bucket if aggregating them. [Drop reasons](https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/src/pipeline/make.rs#L71-L90) · [Sampling and output](https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/src/host.rs#L1502-L1546) _AI-assisted source review and synthetic test._
Author
Owner

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

Automated triage for the maintainers.

A census of translation failures (ffe310e, three-minute world window). The translation-failure census and which refusals cost the most draws are collected in #293, so this is tracked there. The warning is logged once per distinct shader, so the counts measure breadth, not how many draws each failure drops; the per-frame dropped … without a host pipeline reasons weight it by draws.

Offline censuses posted since (whole archive, translate --list --validate, DXC 1.8 validator, programs not draws):

  • On 67e8ae1 / 13f91ca: 25,665 programs emit, 24,846 validate, 29 do not emit. The 867 Flags must match usage. rejections on 940d32f are gone, fixed by a1a2077 (Shader::finish in crates/victory-shader/src/emit/shader.rs sets flags::UAVS_EVERY_STAGE for vertex, geometry and mesh programs with UAVs). Every vertex and pixel program that emits now validates.
  • What remains, ranked: 748 compute rejections (operations incompatible with the stage, the implicit-derivative sampling case; open PRs #2027 and #1065), 195 an address in an SGPR that is no root parameter, 71 mesh output-size rejections (#201, #1961), then a tail of 29 emit refusals in classes of 13 or fewer.
  • The 195 are one geometry-program family. main has no geometry-stage path, so the census contains no Gs programs at all, and the tracker refusal is only the first wall. Open PR #1315 (single-stream triangle geometry programs) takes the 195 to 0 with no other count changing, per the measurement on that PR. #2387, #2546, #2154 and #2295 move no count on this archive.

#139 (merged after 13f91ca, crates/victory-shader/src/resource.rs) changes how memory addresses are traced, so a rerun on current main (61bfc77) would show whether any of these counts moved; please name the commit.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/1481#issuecomment-7159580210) · edited 2026-11-25 21:47 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T21:03:48Z at=2026-11-25T21:59:00Z --> Automated triage for the maintainers. A census of translation failures (`ffe310e`, three-minute world window). The translation-failure census and which refusals cost the most draws are collected in #293, so this is tracked there. The warning is logged once per distinct shader, so the counts measure breadth, not how many draws each failure drops; the per-frame `dropped … without a host pipeline` reasons weight it by draws. **Offline censuses posted since** (whole archive, `translate --list --validate`, DXC 1.8 validator, programs not draws): - On `67e8ae1` / `13f91ca`: 25,665 programs emit, 24,846 validate, 29 do not emit. The 867 `Flags must match usage.` rejections on `940d32f` are gone, fixed by a1a2077 (`Shader::finish` in `crates/victory-shader/src/emit/shader.rs` sets `flags::UAVS_EVERY_STAGE` for vertex, geometry and mesh programs with UAVs). Every vertex and pixel program that emits now validates. - What remains, ranked: **748** compute rejections (operations incompatible with the stage, the implicit-derivative sampling case; open PRs #2027 and #1065), **195** `an address in an SGPR that is no root parameter`, **71** mesh output-size rejections (#201, #1961), then a tail of 29 emit refusals in classes of 13 or fewer. - The 195 are one geometry-program family. `main` has no geometry-stage path, so the census contains no `Gs` programs at all, and the tracker refusal is only the first wall. Open PR #1315 (single-stream triangle geometry programs) takes the 195 to 0 with no other count changing, per the measurement on that PR. #2387, #2546, #2154 and #2295 move no count on this archive. #139 (merged after `13f91ca`, `crates/victory-shader/src/resource.rs`) changes how memory addresses are traced, so a rerun on current `main` (61bfc77) would show whether any of these counts moved; please name the commit. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 16:29 UTC · original

Refreshed this census on main 940d32f, 319 commits after the ffe310e it was taken on: the translator now emits all but 100 programs of the archive, and what stops the other 1,673 is the validator, not dataflow.

Your classification is the thing people prioritise shader work from, and it was measured 319 commits ago in the area of the tree that takes the most pull requests per day, so I re-ran the equivalent offline over the whole shader archive. CPU only, no GPU and no world run: translate <archive> --list --validate --jobs 6, 204 s and 215 s. Validator is the official DXC archive dxil.dll (release 1.8), not the installed SDK one, because of what #1945 found about the installed engine misreporting.

Coverage on main 940d32f, 26,503 containers / 26,084 programs

stage emitted validated emitted but rejected
vertex and pixel 14,205 of 14,247 13,338 867
compute 2,621 of 2,679 1,886 735
mesh 8,765 of 8,765 8,694 71
all 25,591 of 26,084 23,918 1,673

Every refusal, by count

count where reason
867 validator Flags must match usage.
735 validator Entry function performs some operation that is incompatible with the shader stage or other entry properties.
195 resources an address in an SGPR that is no root parameter
71 validator vertex plus primitive output size is greater than 32768
40 emit a register joining a lane mask and data, read as data
36 emit a descriptor read only as data
8 emit a lane mask read as data
6 emit a lane-mask join of an untracked mask
5 emit v_cvt_f32_f64
3 resources a descriptor neither loaded nor built
3 emit barycentrics read directly
1 emit v_permlanex16_b32
1 emit a descriptor chosen by control flow

The emit: rows sum to exactly 100, which is the 42 vertex/pixel plus 58 compute that did not emit, so the table accounts for itself. The 195 and 3 are resource-tracking failures (resources 25,886 of 26,084 tracked) and do not stop emission.

What changed, and what it means for where effort goes

  • Dataflow no longer dominates the translator's own refusals. Your categories A-D were 283 of 303; here the equivalent emit: classes are 90 of 25,591 emitted programs, and the whole emit tail is 100. The translator has evidently absorbed most of that in 319 commits.
  • The validator is now 16.7x the bigger wall: 1,673 programs emit and are then rejected, against 100 that never emit.
  • 1,602 of those 1,673 are two already-identified causes. The 867 is Flags must match usage — the same count #1973 and #1987 report as a regression since cd94d35, and #2016 is open against it. The 735 matches FIND-10's 735 compute programs exactly, the dx.op.sample derivatives problem #2027 and #1065 address. I did not know those would land on the published numbers to the program when I started; that they do is a good sign for both reports.
  • The 71 mesh rejections are the output budget of #201 and #1961.

So on the current tree the ranked translator-side work is: the 867 flags regression, then the 735 compute derivatives, then the 195 address-tracking gap, then the 71 mesh budget — and only then the dataflow classes that most of the open shader pull requests are aimed at, which are worth 40, 36, 8 and 6 programs archive-wide.

What this does not say. It counts programs in the archive, not draws in a frame, so it cannot replace your world-window weighting — one refused program used by thousands of draws still costs more than fifty that never run. It is also translator plus validator only: no host pipeline creation and no host-specific options (wave size, mesh support), so it says nothing about what a given GPU then refuses. And it is one archive on one build; the commands above reproduce it.

Counts, validator strings and stage totals only — no program names, hashes, offsets or paths, and nothing from the game.

AI-assisted (Claude Code); every figure is from the two runs described.

**@⁠BaggyALPHA** on GitHub · 2026-11-25 16:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/1481#issuecomment-7168057568) **Refreshed this census on `main` `940d32f`, 319 commits after the `ffe310e` it was taken on: the translator now emits all but 100 programs of the archive, and what stops the other 1,673 is the validator, not dataflow.** Your classification is the thing people prioritise shader work from, and it was measured 319 commits ago in the area of the tree that takes the most pull requests per day, so I re-ran the equivalent offline over the whole shader archive. CPU only, no GPU and no world run: `translate <archive> --list --validate --jobs 6`, 204 s and 215 s. Validator is the official DXC archive `dxil.dll` (release 1.8), not the installed SDK one, because of what #1945 found about the installed engine misreporting. **Coverage on `main` `940d32f`, 26,503 containers / 26,084 programs** | stage | emitted | validated | emitted but rejected | |---|---:|---:|---:| | vertex and pixel | 14,205 of 14,247 | 13,338 | **867** | | compute | 2,621 of 2,679 | 1,886 | **735** | | mesh | 8,765 of 8,765 | 8,694 | **71** | | **all** | **25,591 of 26,084** | **23,918** | **1,673** | **Every refusal, by count** | count | where | reason | |---:|---|---| | 867 | validator | `Flags must match usage.` | | 735 | validator | `Entry function performs some operation that is incompatible with the shader stage or other entry properties.` | | 195 | resources | `an address in an SGPR that is no root parameter` | | 71 | validator | `vertex plus primitive output size is greater than 32768` | | 40 | emit | `a register joining a lane mask and data, read as data` | | 36 | emit | `a descriptor read only as data` | | 8 | emit | `a lane mask read as data` | | 6 | emit | `a lane-mask join of an untracked mask` | | 5 | emit | `v_cvt_f32_f64` | | 3 | resources | `a descriptor neither loaded nor built` | | 3 | emit | `barycentrics read directly` | | 1 | emit | `v_permlanex16_b32` | | 1 | emit | `a descriptor chosen by control flow` | The `emit:` rows sum to exactly 100, which is the 42 vertex/pixel plus 58 compute that did not emit, so the table accounts for itself. The 195 and 3 are resource-tracking failures (`resources 25,886 of 26,084 tracked`) and do not stop emission. **What changed, and what it means for where effort goes** - **Dataflow no longer dominates the translator's own refusals.** Your categories A-D were 283 of 303; here the equivalent `emit:` classes are 90 of 25,591 emitted programs, and the whole emit tail is 100. The translator has evidently absorbed most of that in 319 commits. - **The validator is now 16.7x the bigger wall**: 1,673 programs emit and are then rejected, against 100 that never emit. - **1,602 of those 1,673 are two already-identified causes.** The 867 is `Flags must match usage` — the same count #1973 and #1987 report as a regression since `cd94d35`, and #2016 is open against it. The 735 matches `FIND-10`'s 735 compute programs exactly, the `dx.op.sample` derivatives problem #2027 and #1065 address. I did not know those would land on the published numbers to the program when I started; that they do is a good sign for both reports. - The 71 mesh rejections are the output budget of #201 and #1961. So on the current tree the ranked translator-side work is: the 867 flags regression, then the 735 compute derivatives, then the 195 address-tracking gap, then the 71 mesh budget — and only then the dataflow classes that most of the open shader pull requests are aimed at, which are worth 40, 36, 8 and 6 programs archive-wide. **What this does not say.** It counts programs in the archive, not draws in a frame, so it cannot replace your world-window weighting — one refused program used by thousands of draws still costs more than fifty that never run. It is also translator plus validator only: no host pipeline creation and no host-specific options (wave size, mesh support), so it says nothing about what a given GPU then refuses. And it is one archive on one build; the commands above reproduce it. Counts, validator strings and stage totals only — no program names, hashes, offsets or paths, and nothing from the game. AI-assisted (Claude Code); every figure is from the two runs described.
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 19:52 UTC · original

Update, and a correction to my own figures: main moved 82 commits while I was measuring, and the largest item in that table is now zero. One issue is left holding 91% of the validator rejections.

My census above was taken on 940d32f. By the time I posted it main was at 67e8ae1 — 82 commits in about three hours, including a1a2077 ("vertex, geometry and mesh programs with UAVs say so in their flags"), which is the fix for the 867. I also wrote that "#2016 is open against it", which understated things: the fix had already landed on main, and #1989 was closed as superseded while I was running. Re-ran the same archive with the same validator on 67e8ae1.

emitted validated of not emitted emitted but rejected
940d32f 25,591 23,918 25,691 100 1,673
67e8ae1 25,665 24,846 25,694 29 819
+74 +928 +3 −71 −854

Per reason, both runs:

reason 940d32f 67e8ae1
validator: Flags must match usage. 867 0
validator: entry incompatible with the shader stage 735 748
resources: an address in an SGPR that is no root parameter 195 195
validator: vertex plus primitive output size is greater than 32768 71 71
emit: a register joining a lane mask and data, read as data 40 0
emit: a descriptor read only as data 36 1
emit: a lane-mask join of an untracked mask 6 13
emit: a lane mask read as data 8 8
emit: v_cvt_f32_f64 5 5
emit: barycentrics read directly 3 1
resources: a descriptor neither loaded nor built 3 0
emit: a descriptor chosen by control flow 1 0
emit: v_permlanex16_b32 1 1

Vertex and pixel programs now validate 14,242 of 14,242 emitted — every one that emits passes. So a1a2077 recovered the 867 on the corpus, which is the confirmation #1973 and #1987 were asking for, and 850b66f / 54ab406 took a descriptor read only as data from 36 to 1.

What this leaves, ranked. The compute entry-point rejection is now 748 of the 819 rejections, 91% — the dx.op.sample derivatives problem of FIND-10, which #2027 and #1065 are the competing answers to. Then an address in an SGPR that is no root parameter at 195, unchanged by any of the 82 commits. Then the mesh output budget at 71 (#201, #1961). Then 29 programs that do not emit at all, spread over six classes of 13 or fewer.

That is a different ordering from the one I posted an hour ago and very different from the ffe310e classification: the dataflow classes most of the open shader pull requests aim at are now worth 13, 8, 5 and 1 programs archive-wide, while one compute issue holds 748.

The meta-point, which I think matters more than either table. A census of this tree is stale within hours — mine was superseded before I posted it, by commits that moved its biggest line from 867 to 0. Anything that prioritises shader work off a fixed snapshot (including the ffe310e one at the top of this issue, and both of mine) should carry its commit and be re-run rather than cited later. The two commands take seven minutes on six cores, so re-running is cheaper than reasoning from an old number.

Same caveats as before: programs in the archive, not draws in a frame; translator plus validator only, no host pipeline creation; official DXC archive dxil.dll rather than the installed SDK one. Counts and validator strings only — nothing from the game.

AI-assisted (Claude Code); both runs are as described.

**@⁠BaggyALPHA** on GitHub · 2026-11-25 19:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/1481#issuecomment-7172884006) **Update, and a correction to my own figures: `main` moved 82 commits while I was measuring, and the largest item in that table is now zero. One issue is left holding 91% of the validator rejections.** My census above was taken on `940d32f`. By the time I posted it `main` was at `67e8ae1` — 82 commits in about three hours, including `a1a2077` ("vertex, geometry and mesh programs with UAVs say so in their flags"), which is the fix for the 867. I also wrote that "#2016 is open against it", which understated things: the fix had already landed on `main`, and #1989 was closed as superseded while I was running. Re-ran the same archive with the same validator on `67e8ae1`. | | emitted | validated | of | not emitted | emitted but rejected | |---|---:|---:|---:|---:|---:| | `940d32f` | 25,591 | 23,918 | 25,691 | 100 | 1,673 | | `67e8ae1` | 25,665 | 24,846 | 25,694 | **29** | **819** | | | +74 | +928 | +3 | −71 | **−854** | Per reason, both runs: | reason | `940d32f` | `67e8ae1` | |---|---:|---:| | validator: `Flags must match usage.` | 867 | **0** | | validator: entry incompatible with the shader stage | 735 | **748** | | resources: `an address in an SGPR that is no root parameter` | 195 | 195 | | validator: `vertex plus primitive output size is greater than 32768` | 71 | 71 | | emit: `a register joining a lane mask and data, read as data` | 40 | **0** | | emit: `a descriptor read only as data` | 36 | **1** | | emit: `a lane-mask join of an untracked mask` | 6 | 13 | | emit: `a lane mask read as data` | 8 | 8 | | emit: `v_cvt_f32_f64` | 5 | 5 | | emit: `barycentrics read directly` | 3 | 1 | | resources: `a descriptor neither loaded nor built` | 3 | **0** | | emit: `a descriptor chosen by control flow` | 1 | **0** | | emit: `v_permlanex16_b32` | 1 | 1 | Vertex and pixel programs now validate **14,242 of 14,242 emitted** — every one that emits passes. So `a1a2077` recovered the 867 on the corpus, which is the confirmation #1973 and #1987 were asking for, and `850b66f` / `54ab406` took `a descriptor read only as data` from 36 to 1. **What this leaves, ranked.** The compute entry-point rejection is now **748 of the 819 rejections, 91%** — the `dx.op.sample` derivatives problem of `FIND-10`, which #2027 and #1065 are the competing answers to. Then `an address in an SGPR that is no root parameter` at 195, unchanged by any of the 82 commits. Then the mesh output budget at 71 (#201, #1961). Then 29 programs that do not emit at all, spread over six classes of 13 or fewer. That is a different ordering from the one I posted an hour ago and very different from the `ffe310e` classification: the dataflow classes most of the open shader pull requests aim at are now worth 13, 8, 5 and 1 programs archive-wide, while one compute issue holds 748. **The meta-point, which I think matters more than either table.** A census of this tree is stale within hours — mine was superseded before I posted it, by commits that moved its biggest line from 867 to 0. Anything that prioritises shader work off a fixed snapshot (including the `ffe310e` one at the top of this issue, and both of mine) should carry its commit and be re-run rather than cited later. The two commands take seven minutes on six cores, so re-running is cheaper than reasoning from an old number. Same caveats as before: programs in the archive, not draws in a frame; translator plus validator only, no host pipeline creation; official DXC archive `dxil.dll` rather than the installed SDK one. Counts and validator strings only — nothing from the game. AI-assisted (Claude Code); both runs are as described.
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 20:51 UTC · original

Class C on current main: the one refusal that still fires 195 times has no open pull request aimed at it, and the three that quote it fix neighbours this archive never hits.

Following the census above, I took the Class C cluster and measured the candidates rather than reading their titles. Same tree for every row (main 13f91ca), each pull request merged onto it on its own, rebuilt from scratch (four crates recompiled per row, build logs checked so no row could be a stale binary), then the same offline census over the same archive and validator.

row validated emitted address in an SGPR that is no root parameter compute mesh
main 13f91ca 24,846 25,665 195 748 71
+ #2387 24,846 25,665 195 748 71
+ #2546 24,846 25,665 195 748 71
+ #2154 24,846 25,665 195 748 71
+ #2295 24,846 25,665 195 748 71

No row moves any number. The reason is not that the changes are wrong — it is that they target different strings, which do not occur in this archive at all:

refusal targeted by occurrences on main over shaders.rpf sites still in resource.rs
an address in an SGPR that is no root parameter — 195 3
an address not from a root parameter #2387 0 3
an address from a phi #2387 0 2
an offset from a root parameter #2154 0 2
an address into a descriptor heap with an untracked high half #2546 0 4

So all four code paths still exist and none is reached by the title's shaders on current main. My own search is what conflated them: I had looked for pull requests quoting the 195's string, and these quote it because they cite this issue's Class C, not because they fix it.

What I am not saying. "Recovers nothing here" is not "worth nothing". #2387 measures itself against the native compute corpus of #815 (418 → 339 → 64), which is not this archive, and a tracer that keeps origins across XOR swaps or stops checking the high half of a table address can be right on its own terms and guard against regressions, with no program in this corpus to show for it. #2295 is victory-gpu only, and the offline census creates no host pipelines (0 pipelines in every row), so this method cannot measure it at all — its row above is evidence of nothing.

What it does mean for whoever triages this cluster. Of Class C's 49 in the ffe310e window, what is left on main is one refusal at 195, and I can find no open pull request addressing it. That looks like the largest translator-side gap with nobody on it — the 748 has #1065 ready for review, the 867 landed as a1a2077, and the mesh 71 is #201/#1961.

Method as before: counts and refusal strings only, no program names, hashes, offsets or paths; translator plus validator, no host pipelines; official DXC archive dxil.dll rather than the installed SDK engine. Every row reproducible with translate <archive> --list --validate --jobs 6.

AI-assisted (Claude Code); all figures from the five runs described.

**@⁠BaggyALPHA** on GitHub · 2026-11-25 20:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/1481#issuecomment-7174273924) **Class C on current `main`: the one refusal that still fires 195 times has no open pull request aimed at it, and the three that quote it fix neighbours this archive never hits.** Following the census above, I took the Class C cluster and measured the candidates rather than reading their titles. Same tree for every row (`main` `13f91ca`), each pull request merged onto it on its own, rebuilt from scratch (four crates recompiled per row, build logs checked so no row could be a stale binary), then the same offline census over the same archive and validator. | row | validated | emitted | `address in an SGPR that is no root parameter` | compute | mesh | |---|---:|---:|---:|---:|---:| | `main` `13f91ca` | 24,846 | 25,665 | **195** | 748 | 71 | | + #2387 | 24,846 | 25,665 | 195 | 748 | 71 | | + #2546 | 24,846 | 25,665 | 195 | 748 | 71 | | + #2154 | 24,846 | 25,665 | 195 | 748 | 71 | | + #2295 | 24,846 | 25,665 | 195 | 748 | 71 | No row moves any number. The reason is not that the changes are wrong — it is that they target different strings, which do not occur in this archive at all: | refusal | targeted by | occurrences on `main` over `shaders.rpf` | sites still in `resource.rs` | |---|---|---:|---:| | `an address in an SGPR that is no root parameter` | — | **195** | 3 | | `an address not from a root parameter` | #2387 | **0** | 3 | | `an address from a phi` | #2387 | **0** | 2 | | `an offset from a root parameter` | #2154 | **0** | 2 | | `an address into a descriptor heap with an untracked high half` | #2546 | **0** | 4 | So all four code paths still exist and none is reached by the title's shaders on current `main`. My own search is what conflated them: I had looked for pull requests quoting the 195's string, and these quote it because they cite this issue's Class C, not because they fix it. **What I am not saying.** "Recovers nothing here" is not "worth nothing". #2387 measures itself against the native compute corpus of #815 (`418 → 339 → 64`), which is not this archive, and a tracer that keeps origins across XOR swaps or stops checking the high half of a table address can be right on its own terms and guard against regressions, with no program in this corpus to show for it. #2295 is `victory-gpu` only, and the offline census creates no host pipelines (`0 pipelines` in every row), so this method cannot measure it at all — its row above is evidence of nothing. **What it does mean for whoever triages this cluster.** Of Class C's 49 in the `ffe310e` window, what is left on `main` is one refusal at 195, and I can find no open pull request addressing it. That looks like the largest translator-side gap with nobody on it — the 748 has #1065 ready for review, the 867 landed as `a1a2077`, and the mesh 71 is #201/#1961. Method as before: counts and refusal strings only, no program names, hashes, offsets or paths; translator plus validator, no host pipelines; official DXC archive `dxil.dll` rather than the installed SDK engine. Every row reproducible with `translate <archive> --list --validate --jobs 6`. AI-assisted (Claude Code); all figures from the five runs described.
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 21:03 UTC · original

Correcting my comment above: the 195 do have a pull request aimed at them, and they are not a tracking gap. #1315 clears the whole bucket.

I wrote that the 195 an address in an SGPR that is no root parameter looked like "the largest translator-side gap with nobody on it" and that I could find no open pull request addressing it. Both halves were wrong, and @⁠kotekompotek had already shown why thirty minutes before I posted it: all 195 are one geometry program family failing at the same instruction, where the base pair is an ABI-provided GS pointer, and the tracker refusal is only the first wall — Gs programs do not reach emit on main at all. The real gap is the geometry stage path.

My own census says the same thing, and I had the evidence in hand without reading it: the baseline contains 12,051 Ps, 8,765 Ms, 2,658 Cs, 2,191 Vs and zero Gs. An absent stage is not a tracking bug, and loosening the tracker would not have translated one of those programs. My mistake was to treat a refusal count as a work item without asking which stage it came from.

So I measured the geometry-stage pull request I had skipped, the same way as the others:

emitted validated resources tracked the 195
main 13f91ca 25,665 24,846 25,889 / 26,084 195
+ #1315 25,860 25,041 26,084 / 26,084 0
+195 +195 +195 −195

195 Gs programs appear, emit and validate; every other refusal is unchanged, so nothing is traded. Details on that pull request.

Two corrections to the ranking I gave earlier, then:

  • The Class C survivor is not unowned. #1315 is the one that moves it, and #2387 / #2546 / #2154 / #2295 remain measurably neutral on this corpus — that part of my earlier comment stands, but the conclusion I drew from it does not.
  • A refusal count alone is a poor work item. Three of the four buckets on main now resolve to something other than what their string suggests: the 748 is a validator-version question (#1065), the 71 is an output budget (#201 / #1961), and the 195 is an absent stage (#1315). Only the small emit tail is what it looks like.

AI-assisted (Claude Code); the table is from the two runs described, and the stage counts from the same censuses as above.

**@⁠BaggyALPHA** on GitHub · 2026-11-25 21:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/1481#issuecomment-7174559433) **Correcting my comment above: the 195 do have a pull request aimed at them, and they are not a tracking gap. #1315 clears the whole bucket.** I wrote that the 195 `an address in an SGPR that is no root parameter` looked like "the largest translator-side gap with nobody on it" and that I could find no open pull request addressing it. Both halves were wrong, and @⁠kotekompotek had already shown why [thirty minutes before I posted it](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633): all 195 are one geometry program family failing at the same instruction, where the base pair is an ABI-provided GS pointer, and the tracker refusal is only the first wall — `Gs` programs do not reach emit on `main` at all. The real gap is the geometry stage path. My own census says the same thing, and I had the evidence in hand without reading it: the baseline contains **12,051 `Ps`, 8,765 `Ms`, 2,658 `Cs`, 2,191 `Vs` and zero `Gs`**. An absent stage is not a tracking bug, and loosening the tracker would not have translated one of those programs. My mistake was to treat a refusal count as a work item without asking which stage it came from. So I measured the geometry-stage pull request I had skipped, the same way as the others: | | emitted | validated | resources tracked | the 195 | |---|---:|---:|---:|---:| | `main` `13f91ca` | 25,665 | 24,846 | 25,889 / 26,084 | 195 | | + #1315 | 25,860 | 25,041 | 26,084 / 26,084 | **0** | | | +195 | **+195** | +195 | −195 | 195 `Gs` programs appear, emit and validate; every other refusal is unchanged, so nothing is traded. Details [on that pull request](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1315). Two corrections to the ranking I gave earlier, then: - The Class C survivor is **not** unowned. #1315 is the one that moves it, and #2387 / #2546 / #2154 / #2295 remain measurably neutral on this corpus — that part of my earlier comment stands, but the conclusion I drew from it does not. - A refusal count alone is a poor work item. Three of the four buckets on `main` now resolve to something other than what their string suggests: the 748 is a validator-version question (#1065), the 71 is an output budget (#201 / #1961), and the 195 is an absent stage (#1315). Only the small emit tail is what it looks like. AI-assisted (Claude Code); the table is from the two runs described, and the stage counts from the same censuses as above.
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#1481
No description provided.