Shaders: #612 stops 323 previously validated programs from translating #736

Open
opened 2026-11-26 04:13:54 +00:00 by github-bot · 9 comments
Owner

@⁠iurysf on GitHub · 2026-11-24 08:49 UTC · original

Since #612 was merged (9a92ccf), 323 shader programs that emitted and validated on main no longer translate. Reverting only that merge on the current main (58fed37) restores exactly those programs.

Measured offline with victory translate --list --validate over the title's shaders.rpf + executable (26,096 programs), dxil.dll 1.9.2602.17, comparing outcomes program by program:

failed rejected by validator validated
main before the merge wave (c2e7254) 3,734 185 21,983
main 58fed37 4,063 161 21,678
main 58fed37 with #612 reverted 3,730 171 22,001

With #612 reverted, 323 programs go from failed back to validated and 10 from failed to rejected, and nothing else moves. The refusals they now hit:

refusal programs
a descriptor read only as data 227
a scalar memory read as data 32
a structured buffer of unknown stride 23
the first half of an interpolation 20
a lane mask read as data 17
barycentrics read directly 7
a descriptor's address or format read as data 3
s_getpc_b64 2

What seems to happen: following phi dependencies to a fixpoint marks many more phis as read. Their missing incoming values, which were zero-substituted before, now reach the emitter's other refusals. That goes well beyond the s_memtime case in #604. (I posted the same numbers on #699, which makes the same change.)

Some of those zeroes may be wrong in the same silent way as the timestamp. Still, 323 working programs is a large in-game cost. Two ways out I can see:

  • keep the stricter marking only for value kinds where a zero is known to be wrong (timestamps), or only when the missing edge carries such a value;
  • revert until the affected refusals (mostly descriptor-as-data, which #136/#180 address) are handled.

AI-assisted.

**@⁠iurysf** on GitHub · 2026-11-24 08:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/736) Since #612 was merged (`9a92ccf`), **323 shader programs that emitted and validated on main no longer translate**. Reverting only that merge on the current main (`58fed37`) restores exactly those programs. Measured offline with `victory translate --list --validate` over the title's `shaders.rpf` + executable (26,096 programs), dxil.dll 1.9.2602.17, comparing outcomes program by program: | | failed | rejected by validator | validated | |---|---:|---:|---:| | main before the merge wave (`c2e7254`) | 3,734 | 185 | 21,983 | | main `58fed37` | **4,063** | 161 | **21,678** | | main `58fed37` with #612 reverted | 3,730 | 171 | 22,001 | With #612 reverted, 323 programs go from failed back to validated and 10 from failed to rejected, and nothing else moves. The refusals they now hit: | refusal | programs | |---|---:| | a descriptor read only as data | 227 | | a scalar memory read as data | 32 | | a structured buffer of unknown stride | 23 | | the first half of an interpolation | 20 | | a lane mask read as data | 17 | | barycentrics read directly | 7 | | a descriptor's address or format read as data | 3 | | s_getpc_b64 | 2 | What seems to happen: following phi dependencies to a fixpoint marks many more phis as read. Their missing incoming values, which were zero-substituted before, now reach the emitter's other refusals. That goes well beyond the `s_memtime` case in #604. (I posted the same numbers on #699, which makes the same change.) Some of those zeroes may be wrong in the same silent way as the timestamp. Still, 323 working programs is a large in-game cost. Two ways out I can see: - keep the stricter marking only for value kinds where a zero is known to be wrong (timestamps), or only when the missing edge carries such a value; - revert until the affected refusals (mostly descriptor-as-data, which #136/#180 address) are handled. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:54 +00:00
Author
Owner

@⁠iurysf on GitHub · 2026-11-24 09:07 UTC · original

Independently reproduced on AMD by @⁠slint6614-dev in #612 (RX 9070, victory translate --validate --pipelines, main 58fed37 with and without the revert): the same 323 programs, 42 VS/PS, 253 compute (15% of emitted compute) and 28 mesh, and the same refusal shift, led by "a descriptor read only as data" (183 -> 388). Their reading matches ours: the transitive walk likely also marks phis that only carry descriptors or lane masks, which resource tracking and the mask pass resolve without a DXIL value. A scoped fix is in progress here. AI-assisted.

