Shaders: spill-table loads read the arguments as they were on entry (stacked on #302) #489

Closed
github-bot wants to merge 4 commits from gh-pr/489/head into gh-pr/489/base
Owner

@⁠louketa on GitHub · 2026-11-24 04:00 UTC · original
spill-clobber → main · +424 −3 · 4 files · 4 commits · closed without merging

Stacked on #302 (its commit 815178d is the first one here); only the second commit is new.

What

#302 rewrites each spill-table load into s_mov_b32 sK, s(16+k). That reads what s(16+k) holds at that point, not on entry. A program that has already written SGPRs 16 and up, for example as the destination of an earlier table load, then reads the wrong root argument, with no refusal. @⁠r4tedx reported this on #302 with a synthetic repro.

This commit makes the program first copy the user SGPRs its table loads stand for into a block of SGPRs it never reads or writes, and the rewritten loads read that block. If no free block exists below VCC, or a branch can return to the program's entry, nothing is rewritten, so the program fails as it does without #302 instead of binding the wrong argument.

It happens in the title's shaders

I ran the world (opening cutscene) with a local build that saves every container failing at run time. I then translated the 34 programs that fail with an address in an SGPR that is no root parameter offline: before #302, with #302, and with #302 plus this commit. Same stack as in my comment on #302, Windows 11, RTX 3080, v1.0.2.1.

Program #302 #302 + this
3b90165a77d95cdf (largest drop in my world run) an address in an SGPR that is no root parameter passes resource tracking; stops in emit at a root UAV or typed root view
6f6a359d1166bb27 an address from a phi an address from a root parameter that is no address

3b90165a77d95cdf is the case r4tedx described: a 16-dword table load into s[8:23] overwrites what stands for table dwords 0..7 before a second load reads the root UAV address from table dword 2.

Over the 34 programs:

Next failure #302 #302 + this
an address not from a root parameter 12 12
a root UAV or typed root view (emit) 8 11
an address from a root parameter that is no address 6 8
an address in an SGPR that is no root parameter 4 1
an address from a phi 2 0
a select on an untracked mask (emit) 2 2

None of the 34 translate fully yet. The largest remaining group stops at root UAVs in emit, which #294 works on.

Tests

  • New spill_table_loads_read_entry_values: a table load into s[12:19], then a load of table dwords 0..1. It checks that s16 and s17 are read on entry and that the second load's value traces back to s16's entry value. It fails on #302 alone (s16 read on entry) and passes here.
  • spill_table_loads_read_user_sgprs now also counts the entry copies.
  • cargo test -p victory-shader --lib: 72 passed. cargo clippy -p victory-shader --all-targets and cargo fmt --check: clean. cargo xtask policy: ok.

Not verified

  • I have not checked that the translated programs produce the right images; nothing here translates fully yet.
  • victory translate still builds without the spill rule (noted on #302). For the offline numbers I applied the same spilled condition in apps/victory/src/translate.rs locally; that change is not part of this PR.

No game data attached.

🤖 Generated with Claude Code

**@⁠louketa** on GitHub · 2026-11-24 04:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/489) `spill-clobber` → `main` · +424 −3 · 4 files · 4 commits · closed without merging Stacked on #302 (its commit `815178d` is the first one here); only the second commit is new. ## What #302 rewrites each spill-table load into `s_mov_b32 sK, s(16+k)`. That reads what s(16+k) holds **at that point**, not on entry. A program that has already written SGPRs 16 and up, for example as the destination of an earlier table load, then reads the wrong root argument, with no refusal. @⁠r4tedx reported this on #302 with a synthetic repro. This commit makes the program first copy the user SGPRs its table loads stand for into a block of SGPRs it never reads or writes, and the rewritten loads read that block. If no free block exists below VCC, or a branch can return to the program's entry, nothing is rewritten, so the program fails as it does without #302 instead of binding the wrong argument. ## It happens in the title's shaders I ran the world (opening cutscene) with a local build that saves every container failing at run time. I then translated the 34 programs that fail with `an address in an SGPR that is no root parameter` offline: before #302, with #302, and with #302 plus this commit. Same stack as in my comment on #302, Windows 11, RTX 3080, v1.0.2.1. | Program | #302 | #302 + this | |---|---|---| | `3b90165a77d95cdf` (largest drop in my world run) | `an address in an SGPR that is no root parameter` | passes resource tracking; stops in emit at `a root UAV or typed root view` | | `6f6a359d1166bb27` | `an address from a phi` | `an address from a root parameter that is no address` | `3b90165a77d95cdf` is the case r4tedx described: a 16-dword table load into `s[8:23]` overwrites what stands for table dwords 0..7 before a second load reads the root UAV address from table dword 2. Over the 34 programs: | Next failure | #302 | #302 + this | |---|---|---| | `an address not from a root parameter` | 12 | 12 | | `a root UAV or typed root view` (emit) | 8 | 11 | | `an address from a root parameter that is no address` | 6 | 8 | | `an address in an SGPR that is no root parameter` | 4 | 1 | | `an address from a phi` | 2 | 0 | | `a select on an untracked mask` (emit) | 2 | 2 | None of the 34 translate fully yet. The largest remaining group stops at root UAVs in emit, which #294 works on. ## Tests - New `spill_table_loads_read_entry_values`: a table load into `s[12:19]`, then a load of table dwords 0..1. It checks that s16 and s17 are read on entry and that the second load's value traces back to s16's entry value. It **fails on #302 alone** (`s16 read on entry`) and passes here. - `spill_table_loads_read_user_sgprs` now also counts the entry copies. - `cargo test -p victory-shader --lib`: 72 passed. `cargo clippy -p victory-shader --all-targets` and `cargo fmt --check`: clean. `cargo xtask policy`: ok. ## Not verified - I have not checked that the translated programs produce the right images; nothing here translates fully yet. - `victory translate` still builds without the spill rule (noted on #302). For the offline numbers I applied the same `spilled` condition in `apps/victory/src/translate.rs` locally; that change is not part of this PR. No game data attached. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A compute program whose root signature does not fit the 16 user SGPRs
finds its arguments through a spill table: s[0:1] holds a pointer (high
dword masked to 40 bits, usually copied to s2/s3 first) to a table of
the user data, and the program s_loads descriptors and constants from
it. Table dword k is user SGPR 16 + k. The translator only knew
addresses that come from the declared root layout, so every such
program failed with "an address in an SGPR that is no root parameter".

For compute programs whose root layout lies entirely at user SGPR 16 and
above, loads from that pointer with a constant offset become s_mov_b32
copies of the user SGPRs the dwords stand for, before the SSA is built,
so resource tracking and lowering see what they see for ordinary root
arguments. Only straight-line code from the pointer's set-up is
rewritten (tags are dropped at branch targets and on any overwrite of
the pointer registers); other loads stay loads.

On the title's world shaders this took the "SGPR that is no root
parameter" failures from 34 programs to 4 in one run. Other failures
that were hidden behind it now show (address not from a root parameter,
root UAV or typed root view, an address from a phi...). Whether the
translated programs render correctly has not been checked beyond that.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The spill-table rewrite turned each load into `s_mov_b32 sK, s(16+k)`,
which reads what the register holds at that point. A program that has
already written SGPRs 16 and up (the destination of an earlier table
load, say) then reads the wrong root argument, with no refusal.

The program now first copies the user SGPRs its table loads stand for
into a block of SGPRs it never reads or writes, and the loads read that
block. Without such a block below VCC, or when a branch can return to
the program's entry, nothing is rewritten.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With 16 user SGPRs the hardware puts the thread-group ids in s16 and up,
where the spill rule reads root arguments, so a program reading both got
the root argument for the group id (reported on #489). Such programs are
now left to fail as they do without the rule.

victory translate now builds with the same rule, so its counts match the
runtime.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
s_and_b32 on the table pointer's high dword kept its provenance for any
literal mask up to 0xFFFF and any inline constant, so a mask such as 0x7f
or 1, which can point to another table, still had its loads rewritten to
the root arguments. Only a mask keeping the high dword's eight low bits
(40-bit addresses) keeps it now.

Co-authored-by: NexForever <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:05:55 +00:00
github-bot closed this pull request 2026-11-26 04:05:55 +00:00
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 04:02 UTC · original

Verified 279eac1 on Arch Linux x86_64 (rustc 1.98.1, cargo test -p victory-shader): 59 passed, 0 failed, 0 ignored.

Not covered: the spill-table path on a real GPU and title shaders (no game data).

**@⁠DaviTostes** on GitHub · 2026-11-24 04:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7121656893) Verified `279eac1` on **Arch Linux x86_64** (rustc 1.98.1, `cargo test -p victory-shader`): **59 passed, 0 failed, 0 ignored**. Not covered: the spill-table path on a real GPU and title shaders (no game data).
Author
Owner

@⁠marquezinii on GitHub · 2026-11-24 04:51 UTC · original

Ran the spill-table path on a GPU, since that was the part not covered: NVIDIA RTX 5070 (driver 621.24), Windows 11, the SDK's dxil.dll validating. Three synthetic compute programs whose root layout sits wholly at user data 16 and up (8 root constants at 16..23 holding 100..107, a UAV table at 24), built through ir::build with spill tables on, resource::track, io, structure, lower, validated, and dispatched:

case #302 815178d alone this PR 279eac1
no overlap: s_load_dwordx8 s[32:39], read s36 104, correct 104, correct
one load overlapping its own sources: s_load_dwordx8 s[20:27], s[0:1], 0x0, read s24 100 (table dword 0), expected 104 104, correct
an earlier load into s16 and up, then a load read into s12 104, expected 100 100, correct

The second row is a case beside the one r4tedx reported: within a single rewritten load, the s_mov_b32 run reads registers it has just written when the destination starts above the first source and overlaps it. This PR's entry-value block fixes both. All modules validate, and cargo test -p victory-shader passes here (including spill_table_loads_read_entry_values). So on this evidence #302 should only go in together with this commit.

One question for the gating in emit/mod.rs (inherited from #302): it checks that every root parameter is at user SGPR 16 or above, but not the user SGPR count in rsrc2. With 16 or more user SGPRs the thread-group-id SGPRs land at s16 and up too, io would call them GroupId while resource::param_of calls them root parameters, and lower::inputs lets the root parameter win. Gating on at most 16 user SGPRs would turn that into a refusal. I cannot tell from here whether a title does this.

Not covered: the title (no game data here).

**@⁠marquezinii** on GitHub · 2026-11-24 04:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7122400625) Ran the spill-table path on a GPU, since that was the part not covered: NVIDIA RTX 5070 (driver 621.24), Windows 11, the SDK's `dxil.dll` validating. Three synthetic compute programs whose root layout sits wholly at user data 16 and up (8 root constants at 16..23 holding 100..107, a UAV table at 24), built through `ir::build` with spill tables on, `resource::track`, `io`, `structure`, `lower`, validated, and dispatched: | case | #302 `815178d` alone | this PR `279eac1` | |---|---|---| | no overlap: `s_load_dwordx8 s[32:39]`, read s36 | 104, correct | 104, correct | | one load overlapping its own sources: `s_load_dwordx8 s[20:27], s[0:1], 0x0`, read s24 | **100** (table dword 0), expected 104 | 104, correct | | an earlier load into s16 and up, then a load read into s12 | **104**, expected 100 | 100, correct | The second row is a case beside the one r4tedx reported: within a single rewritten load, the `s_mov_b32` run reads registers it has just written when the destination starts above the first source and overlaps it. This PR's entry-value block fixes both. All modules validate, and `cargo test -p victory-shader` passes here (including `spill_table_loads_read_entry_values`). So on this evidence #302 should only go in together with this commit. One question for the gating in `emit/mod.rs` (inherited from #302): it checks that every root parameter is at user SGPR 16 or above, but not the user SGPR count in `rsrc2`. With 16 or more user SGPRs the thread-group-id SGPRs land at s16 and up too, `io` would call them GroupId while `resource::param_of` calls them root parameters, and `lower::inputs` lets the root parameter win. Gating on at most 16 user SGPRs would turn that into a refusal. I cannot tell from here whether a title does this. Not covered: the title (no game data here).
Author
Owner

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

In game on AMD RDNA4 (RX 9060 XT, Windows 11), world / opening cutscene, one run: d2a4bae + #135 + #365 + #318 + #385 + #346 + #305 + #500 + this PR at 279eac1 (with #302's 815178d), diag build plus a local logging patch. The next failures of the 34 programs match your offline #302 + this column exactly (12 / 11 / 8 / 1 / 0 / 2).

Weighted by dropped dispatches of those 34 (about 2,200 per traced frame here, 6 frames):

next failure dispatches/frame
a root UAV or typed root view (11 programs) 834 (38%)
an address from a root parameter that is no address (8) 659 (30%)
still an address in an SGPR … (f6e47efa50226beb alone) 391 (18%)
an address not from a root parameter (12) 322 (15%)
a select on an untracked mask (2) 4

So the one program still on the SGPR rule is the second-largest dropper after 3b90165a77d95cdf. Next here: the same stack with #294.

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

**@⁠ghost** on GitHub · 2026-11-24 05:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7122831797) In game on AMD RDNA4 (RX 9060 XT, Windows 11), world / opening cutscene, one run: `d2a4bae` + #135 + #365 + #318 + #385 + #346 + #305 + #500 + this PR at `279eac1` (with #302's `815178d`), `diag` build plus a local logging patch. The next failures of the 34 programs match your offline `#302 + this` column exactly (12 / 11 / 8 / 1 / 0 / 2). Weighted by dropped dispatches of those 34 (about 2,200 per traced frame here, 6 frames): | next failure | dispatches/frame | |---|---| | `a root UAV or typed root view` (11 programs) | 834 (38%) | | `an address from a root parameter that is no address` (8) | 659 (30%) | | still `an address in an SGPR …` (`f6e47efa50226beb` alone) | 391 (18%) | | `an address not from a root parameter` (12) | 322 (15%) | | `a select on an untracked mask` (2) | 4 | So the one program still on the SGPR rule is the second-largest dropper after `3b90165a77d95cdf`. Next here: the same stack with #294. AI-assisted (Claude Code, Claude Opus 5.5); no game data.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-24 05:23 UTC · original