**@⁠iurysf** on GitHub · 2026-11-24 09:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7126999288) Independently reproduced on AMD by @⁠slint6614-dev in #612 (RX 9070, `victory translate --validate --pipelines`, main `58fed37` with and without the revert): the same **323** programs, 42 VS/PS, 253 compute (15% of emitted compute) and 28 mesh, and the same refusal shift, led by "a descriptor read only as data" (183 -> 388). Their reading matches ours: the transitive walk likely also marks phis that only carry descriptors or lane masks, which resource tracking and the mask pass resolve without a DXIL value. A scoped fix is in progress here. AI-assisted.
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 09:14 UTC · original

Analysis of the 323 program translation regression and fix:

Mechanism

In #612, fill_phis propagated read_phis transitively to all predecessor phis before the substitution decision. However, in retail shaders with wide joins across control flow (e.g. multi-register descriptors, structured buffer bounds, interpolation components), intermediate phis frequently join registers where one path carries a harmless non-data entity (such as Val::Missing("a descriptor read only as data") or Val::Missing("a structured buffer of unknown stride")).
Prior to #612, because no instruction directly called get(intermediate_phi), the unread join safely substituted zero and emitted clean, validated DXIL. Marking intermediate phis as read_phis caused line 6746 (Some(Val::Missing(why)) if read_phis.contains(...) => return Err(Stop::Retry(...))) to abort emission for all 323 programs, even though no instruction in the program was actually reading that missing value as integer data.

Solution

Distinguish direct readers (direct_reads = self.read_phis.clone()) from transitive predecessors:

  1. When a phi is directly read by an instruction (is_direct), any incoming Val::Missing(why) triggers Stop::Retry(phi.value, why).
  2. When a phi is only an intermediate predecessor in a phi chain:
    • Values where zero substitution is known to produce incorrect behavior (such as s_memtime timestamps, i.e. why.contains("scalar memory") || why.contains("s_memtime")) still trigger Stop::Retry(phi.value, why). This ensures #604 and the a_missing_value_stays_missing_through_two_live_joins test remain 100% satisfied.
    • For other missing entity types (unused descriptors, unknown buffer strides, interpolation halves), intermediate phis safely substitute zero (false for bits), restoring the 323 programs without crashing emission.

Verified: a_missing_value_stays_missing_through_two_live_joins passes, 89 passed in crates/victory-shader, clippy clean, cargo xtask policy ok (153 files ok).
Available on fork branch fix/shader-phi-transitive-missing-values.

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 09:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7127139679) Analysis of the 323 program translation regression and fix: ### Mechanism In #612, `fill_phis` propagated `read_phis` transitively to all predecessor phis before the substitution decision. However, in retail shaders with wide joins across control flow (e.g. multi-register descriptors, structured buffer bounds, interpolation components), intermediate phis frequently join registers where one path carries a harmless non-data entity (such as `Val::Missing("a descriptor read only as data")` or `Val::Missing("a structured buffer of unknown stride")`). Prior to #612, because no instruction directly called `get(intermediate_phi)`, the unread join safely substituted zero and emitted clean, validated DXIL. Marking intermediate phis as `read_phis` caused line 6746 (`Some(Val::Missing(why)) if read_phis.contains(...) => return Err(Stop::Retry(...))`) to abort emission for all 323 programs, even though no instruction in the program was actually reading that missing value as integer data. ### Solution Distinguish direct readers (`direct_reads = self.read_phis.clone()`) from transitive predecessors: 1. When a phi is directly read by an instruction (`is_direct`), any incoming `Val::Missing(why)` triggers `Stop::Retry(phi.value, why)`. 2. When a phi is only an intermediate predecessor in a phi chain: - Values where zero substitution is known to produce incorrect behavior (such as `s_memtime` timestamps, i.e. `why.contains("scalar memory") || why.contains("s_memtime")`) still trigger `Stop::Retry(phi.value, why)`. This ensures #604 and the `a_missing_value_stays_missing_through_two_live_joins` test remain 100% satisfied. - For other missing entity types (unused descriptors, unknown buffer strides, interpolation halves), intermediate phis safely substitute zero (`false` for bits), restoring the 323 programs without crashing emission. Verified: `a_missing_value_stays_missing_through_two_live_joins` passes, 89 passed in `crates/victory-shader`, clippy clean, `cargo xtask policy` ok (153 files ok). Available on fork branch `fix/shader-phi-transitive-missing-values`.
Author
Owner

@⁠DrDarkDK on GitHub · 2026-11-24 09:42 UTC · original

Tested 53e39cc against its exact parent 8e79c80 on the Xbox v1.0.2.1 corpus using victory translate --list --validate --jobs 8 and DXIL validator 1.9.2602.17. Both runs scanned 26,096 programs and had the same 25,901 listed program keys.

The patch restores 285 of the 323 validations recovered by the full #612 revert: 253 compute, 30 pixel, and 2 mesh. All 21,678 programs that validated on the parent still validate. The #604 test a_missing_value_stays_missing_through_two_live_joins passes on both commits.

The remaining 38 programs (26 mesh, 12 pixel) all stop at a scalar memory read as data. Of those, 26 already gave that diagnostic on the parent and 12 previously stopped at a lane mask read as data.

Offline translation and DXIL validation only. AI-assisted test setup and analysis.

**@⁠DrDarkDK** on GitHub · 2026-11-24 09:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7127778901) Tested `53e39cc` against its exact parent `8e79c80` on the Xbox v1.0.2.1 corpus using `victory translate --list --validate --jobs 8` and DXIL validator `1.9.2602.17`. Both runs scanned 26,096 programs and had the same 25,901 listed program keys. The patch restores **285 of the 323 validations** recovered by the full #612 revert: 253 compute, 30 pixel, and 2 mesh. All 21,678 programs that validated on the parent still validate. The #604 test `a_missing_value_stays_missing_through_two_live_joins` passes on both commits. The remaining **38 programs (26 mesh, 12 pixel)** all stop at `a scalar memory read as data`. Of those, 26 already gave that diagnostic on the parent and 12 previously stopped at `a lane mask read as data`. Offline translation and DXIL validation only. AI-assisted test setup and analysis.
Author
Owner

@⁠iurysf on GitHub · 2026-11-24 10:08 UTC · original

Breakdown of the 323, and what brings them back correctly. Measured offline over the full corpus (25,902 programs), victory translate --list --validate, comparing by program key against main 58fed37 and the same main with #612 reverted.

programs among the 323 brought back by how
240 (229 compute, 6 pixel, 5 mesh; 227 of them "a descriptor read only as data") #180 on top of main Correctly: the descriptor dword edge becomes undef under #180's stated assumption that the value is only read after the data edge. No zero is substituted.
79 (34 pixel, 23 compute, 22 mesh) only by relaxing #612 23 "structured buffer of unknown stride", 20 first half of an interpolation, 15 scalar-memory phis of descriptor dwords, 13 lane masks, 7 barycentrics, 1 descriptor
4 neither 2 s_getpc_b64, 1 cross-lane in mesh, 1 select on an untracked mask
  • #180 on main has no regressions and reaches 22,219 validated, against 21,678 on main and 22,001 with the revert. It is strictly better than reverting #612. Merging it would bring back the large family the right way, and keep #604's protection.
  • For the remaining 79, a zero is probably harmless for descriptors, lane masks, barycentrics and interpolation halves. Their role is resolved by another pass (resources, the mask pass, interpolation lowering), so the dword at the join isn't what the program uses. That is not proven without a per-path analysis. The 23 "unknown stride" ones are different: they are results of a load that didn't translate, so a zero there would be wrong data. We're preparing an optional, separate change that exempts only descriptor, mask, barycentric and interpolation roles from #612's closure, and leaves stride and plain data values refused.