I checked the GroupId question from @⁠marquezinii's review on 279eac1. With 16 enabled user SGPRs, GroupId.x occupies physical s16 even when the spill table separately provides logical root argument 16. A synthetic compute dispatch reads both values into a fixed output buffer. All modules passed the SDK DXIL validator (1.8.2502.11) before dispatch.

Case RTX 5090 and Radeon iGPU
Group 0 on 279eac1 [100, 100]
Group 0 with the fix [0, 100]
Selected group 1 with the fix [1, 100]

The fix gives spill inputs their own SSA identities and uses the same namespace for a root descriptor's high half. The source commit includes small IR and resource-tracing regressions. The shader suite reports 73 passed. Coverage is the synthetic runtime spill-lowering path. Incremental commit on 279eac1

**@⁠fuzeofficlal** on GitHub · 2026-11-24 05:23 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7122899252) I checked the GroupId question from @⁠marquezinii's review on `279eac1`. With 16 enabled user SGPRs, `GroupId.x` occupies physical `s16` even when the spill table separately provides logical root argument 16. A synthetic compute dispatch reads both values into a fixed output buffer. All modules passed the SDK DXIL validator (1.8.2502.11) before dispatch. | Case | RTX 5090 and Radeon iGPU | | --- | --- | | Group 0 on `279eac1` | `[100, 100]` | | Group 0 with the fix | `[0, 100]` | | Selected group 1 with the fix | `[1, 100]` | The fix gives spill inputs their own SSA identities and uses the same namespace for a root descriptor's high half. The source commit includes small IR and resource-tracing regressions. The shader suite reports 73 passed. Coverage is the synthetic runtime spill-lowering path. [Incremental commit on `279eac1`](https://github.com/fuzeofficlal/VIctory/commit/205b276332bb184aaa31d081941ce0ac5b9fcae0)
Author
Owner

@⁠upipibi on GitHub · 2026-11-24 05:51 UTC · original

Independent check of head 279eac1 (this PR's commit on top of #302's 815178d), which is based on main d2a4bae. I read the comments above first; this adds to them and repeats nothing as new. I found no defect in what this commit does. The GroupId question raised by @⁠marquezinii and answered with a commit by @⁠fuzeofficlal is still open on this head and I did not re-test it.

Read against the RDNA2 ISA (30-November-2020)

  • 7.2.1 "S_LOAD_DWORD", p. 52: ADDR = SGPR[base] + inst_offset + { M0 or SGPR[offset] or zero }, "the two LSBs are ignored". The rewrite takes only loads with no SGPR offset (soffset = 125) and offset >= 0 && offset % 4 == 0 (ir.rs, spill_loads); anything else stays a load and is refused later as before. That is narrower than the hardware (which would drop the two low bits) but never wrong.
  • That table dword k is user SGPR 16 + k, and that s[0:1] is the table pointer, is the console compiler's convention, not ISA. Nothing I can cite confirms or contradicts it; the title counts posted on #302 are the evidence.

Things I looked for and did not find

  • An SGPR writer the tag tracking misses. SOP1/SOP2/SOPK all decode to Fields::Sop with a dst, SMEM writes through data, VALU through dst/carry; those are the only SGPR writers the decoder has. s_movk_i32 s2, 5 between the pointer copy and the load leaves the load a load (probe below).
  • Tags surviving a join. They are cleared at every branch target, and an instruction that is not a target is only reached by falling through, so the linear scan is sound. A load that is itself a branch target, forward or as a loop header, stays a load (probes below).
  • Several instructions with one offset. The rewritten s_mov_b32 run shares the load's offset and the entry copies share the entry's. In build_with that makes ends true for each of them when that offset is a block leader, which sets the block's exit to a jump to itself; the block's real last instruction then overwrites it, so the CFG comes out right. It works, but it depends on that overwrite: worth a comment there, or distinct offsets.
  • The scratch block. It starts above the highest user SGPR read through the table and is checked against every register effects reports, so neither a load's destination nor the pointer copies can land in it. With no free block the original list is returned.

Limits, conservative (still refused, as on main)

  • A pointer copied as a pair, s_mov_b64 s[2:3], s[0:1], is not followed: the load from s[2:3] stays a load.
  • Loads after any branch target are not rewritten, which is where the one remaining an address in an SGPR ... program in the table above probably is.

Run on hardware. NVIDIA RTX 3070, driver 616.56, Windows 11, Rust 1.98.1, dxil.dll from the Windows SDK 10.0.26100 validating; cargo test -p victory-shader -- --test-threads=1:

  • this PR on main: 72 passed, 0 failed (main: 69).

  • with two local tests added: 74 passed, 0 failed.

    • IR probes (build_with(.., spilled = true)), loads left / s_mov_b32 count: load at a forward branch target 1 / 9; pointer copy overwritten by s_movk_i32 1 / 1; s_mov_b64 pointer copy 1 / 0; load at a loop header 1 / 9; a load whose destination covers the pointer copy, then a second load through it 1 / 9. All as they should be.
    • End to end on the GPU and on WARP, a compute program whose whole layout is in the table (8 root constants at user data 16..23 holding 100..107, a UAV table at 24, s0 reused for a literal after the pointer copy), storing the constants it sees:
      loads RTX 3070 WARP
      s_load_dwordx8 s[40:47] 100..107 100..107
      s_load_dwordx8 s[16:23] first, then the same dwords into s[40:47] 100..107 100..107
      s_load_dwordx16 s[12:27] (past the layout), then the two halves, second first 100..107 100..107

    The same three on #302 alone are in my note there.

Not checked: the title (no game files here), AMD hardware, the 16-or-more user SGPR case above.

AI-assisted (Claude Code).

**@⁠upipibi** on GitHub · 2026-11-24 05:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7123337945) Independent check of head `279eac1` (this PR's commit on top of #302's `815178d`), which is based on `main` `d2a4bae`. I read the comments above first; this adds to them and repeats nothing as new. I found no defect in what this commit does. The GroupId question raised by @⁠marquezinii and answered with a commit by @⁠fuzeofficlal is still open on this head and I did not re-test it. **Read against the RDNA2 ISA (30-November-2020)** - 7.2.1 "S_LOAD_DWORD", p. 52: `ADDR = SGPR[base] + inst_offset + { M0 or SGPR[offset] or zero }`, "the two LSBs are ignored". The rewrite takes only loads with no SGPR offset (`soffset` = 125) and `offset >= 0 && offset % 4 == 0` (`ir.rs`, `spill_loads`); anything else stays a load and is refused later as before. That is narrower than the hardware (which would drop the two low bits) but never wrong. - That table dword `k` is user SGPR `16 + k`, and that `s[0:1]` is the table pointer, is the console compiler's convention, not ISA. Nothing I can cite confirms or contradicts it; the title counts posted on #302 are the evidence. **Things I looked for and did not find** - *An SGPR writer the tag tracking misses.* SOP1/SOP2/SOPK all decode to `Fields::Sop` with a `dst`, SMEM writes through `data`, VALU through `dst`/`carry`; those are the only SGPR writers the decoder has. `s_movk_i32 s2, 5` between the pointer copy and the load leaves the load a load (probe below). - *Tags surviving a join.* They are cleared at every branch target, and an instruction that is not a target is only reached by falling through, so the linear scan is sound. A load that is itself a branch target, forward or as a loop header, stays a load (probes below). - *Several instructions with one offset.* The rewritten `s_mov_b32` run shares the load's offset and the entry copies share the entry's. In `build_with` that makes `ends` true for each of them when that offset is a block leader, which sets the block's exit to a jump to itself; the block's real last instruction then overwrites it, so the CFG comes out right. It works, but it depends on that overwrite: worth a comment there, or distinct offsets. - *The scratch block.* It starts above the highest user SGPR read through the table and is checked against every register `effects` reports, so neither a load's destination nor the pointer copies can land in it. With no free block the original list is returned. **Limits, conservative (still refused, as on `main`)** - A pointer copied as a pair, `s_mov_b64 s[2:3], s[0:1]`, is not followed: the load from `s[2:3]` stays a load. - Loads after any branch target are not rewritten, which is where the one remaining `an address in an SGPR ...` program in the table above probably is. **Run on hardware.** NVIDIA RTX 3070, driver 616.56, Windows 11, Rust 1.98.1, `dxil.dll` from the Windows SDK 10.0.26100 validating; `cargo test -p victory-shader -- --test-threads=1`: - this PR on `main`: **72 passed, 0 failed** (`main`: 69). - with two local tests added: **74 passed, 0 failed**. - IR probes (`build_with(.., spilled = true)`), loads left / `s_mov_b32` count: load at a forward branch target 1 / 9; pointer copy overwritten by `s_movk_i32` 1 / 1; `s_mov_b64` pointer copy 1 / 0; load at a loop header 1 / 9; a load whose destination covers the pointer copy, then a second load through it 1 / 9. All as they should be. - End to end on the GPU and on WARP, a compute program whose whole layout is in the table (8 root constants at user data 16..23 holding 100..107, a UAV table at 24, `s0` reused for a literal after the pointer copy), storing the constants it sees: | loads | RTX 3070 | WARP | |---|---|---| | `s_load_dwordx8 s[40:47]` | 100..107 | 100..107 | | `s_load_dwordx8 s[16:23]` first, then the same dwords into `s[40:47]` | 100..107 | 100..107 | | `s_load_dwordx16 s[12:27]` (past the layout), then the two halves, second first | 100..107 | 100..107 | The same three on #302 alone are in my note there. Not checked: the title (no game files here), AMD hardware, the 16-or-more user SGPR case above. AI-assisted (Claude Code).
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 06:24 UTC · original