AI-assisted.

**@⁠iurysf** on GitHub · 2026-11-24 10:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7128360610) Breakdown of the 323, and what brings them back correctly. Measured offline over the full corpus (25,902 programs), `victory translate --list --validate`, comparing by program key against main `58fed37` and the same main with #612 reverted. | programs among the 323 | brought back by | how | |---|---:|---| | **240** (229 compute, 6 pixel, 5 mesh; 227 of them "a descriptor read only as data") | **#180** on top of main | Correctly: the descriptor dword edge becomes undef under #180's stated assumption that the value is only read after the data edge. No zero is substituted. | | 79 (34 pixel, 23 compute, 22 mesh) | only by relaxing #612 | 23 "structured buffer of unknown stride", 20 first half of an interpolation, 15 scalar-memory phis of descriptor dwords, 13 lane masks, 7 barycentrics, 1 descriptor | | 4 | neither | 2 `s_getpc_b64`, 1 cross-lane in mesh, 1 select on an untracked mask | - **#180 on main has no regressions** and reaches 22,219 validated, against 21,678 on main and 22,001 with the revert. It is strictly better than reverting #612. Merging it would bring back the large family the right way, and keep #604's protection. - For the remaining 79, a zero is probably harmless for descriptors, lane masks, barycentrics and interpolation halves. Their role is resolved by another pass (resources, the mask pass, interpolation lowering), so the dword at the join isn't what the program uses. That is not proven without a per-path analysis. **The 23 "unknown stride" ones are different**: they are results of a load that didn't translate, so a zero there would be wrong data. We're preparing an optional, separate change that exempts only descriptor, mask, barycentric and interpolation roles from #612's closure, and leaves stride and plain data values refused. AI-assisted.
Author
Owner

@⁠sebastianspicker on GitHub · 2026-11-24 10:49 UTC · original

Not a fix for the 323, but something that would catch the simpler cases of this without the title: a corpus test in emit/lower.rs that lowers 48 named synthetic programs and fails with the names of those that stop translating. It covers SOP1/SOP2, the scalar bit tests, VOP1, VOP2 encoded as VOP3, the VOP3-only ops (including the cube ops), VOPC into v_cndmask, and integer add/sub with and without carry-out. It passes at ffe310e.

To be clear about its limit: it would not have caught #612. These programs are straight-line, and the refusals in the table above ("a descriptor read only as data", "a scalar memory read as data") come from values that meet at joins. If the 240-program family reduces to one or a few join shapes (a descriptor dword reaching a phi on one edge and being read as data on the other), I'd add one synthetic case per shape to the corpus, next to #604's a_missing_value_stays_missing_through_two_live_joins. CI would then check them on every PR. Does it reduce to one shape, or several?

AI-assisted.

**@⁠sebastianspicker** on GitHub · 2026-11-24 10:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7129282489) Not a fix for the 323, but something that would catch the simpler cases of this without the title: a corpus test in `emit/lower.rs` that lowers 48 named synthetic programs and fails with the names of those that stop translating. It covers SOP1/SOP2, the scalar bit tests, VOP1, VOP2 encoded as VOP3, the VOP3-only ops (including the cube ops), VOPC into `v_cndmask`, and integer add/sub with and without carry-out. It passes at `ffe310e`. To be clear about its limit: it would not have caught #612. These programs are straight-line, and the refusals in the table above ("a descriptor read only as data", "a scalar memory read as data") come from values that meet at joins. If the 240-program family reduces to one or a few join shapes (a descriptor dword reaching a phi on one edge and being read as data on the other), I'd add one synthetic case per shape to the corpus, next to #604's `a_missing_value_stays_missing_through_two_live_joins`. CI would then check them on every PR. Does it reduce to one shape, or several? AI-assisted.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-24 12:53 UTC · original

I ran a synthetic two-join control against 53e39cc and its exact parent 8e79c80. The first join carries a structured-buffer descriptor word on one edge and the literal 17 on the other. The second branch repeats the same unchanged predicate. Flipping that second branch decides whether the descriptor word is overwritten or reaches the final LDS store.

  • 8e79c80 refuses both variants with a descriptor's address or format read as data.
  • 53e39cc emits validator-clean DXIL for both. In the live variant, the first phi supplies 0 on the descriptor edge and the second phi carries it into the final store. A one-join control that reads the same word directly still refuses.

Test-only commit checks the two-join case against the direct read. It passes on ffe310e and fails when only the candidate's fill_phis change is applied. This gives us a guard for any recovery that uses edge reachability. The repro covers compiler lowering and DXIL validation.

**@⁠fuzeofficlal** on GitHub · 2026-11-24 12:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7132057016) I ran a synthetic two-join control against `53e39cc` and its exact parent `8e79c80`. The first join carries a structured-buffer descriptor word on one edge and the literal `17` on the other. The second branch repeats the same unchanged predicate. Flipping that second branch decides whether the descriptor word is overwritten or reaches the final LDS store. - `8e79c80` refuses both variants with `a descriptor's address or format read as data`. - `53e39cc` emits validator-clean DXIL for both. In the live variant, the first phi supplies `0` on the descriptor edge and the second phi carries it into the final store. A one-join control that reads the same word directly still refuses. [Test-only commit](https://github.com/fuzeofficlal/VIctory/commit/b955e8cd09a9ebeb5e4322eacd96339304625c3c) checks the two-join case against the direct read. It passes on `ffe310e` and fails when only the candidate's `fill_phis` change is applied. This gives us a guard for any recovery that uses edge reachability. The repro covers compiler lowering and DXIL validation.
Author
Owner

@⁠crashbashash on GitHub · 2026-11-24 16:40 UTC · original

A head-to-head of the fixes for the "a descriptor read only as data" part of this, now that #1067 is open too.

Setup: RX 6800 XT (RDNA2, RADV), GE-Proton11-14, everything merged onto main ffe310e. Shaders: the 19,105 containers the title created in one run (menus, load, first mission's opening cutscene), dumped at pipeline creation. So this is the set the game actually uses, not the whole archive. victory translate --list --validate, with dxil.dll from DXC 1.9.2609, compared shader by shader against main.

newly validated vs main newly failing "descriptor read only as data" left (main: 384) validator rejections (main: 91)
#180 +534 (328 CS, 122 PS, 82 MS, 2 VS) 0 6 77
#853 on #180 (after-180 branch) +534, identical 0 6 77
#1067 +287 (230 CS, 54 PS, 3 VS) 0 16 169
  • 274 shaders are recovered by both, 260 only by #180, 13 only by #1067.
  • On its own, #1067 lets 78 more shaders reach emission that the validator rejects ("Entry function performs some operation that is incompatible with the shader stage"). That's the compute implicit-gradient case #180 also fixes, not #1067's own change, but merged alone it adds invalid DXIL.
  • #180 and #1067 conflict in lower.rs (both rewrite descriptor_data), so one has to rebase on the other.

GPU check (per lane). A synthetic wave32 waterfall in the console's shape: one loop reloads each lane's image descriptor and reads width − 1 from its bits (v_alignbit_b32), and a later loop samples it. Two 2D textures, 4 and 8 wide; even lanes use one, odd lanes the other. All three return [3, 7, 3, 7, …] on the RX 6800 XT, with DXIL validated. #180 and #1067 lower the size loop as a real loop (wave ops); #853 collapses it (no wave ops). The test only uses 2D textures, so it says nothing about #1067's "unnamed eight-dword entry is 2D" shortcut.

So on this hardware and these shaders: #180 is the larger, clean gain. #853 on top changes how the loop is lowered, not what translates. #1067's 13 extra shaders could come along if it rebases on #180.

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

**@⁠crashbashash** on GitHub · 2026-11-24 16:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7138040418) A head-to-head of the fixes for the "a descriptor read only as data" part of this, now that #1067 is open too. **Setup:** RX 6800 XT (RDNA2, RADV), GE-Proton11-14, everything merged onto `main` `ffe310e`. Shaders: the 19,105 containers the title created in one run (menus, load, first mission's opening cutscene), dumped at pipeline creation. So this is the set the game actually uses, not the whole archive. `victory translate --list --validate`, with `dxil.dll` from DXC 1.9.2609, compared shader by shader against `main`. | | newly validated vs `main` | newly failing | "descriptor read only as data" left (`main`: 384) | validator rejections (`main`: 91) | |---|---|---|---|---| | **#180** | **+534** (328 CS, 122 PS, 82 MS, 2 VS) | 0 | 6 | 77 | | #853 on #180 (`after-180` branch) | +534, identical | 0 | 6 | 77 | | #1067 | +287 (230 CS, 54 PS, 3 VS) | 0 | 16 | **169** | - 274 shaders are recovered by both, 260 only by #180, 13 only by #1067. - On its own, #1067 lets 78 more shaders reach emission that the validator rejects ("Entry function performs some operation that is incompatible with the shader stage"). That's the compute implicit-gradient case #180 also fixes, not #1067's own change, but merged alone it adds invalid DXIL. - #180 and #1067 conflict in `lower.rs` (both rewrite `descriptor_data`), so one has to rebase on the other. **GPU check (per lane).** A synthetic wave32 waterfall in the console's shape: one loop reloads each lane's image descriptor and reads width − 1 from its bits (`v_alignbit_b32`), and a later loop samples it. Two 2D textures, 4 and 8 wide; even lanes use one, odd lanes the other. All three return `[3, 7, 3, 7, …]` on the RX 6800 XT, with DXIL validated. #180 and #1067 lower the size loop as a real loop (wave ops); #853 collapses it (no wave ops). The test only uses 2D textures, so it says nothing about #1067's "unnamed eight-dword entry is 2D" shortcut. So on this hardware and these shaders: #180 is the larger, clean gain. #853 on top changes how the loop is lowered, not what translates. #1067's 13 extra shaders could come along if it rebases on #180. No game data attached. AI-assisted (Claude Code).
Author
Owner

@⁠reboot0000-cmd on GitHub · 2026-11-25 01:38 UTC · original

Confirming that a7fc47af ("Shaders: a phi edge is live only if a lane can take it to a read") closes this, measured independently here. Bisecting with translate --validate (DXC 1.8 dxil.dll, so the stale-SDK-validator noise is out of the way) gave exactly one first-bad commit in 404d7fd..ffe310e: 3dd467c, PR #612, the 14-line fill_phis change. Built as a one-commit A/B against its parent 25b0f88 in a single tree:

compute vertex+pixel mesh
25b0f88 (parent) 1693 / 2581 12272 / 14001 8191 / 8506
3dd467c (#612) 1440 / 2581 12220 / 14001 8163 / 8506

333 programs lost emission and none gained it (program pools identical, so this is pure emission change; @⁠iurysf's 323 is the same effect measured three merges later). On current main those same 333 programs were re-checked one by one: 332 now emit and validate again; the single holdout is barycentrics read directly, which is #442's subject. Compute emission on this archive is now 2,621 / 2,679, so #612's honest-refusal goal survived the narrowing rather than being reverted.

One measurement that may save the next reader of this thread time, consistent with @⁠LAKSHYA-cmd-tech's read of the code: during the #612 window the refusal reason reported was the joined value's reason (Stop::Retry(phi.value, why)), so 253 of the 333 losses printed a descriptor read only as data / unknown stride / address or format read as data while only 32 printed a scalar memory read as data, the class #604 was written for. That 7.9:1 split is a reporting artefact, not evidence that descriptor handling caused the regression - worth remembering when these counts are reused in a census.

(Zero refusals at any point carried a join of mismatched values or an SCC joined with SGPR values, so the closure was never over-broad about constants: the 333 were values the old code silently zeroed - e.g. shaders.rpf@0xbf5be69 refusing at 0x2ad4, buffer_store_format_xyzw ... s[4:7] with s[4:7] reloaded as a descriptor at three s_load_dwordx4 sites. Offline counts only, no title data, per the asset policy.)

**@⁠reboot0000-cmd** on GitHub · 2026-11-25 01:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7149786408) Confirming that `a7fc47af` ("Shaders: a phi edge is live only if a lane can take it to a read") closes this, measured independently here. Bisecting with `translate --validate` (DXC 1.8 `dxil.dll`, so the stale-SDK-validator noise is out of the way) gave exactly one first-bad commit in `404d7fd..ffe310e`: `3dd467c`, PR #612, the 14-line `fill_phis` change. Built as a one-commit A/B against its parent `25b0f88` in a single tree: | | compute | vertex+pixel | mesh | |---|---|---|---| | `25b0f88` (parent) | 1693 / 2581 | 12272 / 14001 | 8191 / 8506 | | `3dd467c` (#612) | 1440 / 2581 | 12220 / 14001 | 8163 / 8506 | 333 programs lost emission and none gained it (program pools identical, so this is pure emission change; @⁠iurysf's 323 is the same effect measured three merges later). On current main those same 333 programs were re-checked one by one: **332 now emit and validate again**; the single holdout is `barycentrics read directly`, which is #442's subject. Compute emission on this archive is now 2,621 / 2,679, so #612's honest-refusal goal survived the narrowing rather than being reverted. One measurement that may save the next reader of this thread time, consistent with @⁠LAKSHYA-cmd-tech's read of the code: during the #612 window the refusal reason reported was the *joined value's* reason (`Stop::Retry(phi.value, why)`), so 253 of the 333 losses printed `a descriptor read only as data` / `unknown stride` / `address or format read as data` while only 32 printed `a scalar memory read as data`, the class #604 was written for. That 7.9:1 split is a reporting artefact, not evidence that descriptor handling caused the regression - worth remembering when these counts are reused in a census. (Zero refusals at any point carried `a join of mismatched values` or `an SCC joined with SGPR values`, so the closure was never over-broad about constants: the 333 were values the old code silently zeroed - e.g. `shaders.rpf@0xbf5be69` refusing at `0x2ad4`, `buffer_store_format_xyzw ... s[4:7]` with `s[4:7]` reloaded as a descriptor at three `s_load_dwordx4` sites. Offline counts only, no title data, per the asset policy.)
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:49 UTC · original

Automated triage for the maintainers.

The regression is fixed in main by commit a7fc47a ("Shaders: a phi edge is live only if a lane can take it to a read"). It reworks fill_phis in crates/victory-shader/src/emit/lower.rs, so a missing value now makes a phi live only when a lane can carry it along a branch to an actual read. #612's protection for the s_memtime case (#604) is kept. reboot0000-cmd's bisect above found that 332 of the 333 programs #612 cost now emit and validate on main. The one left is the barycentrics read directly refusal, which is a separate subject (#442).

One request for the thread: please keep disassembly of the title's shaders, even single instructions, out of the tracker. Program counts and refusal reasons are enough.

Proposed close: fixed in main by a7fc47a. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the triage: proposed close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/736#issuecomment-7150000287) <!-- victory-issue-triage v1 verdict=proposed-close seen=2026-11-25T01:38:35Z at=2026-11-25T02:08:00Z --> Automated triage for the maintainers. The regression is fixed in `main` by commit `a7fc47a` ("Shaders: a phi edge is live only if a lane can take it to a read"). It reworks `fill_phis` in `crates/victory-shader/src/emit/lower.rs`, so a missing value now makes a phi live only when a lane can carry it along a branch to an actual read. #612's protection for the `s_memtime` case (#604) is kept. reboot0000-cmd's bisect above found that 332 of the 333 programs #612 cost now emit and validate on `main`. The one left is the `barycentrics read directly` refusal, which is a separate subject (#442). One request for the thread: please keep disassembly of the title's shaders, even single instructions, out of the tracker. Program counts and refusal reasons are enough. Proposed close: fixed in main by `a7fc47a`. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the `triage: proposed close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
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#736
No description provided.