@⁠Brazlucas a late answer to your ping on #302: yes, this fixes the entry-value defect I reported there, and thank you for taking it on.

What I ran, on an RTX 5070 and WARP, with 279eac1 merged with #294's 0050ce5 and the SDK's dxil.dll validating. One hand-assembled compute program of the shape you describe for the world's largest dropper: every root argument at user data 16 and up, a 16-dword table load into s[8:23], the root UAV's address taken from table dwords 2 and 3, a built descriptor and a buffer_store.

Build Result
no spill rule refused at the first load: an address in an SGPR that is no root parameter
this PR + #294 translates, validates, and the dispatch writes [120, 135] through the root UAV on both adapters, as expected

So the two PRs only pay off together for a program like that, which matches jeremygold02's and nullmarsh's title results on #294.

Two open points, neither new, both reproduced or read here:

  • GroupId in s16 (raised by marquezinii, with a fix commit from fuzeofficlal above). Reproduced on this head: with 16 user SGPRs and the group id enabled, a program that reads both gets [116, 116] where the console gives [116, 0]. I have not tested fuzeofficlal's commit.
  • The CLI still builds without the spill rule (etcetera-yt on #302), so victory translate counts differ from the runtime for these programs.

For the tester tree (integration/testers on my fork): #302 was left out for the defect this fixes. I will take #302 with this PR once the GroupId point is settled in it. #294 is a separate decision, because nullmarsh reports a device hang 16 to 23 s into the world on RDNA4 in every run with it.

Hand-assembled programs only; the title was not used in these tests. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 06:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7123897694) @⁠Brazlucas a late answer to your ping on #302: yes, this fixes the entry-value defect I reported there, and thank you for taking it on. What I ran, on an RTX 5070 and WARP, with `279eac1` merged with #294's `0050ce5` and the SDK's `dxil.dll` validating. One hand-assembled compute program of the shape you describe for the world's largest dropper: every root argument at user data 16 and up, a 16-dword table load into `s[8:23]`, the root UAV's address taken from table dwords 2 and 3, a built descriptor and a `buffer_store`. | Build | Result | |---|---| | no spill rule | refused at the first load: `an address in an SGPR that is no root parameter` | | this PR + #294 | translates, validates, and the dispatch writes `[120, 135]` through the root UAV on both adapters, as expected | So the two PRs only pay off together for a program like that, which matches jeremygold02's and nullmarsh's title results on #294. Two open points, neither new, both reproduced or read here: - **GroupId in `s16`** (raised by marquezinii, with a fix commit from fuzeofficlal above). Reproduced on this head: with 16 user SGPRs and the group id enabled, a program that reads both gets `[116, 116]` where the console gives `[116, 0]`. I have not tested fuzeofficlal's commit. - **The CLI** still builds without the spill rule (etcetera-yt on #302), so `victory translate` counts differ from the runtime for these programs. For the tester tree (`integration/testers` on my fork): #302 was left out for the defect this fixes. I will take #302 with this PR once the GroupId point is settled in it. #294 is a separate decision, because nullmarsh reports a device hang 16 to 23 s into the world on RDNA4 in every run with it. Hand-assembled programs only; the title was not used in these tests. AI-assisted.
Author
Owner

@⁠NexForever on GitHub · 2026-11-24 09:03 UTC · original

Hi! I've been investigating the spill-table handling in #302 and #489, including the proposed Reg::Spill fix by @⁠fuzeofficlal.

During testing, I found an additional issue in ir.rs::spill_loads: the pointer provenance tracker accepts s_and_b32 masks that can clear significant bits of the 40-bit spill-table address.

For example, masks such as 0x7f or 1 may alter the pointer, but the translator still treats subsequent loads as accesses to the original spill table. This can silently produce incorrect root argument values.

Fix: Preserve spill-pointer provenance only when the mask retains all eight significant bits of the address's high dword.

Verification:

  • Regression tests reproduced the issue before the fix.
  • All 5 new regression tests pass after the fix, including inline/literal masks and exhaustive 8-bit mask cases.
  • Shader test suite: 98 passed, 1 ignored.
  • Clippy (-D warnings) and asset-policy checks passed.
  • Four differential tests could not fully execute because optional compiler dependencies were unavailable.
  • No proprietary game data was used.

Fix commit:
github.com/NexForever/VIctory@0c0a3be730

Development branch:
https://github.com/NexForever/VIctory/tree/fix/spill-pointer-mask-provenance

The branch includes #302, #489, and @⁠fuzeofficlal's 205b276 work, with attribution preserved. My pointer-provenance correction is isolated in commit 0c0a3be.

Since PR creation is currently restricted to collaborators, would you prefer to cherry-pick this fix or have me prepare a dedicated PR when contributions reopen?

Thanks for your work on VIctory!

Best,
NexForever

**@⁠NexForever** on GitHub · 2026-11-24 09:03 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7126891518) Hi! I've been investigating the spill-table handling in #302 and #489, including the proposed `Reg::Spill` fix by @⁠fuzeofficlal. During testing, I found an additional issue in `ir.rs::spill_loads`: the pointer provenance tracker accepts `s_and_b32` masks that can clear significant bits of the 40-bit spill-table address. For example, masks such as `0x7f` or `1` may alter the pointer, but the translator still treats subsequent loads as accesses to the original spill table. This can silently produce incorrect root argument values. **Fix:** Preserve spill-pointer provenance only when the mask retains all eight significant bits of the address's high dword. **Verification:** - Regression tests reproduced the issue before the fix. - All 5 new regression tests pass after the fix, including inline/literal masks and exhaustive 8-bit mask cases. - Shader test suite: 98 passed, 1 ignored. - Clippy (`-D warnings`) and asset-policy checks passed. - Four differential tests could not fully execute because optional compiler dependencies were unavailable. - No proprietary game data was used. **Fix commit:** https://github.com/NexForever/VIctory/commit/0c0a3be730c309679d01d09c134ba12955452fb3 **Development branch:** https://github.com/NexForever/VIctory/tree/fix/spill-pointer-mask-provenance The branch includes #302, #489, and @⁠fuzeofficlal's `205b276` work, with attribution preserved. My pointer-provenance correction is isolated in commit `0c0a3be`. Since PR creation is currently restricted to collaborators, would you prefer to cherry-pick this fix or have me prepare a dedicated PR when contributions reopen? Thanks for your work on VIctory! Best, NexForever
Author
Owner

@⁠upipibi on GitHub · 2026-11-24 10:19 UTC · original

On @⁠NexForever's mask point: it is right, and my note above missed it. I checked which instructions write the tracked registers, not which mask values keep the tag.

Read at 279eac1, ir.rs spill_loads: an s_and_b32 of a tag-2 register keeps tag 2 for any literal mask <= 0xFFFF and any inline constant 1..=64 ((129..=192).contains(k)), on either side. So s_and_b32 s3, s1, 1 or , 0x7f still counts as the table pointer's high dword, and a following s_load_dword through it is rewritten to the user SGPRs although the address is a different one. Dropping the tag unless the mask keeps every address bit of the high dword is the conservative fix.

Which bits those are depends on the address width, which is the console's convention and nothing I can cite; the title's own masks (the values counted on #302) are the evidence for the set to accept. I have not built or run 0c0a3be.

AI-assisted (Claude Code).

**@⁠upipibi** on GitHub · 2026-11-24 10:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7128621992) On @⁠NexForever's mask point: it is right, and my note above missed it. I checked which instructions write the tracked registers, not which mask values keep the tag. Read at `279eac1`, `ir.rs` `spill_loads`: an `s_and_b32` of a tag-2 register keeps tag 2 for any literal mask `<= 0xFFFF` and any inline constant 1..=64 (`(129..=192).contains(k)`), on either side. So `s_and_b32 s3, s1, 1` or `, 0x7f` still counts as the table pointer's high dword, and a following `s_load_dword` through it is rewritten to the user SGPRs although the address is a different one. Dropping the tag unless the mask keeps every address bit of the high dword is the conservative fix. Which bits those are depends on the address width, which is the console's convention and nothing I can cite; the title's own masks (the values counted on #302) are the evidence for the set to accept. I have not built or run `0c0a3be`. AI-assisted (Claude Code).
Author
Owner

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

tested the spill table path on rx 6600 xt with an actual gpu execution test, all 64 lanes returned the expected sum of 1111. the negative control without spill rewriting fails as expected.

test:
https://github.com/qntic/VIctory/tree/pub/489-spill-table-test

**@⁠qntic** on GitHub · 2026-11-24 11:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7129830144) tested the spill table path on rx 6600 xt with an actual gpu execution test, all 64 lanes returned the expected sum of 1111. the negative control without spill rewriting fails as expected. test: https://github.com/qntic/VIctory/tree/pub/489-spill-table-test
Author
Owner

@⁠louketa on GitHub · 2026-11-24 12:42 UTC · original

Updated to fe7210e: rebased on main (ffe310e) and three review points taken in. Thanks to everyone who tested this.

Rebase. #302's commit conflicted with main in emit::translate (structurisation now runs before resource tracking). Kept both: build_with(.., spilled), then structure, then track(.., st.as_ref().ok()).

GroupId in s16 (@⁠marquezinii, reproduced by @⁠fuzeofficlal and @⁠r4tedx). The spilled condition moved to NativeProgram::spills_root_args, which now also requires ComputeIo::initialized_sgprs() <= 16: when the hardware puts a group id, the group info or the scratch offset in s16 or above, the rule is off and the program fails as on main instead of reading a root argument for the group id. This is the conservative gate marquezinii proposed, not @⁠fuzeofficlal's 205b276, which gives spill inputs their own identities and would keep such programs translating. If the title's spilled programs turn out to have 16 user SGPRs, that commit is the better fix and I will take it instead.

Mask on the pointer's high dword (@⁠NexForever, confirmed by @⁠upipibi). s_and_b32 keeps the table tag only for a literal mask <= 0xFFFF whose eight low bits are all set; inline constants drop it. Ported from 0c0a3be (co-authored), with the tests adapted to this branch, since it does not have Reg::Spill.

CLI. victory translate now builds with the same rule, so its counts match the runtime.

Tests (Windows 11, Rust 1.98.1):

  • cargo test -p victory-shader --lib: 125 passed, 1 ignored, including the new root_args_spill_only_with_s16_free and spill_table_masks_keep_every_address_bit.
  • cargo clippy -p victory-shader -p victory --all-targets -- -D warnings: clean. cargo xtask policy: ok.
  • cargo fmt --check is clean for the files this PR touches; it reports diffs in other files already on main.

Not verified yet: the s16 gate against the title. I will re-run the 34 programs from my earlier table and post whether any of them now hit the gate.

No game data attached.

**@⁠louketa** on GitHub · 2026-11-24 12:42 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7131812841) Updated to `fe7210e`: rebased on `main` (`ffe310e`) and three review points taken in. Thanks to everyone who tested this. **Rebase.** #302's commit conflicted with `main` in `emit::translate` (structurisation now runs before resource tracking). Kept both: `build_with(.., spilled)`, then `structure`, then `track(.., st.as_ref().ok())`. **GroupId in s16** (@⁠marquezinii, reproduced by @⁠fuzeofficlal and @⁠r4tedx). The `spilled` condition moved to `NativeProgram::spills_root_args`, which now also requires `ComputeIo::initialized_sgprs() <= 16`: when the hardware puts a group id, the group info or the scratch offset in s16 or above, the rule is off and the program fails as on `main` instead of reading a root argument for the group id. This is the conservative gate marquezinii proposed, not @⁠fuzeofficlal's `205b276`, which gives spill inputs their own identities and would keep such programs translating. If the title's spilled programs turn out to have 16 user SGPRs, that commit is the better fix and I will take it instead. **Mask on the pointer's high dword** (@⁠NexForever, confirmed by @⁠upipibi). `s_and_b32` keeps the table tag only for a literal mask `<= 0xFFFF` whose eight low bits are all set; inline constants drop it. Ported from `0c0a3be` (co-authored), with the tests adapted to this branch, since it does not have `Reg::Spill`. **CLI.** `victory translate` now builds with the same rule, so its counts match the runtime. **Tests** (Windows 11, Rust 1.98.1): - `cargo test -p victory-shader --lib`: 125 passed, 1 ignored, including the new `root_args_spill_only_with_s16_free` and `spill_table_masks_keep_every_address_bit`. - `cargo clippy -p victory-shader -p victory --all-targets -- -D warnings`: clean. `cargo xtask policy`: ok. - `cargo fmt --check` is clean for the files this PR touches; it reports diffs in other files already on `main`. **Not verified yet:** the s16 gate against the title. I will re-run the 34 programs from my earlier table and post whether any of them now hit the gate. No game data attached.
Author
Owner

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

re-tested the spill table execution test on the updated head fe7210e on my rx 6600 xt.

all 64 lanes still return the expected sum of 1111. the new ir tests also pass, along with the entire victory-shader suite (126 passed). clippy is clean in both configurations.

updated test:
github.com/qntic/VIctory@ebeca54

**@⁠qntic** on GitHub · 2026-11-24 13:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7132776808) re-tested the spill table execution test on the updated head `fe7210e` on my rx 6600 xt. all 64 lanes still return the expected sum of 1111. the new ir tests also pass, along with the entire victory-shader suite (126 passed). clippy is clean in both configurations. updated test: https://github.com/qntic/VIctory/commit/ebeca54
Author
Owner

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

Follow-up on the s16 gate, checked against the title as promised.

victory translate (release build of fe7210e on main ffe310e) over the same 276 containers that failed at run time in my earlier world run (v1.0.2.1), once as pushed and once with cs.initialized_sgprs() <= 16 removed from spills_root_args: the two reports are identical, line for line. So none of the title's spilled programs in that run has a group id, group info or scratch offset in s16 or above; the gate costs nothing there, and 205b276 is not needed for them.

The spill-related counts match my offline #302 + this column: a root UAV or typed root view 11, an address from a root parameter that is no address 8, an address in an SGPR that is no root parameter 1 (f6e47efa50226beb, still the only one). The CLI now reports these the same way the runtime does, without a local patch.

Not covered: programs outside that one world run, and anything past translation (no DXIL is emitted for these yet).

No game data attached.

**@⁠louketa** on GitHub · 2026-11-24 13:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7132823122) Follow-up on the s16 gate, checked against the title as promised. `victory translate` (release build of `fe7210e` on `main` `ffe310e`) over the same 276 containers that failed at run time in my earlier world run (v1.0.2.1), once as pushed and once with `cs.initialized_sgprs() <= 16` removed from `spills_root_args`: the two reports are identical, line for line. So none of the title's spilled programs in that run has a group id, group info or scratch offset in s16 or above; the gate costs nothing there, and `205b276` is not needed for them. The spill-related counts match my offline `#302 + this` column: `a root UAV or typed root view` 11, `an address from a root parameter that is no address` 8, `an address in an SGPR that is no root parameter` 1 (`f6e47efa50226beb`, still the only one). The CLI now reports these the same way the runtime does, without a local patch. Not covered: programs outside that one world run, and anything past translation (no DXIL is emitted for these yet). No game data attached.
Author
Owner

@⁠louketa on GitHub · 2026-11-24 13:44 UTC · original

On f6e47efa50226beb, the one program still at an address in an SGPR that is no root parameter (about 18% of the dropped dispatches in @⁠nullmarsh's count above). It is not a spill-rule gap, and #710 moves it on.

What it is. The spill rule does rewrite it: 26 entry copies, and the s_load_dwordx16 at entry becomes copies of user SGPRs 32..47. The failing global_load at 0x13ec reads through s[10:11], which hold user data 34..35: dwords 2..3 of the program's 14-dword root-constant block (slot 8), checked against zero first. So it is a 64-bit address passed in root constants. The message is misleading because Tracker::sum takes an input as a base only at dword 0 of a parameter; at dword 2 the address becomes the dynamic term, and why_no_base then reports any input as "no root parameter".

With #710. I applied #710's three commits on fe7210e (it conflicts after this rebase; see below) and ran victory translate over the same 276 containers:

next failure #489 fe7210e + #710
resources tracked 227 of 276 232 of 276
an address from a root parameter that is no address 8 0
a root UAV or typed root view (emit) 11 16
an address from a phi 5 8
an address in an SGPR that is no root parameter 1 (f6e47efa50226beb) 1 (162216b9cfd91aaf at 0x8c)
an address not from a root parameter 28 28

f6e47efa50226beb gets past 0x13ec and stops at 0x15b0, on an address not from a root parameter: a table in the code (s_getpc_b64 plus a literal) indexed by a per-lane value and brought back to SGPRs with v_readfirstlane_b32 before an s_load_dwordx8. That is a separate case. Of #710's 8 programs, 5 now stop at root views, as in its own table, and 3 at phis, where #710 counts 2 phis and one other non-root address.

Notes for @⁠itsRevela on rebasing #710 onto this head, from doing it locally:

  • Resources::pairs: main added waterfall to the struct, and the two edits overlap.
  • In track, the pair collection has to come before main's early return Ok(out) when lanes is None, or pairs stays empty on that path.
  • main's track takes a fourth argument (lanes), and HostShader in waterfall_tests.rs needs address_srvs. Two of #710's tests need updating for that.

With those, cargo test -p victory-shader --lib gives 134 passed, 1 ignored, and cargo test -p victory-gpu --lib gives 53 passed, 1 ignored (Windows 11). Not run in the title on the GPU.

No game data attached.

**@⁠louketa** on GitHub · 2026-11-24 13:44 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7133265571) On `f6e47efa50226beb`, the one program still at `an address in an SGPR that is no root parameter` (about 18% of the dropped dispatches in @⁠nullmarsh's count above). It is not a spill-rule gap, and #710 moves it on. **What it is.** The spill rule does rewrite it: 26 entry copies, and the `s_load_dwordx16` at entry becomes copies of user SGPRs 32..47. The failing `global_load` at `0x13ec` reads through `s[10:11]`, which hold user data 34..35: dwords 2..3 of the program's 14-dword root-constant block (slot 8), checked against zero first. So it is a 64-bit address passed in root constants. The message is misleading because `Tracker::sum` takes an input as a base only at dword 0 of a parameter; at dword 2 the address becomes the dynamic term, and `why_no_base` then reports any input as "no root parameter". **With #710.** I applied #710's three commits on `fe7210e` (it conflicts after this rebase; see below) and ran `victory translate` over the same 276 containers: | next failure | #489 `fe7210e` | + #710 | |---|---|---| | resources tracked | 227 of 276 | 232 of 276 | | `an address from a root parameter that is no address` | 8 | 0 | | `a root UAV or typed root view` (emit) | 11 | 16 | | `an address from a phi` | 5 | 8 | | `an address in an SGPR that is no root parameter` | 1 (`f6e47efa50226beb`) | 1 (`162216b9cfd91aaf` at `0x8c`) | | `an address not from a root parameter` | 28 | 28 | `f6e47efa50226beb` gets past `0x13ec` and stops at `0x15b0`, on `an address not from a root parameter`: a table in the code (`s_getpc_b64` plus a literal) indexed by a per-lane value and brought back to SGPRs with `v_readfirstlane_b32` before an `s_load_dwordx8`. That is a separate case. Of #710's 8 programs, 5 now stop at root views, as in its own table, and 3 at phis, where #710 counts 2 phis and one other non-root address. **Notes for @⁠itsRevela on rebasing #710** onto this head, from doing it locally: - `Resources::pairs`: `main` added `waterfall` to the struct, and the two edits overlap. - In `track`, the pair collection has to come **before** `main`'s early `return Ok(out)` when `lanes` is `None`, or `pairs` stays empty on that path. - `main`'s `track` takes a fourth argument (`lanes`), and `HostShader` in `waterfall_tests.rs` needs `address_srvs`. Two of #710's tests need updating for that. With those, `cargo test -p victory-shader --lib` gives 134 passed, 1 ignored, and `cargo test -p victory-gpu --lib` gives 53 passed, 1 ignored (Windows 11). Not run in the title on the GPU. No game data attached.
Author
Owner

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

Status for review: fe7210e is up to date with main (0 behind) and merges cleanly.

  • It includes #302. #302's commit is here, rebased (2a30b95), and #302 alone currently conflicts with main. Merging this PR lands both, and #302 can be closed. Taking #302 alone would bring back the entry-value defect this PR fixes.
  • Review points taken in: GroupId in s16 (gated), the pointer-mask provenance fix (from NexForever, co-authored), and the CLI now applies the same rule as the runtime.
  • Tested: by others on RTX 3070, RTX 5070, RTX 5090, RX 6600 XT and RX 9060 XT (synthetic GPU runs and one title run), and by me against the title's shaders. Details are in the comments above.
  • Follow-up, not in this PR: #710 is stacked on this and needs a rebase onto it. Notes for that are in my previous comment.

No game data attached.

**@⁠louketa** on GitHub · 2026-11-24 14:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7134330158) Status for review: `fe7210e` is up to date with `main` (0 behind) and merges cleanly. - **It includes #302.** #302's commit is here, rebased (`2a30b95`), and #302 alone currently conflicts with `main`. Merging this PR lands both, and #302 can be closed. Taking #302 alone would bring back the entry-value defect this PR fixes. - **Review points taken in:** GroupId in s16 (gated), the pointer-mask provenance fix (from NexForever, co-authored), and the CLI now applies the same rule as the runtime. - **Tested:** by others on RTX 3070, RTX 5070, RTX 5090, RX 6600 XT and RX 9060 XT (synthetic GPU runs and one title run), and by me against the title's shaders. Details are in the comments above. - **Follow-up, not in this PR:** #710 is stacked on this and needs a rebase onto it. Notes for that are in my previous comment. No game data attached.
Author
Owner

@⁠NexForever on GitHub · 2026-11-24 15:44 UTC · original

Hi! Thanks for incorporating my earlier pointer-mask fix into fe7210e and for preserving the co-author attribution!

I've prepared a small follow-up with additional regression coverage for ir.rs::spill_loads, based directly on the updated #489 head (fe7210e).

The follow-up adds three synthetic regression tests covering:

  • Reversed operands and in-place s_and_b32 operations, including instruction-decoding checks.
  • Pointer-copy chains and register overwrites, verifying both preserved and invalidated provenance.
  • Chained masks, ensuring that lost provenance is not incorrectly restored.

The tests also check SSA sources and the fields of loads that must remain unchanged.

I've clarified the comments around the assumed 40-bit spill-pointer convention. The address-width assumption is still unverified; the comments document its limits without claiming to establish the console ABI.

Verification (local):

  • 3 new regression tests passed.
  • victory-shader: 128 reported as passed, 0 failed, 1 ignored. Four differential tests returned early because optional compilers were unavailable.
  • Clippy (-D warnings), formatting and policy checks passed.
  • No production behavior changed.
  • No proprietary game data used.

Incremental commit:
github.com/NexForever/VIctory@1333a88a19

The commit is based directly on fe7210e and contains only the additional tests and documentation.

Would you be interested in cherry-picking these regression tests into #489, or would you prefer to keep them as a separate follow-up?

Thanks again!

NexForever

**@⁠NexForever** on GitHub · 2026-11-24 15:44 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7136530412) Hi! Thanks for incorporating my earlier pointer-mask fix into `fe7210e` and for preserving the co-author attribution! I've prepared a small follow-up with additional regression coverage for `ir.rs::spill_loads`, based directly on the updated #489 head (`fe7210e`). The follow-up adds three synthetic regression tests covering: - Reversed operands and in-place `s_and_b32` operations, including instruction-decoding checks. - Pointer-copy chains and register overwrites, verifying both preserved and invalidated provenance. - Chained masks, ensuring that lost provenance is not incorrectly restored. The tests also check SSA sources and the fields of loads that must remain unchanged. I've clarified the comments around the assumed 40-bit spill-pointer convention. The address-width assumption is still unverified; the comments document its limits without claiming to establish the console ABI. **Verification (local):** - 3 new regression tests passed. - `victory-shader`: 128 reported as passed, 0 failed, 1 ignored. Four differential tests returned early because optional compilers were unavailable. - Clippy (`-D warnings`), formatting and policy checks passed. - No production behavior changed. - No proprietary game data used. **Incremental commit:** https://github.com/NexForever/VIctory/commit/1333a88a192bd72e9534da2d7ced71b90a84e876 The commit is based directly on `fe7210e` and contains only the additional tests and documentation. Would you be interested in cherry-picking these regression tests into #489, or would you prefer to keep them as a separate follow-up? Thanks again! NexForever
Author
Owner

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

Independent verification on Windows 11 + NVIDIA RTX 3070 (Rust 1.98.1) at head fe7210e:

  • cargo test -p victory-shader --lib -- --skip valu_tests --skip waterfall_tests: 107 passed, 0 failed.
  • cargo clippy -p victory-shader -- -D warnings: 0 warnings.
  • Live GTA VI (1.0.2.1, --console series-s, 19-min world run): no regressions. Ready to merge!
**@⁠Yaekai** on GitHub · 2026-11-24 16:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/489#issuecomment-7138022417) Independent verification on Windows 11 + NVIDIA RTX 3070 (Rust 1.98.1) at head `fe7210e`: - `cargo test -p victory-shader --lib -- --skip valu_tests --skip waterfall_tests`: 107 passed, 0 failed. - `cargo clippy -p victory-shader -- -D warnings`: 0 warnings. - Live GTA VI (`1.0.2.1`, `--console series-s`, 19-min world run): no regressions. Ready to merge!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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!489
No description provided.