Shaders: the tiled cascade shadow programs translate exactly on 32-lane hosts #1000

Open
brunofgmag wants to merge 1 commit from upstream-pr/1002 into main
brunofgmag commented 2026-11-25 15:36:24 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by brunofgmag on 2026-11-25T15:36:24Z.


On a host with 32-lane waves (an RTX 4080 here), CS_ShadowRenderTiledCascadesAlphaCBPPPC (f133e35efed2a48a) was refused every frame with "a lane mask exchanged where not every lane runs" at 0x1eb4, so alpha-tested geometry cast no cascade shadows. Three programs of the same family (CS_ShadowRenderTiledCascadesCBPPPC 20b78ee12ecdb57d, CS_ShadowRenderTiledCascadesPPPC ce79e9eba7ae0348 and CS_ShadowRenderTiledMiscAlphaPPPC fa0bd10a35bfef3c) only translated through the approximate local-waves form. In game that drew the sun's light along characters' silhouettes in steps of about 16 pixels.

The ballot they need sits under per-lane regions that the retry forms could not remove. There were three reasons, and this PR fixes each one in ir.rs:

  • without_early_outs and without_skips now also take an s_cbranch_execnz over a far-jump trampoline (s_getpc_b64, s_add_u32, s_addc_u32, s_setpc_b64) to an end block. These programs are too long for a short branch to reach s_endpgm. A trampoline that does any work is still kept.
  • In the deep form of without_skips, a scalar phi whose arguments all resolve to one value counts as a copy of that value. The arguments are followed through copies and through other such phis. A phi that merges a real change is still a change.
  • unspill also pairs two lanes per save and restore site, not only per lane. The pairing is checked with reaching definitions, so a 64-bit exec saved into two VGPR lanes comes back as one mask even when one of those lanes holds another scalar elsewhere.

With the three fixes the ballot reaches the existing exact exchange_halves.

Measured with translate --list and VICTORY_HOST_WAVE=32 over 3,093 programs from one session:

  • 3,092 translated before this change and 3,093 after. No program that translated before is refused now.
  • 3,088 programs produce byte-identical DXIL.
  • The four above changed: f133 is new, and the other three moved from the approximate form to the exact one, with 47 to 153 group barriers each.

In game the steps along silhouettes are gone and frame time did not get worse (168 to 195 ms a frame in three runs, against about 200 to 240 before). No run lost the device.

The new tests in wave64_tests.rs are hand-written GFX10 words. One of them runs on the device and checks a gate where exactly one failing lane is in the upper half, which a per-half answer gets wrong. The victory-shader tests pass except stub_pipeline_is_created, which fails without dxil.dll on this machine as it does on main. Clippy for the workspace still stops at the four warnings that #982 fixes.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5494421072 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002). Originally posted by [brunofgmag](https://github.com/brunofgmag) on 2026-11-25T15:36:24Z. --- On a host with 32-lane waves (an RTX 4080 here), `CS_ShadowRenderTiledCascadesAlphaCBPPPC` (f133e35efed2a48a) was refused every frame with "a lane mask exchanged where not every lane runs" at 0x1eb4, so alpha-tested geometry cast no cascade shadows. Three programs of the same family (`CS_ShadowRenderTiledCascadesCBPPPC` 20b78ee12ecdb57d, `CS_ShadowRenderTiledCascadesPPPC` ce79e9eba7ae0348 and `CS_ShadowRenderTiledMiscAlphaPPPC` fa0bd10a35bfef3c) only translated through the approximate local-waves form. In game that drew the sun's light along characters' silhouettes in steps of about 16 pixels. The ballot they need sits under per-lane regions that the retry forms could not remove. There were three reasons, and this PR fixes each one in `ir.rs`: - `without_early_outs` and `without_skips` now also take an `s_cbranch_execnz` over a far-jump trampoline (`s_getpc_b64`, `s_add_u32`, `s_addc_u32`, `s_setpc_b64`) to an end block. These programs are too long for a short branch to reach `s_endpgm`. A trampoline that does any work is still kept. - In the deep form of `without_skips`, a scalar phi whose arguments all resolve to one value counts as a copy of that value. The arguments are followed through copies and through other such phis. A phi that merges a real change is still a change. - `unspill` also pairs two lanes per save and restore site, not only per lane. The pairing is checked with reaching definitions, so a 64-bit exec saved into two VGPR lanes comes back as one mask even when one of those lanes holds another scalar elsewhere. With the three fixes the ballot reaches the existing exact `exchange_halves`. Measured with `translate --list` and `VICTORY_HOST_WAVE=32` over 3,093 programs from one session: - 3,092 translated before this change and 3,093 after. No program that translated before is refused now. - 3,088 programs produce byte-identical DXIL. - The four above changed: f133 is new, and the other three moved from the approximate form to the exact one, with 47 to 153 group barriers each. In game the steps along silhouettes are gone and frame time did not get worse (168 to 195 ms a frame in three runs, against about 200 to 240 before). No run lost the device. The new tests in `wave64_tests.rs` are hand-written GFX10 words. One of them runs on the device and checks a gate where exactly one failing lane is in the upper half, which a per-half answer gets wrong. The `victory-shader` tests pass except `stub_pipeline_is_created`, which fails without dxil.dll on this machine as it does on main. Clippy for the workspace still stops at the four warnings that #982 fixes.
sambagarandawertanda commented 2026-11-25 17:08:01 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by sambagarandawertanda on 2026-11-25T16:21:37Z.


Reproduced the f133e35efed2a48a failure on an RTX 3080 under Windows with the Series S profile. On a d44e4ae-based build, victory warm failed to translate it at GFX10 0x1eb4 with a lane mask exchanged where not every lane runs. An earlier gameplay trace also logged this exact shader as requested and unavailable at the first world frame. This is the pre-patch result. The PR still needs a run on this RTX 3080 to check the visual effect.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7167844373 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7167844373). Originally posted by [sambagarandawertanda](https://github.com/sambagarandawertanda) on 2026-11-25T16:21:37Z. --- Reproduced the `f133e35efed2a48a` failure on an RTX 3080 under Windows with the Series S profile. On a `d44e4ae`-based build, `victory warm` failed to translate it at GFX10 `0x1eb4` with `a lane mask exchanged where not every lane runs`. An earlier gameplay trace also logged this exact shader as requested and unavailable at the first world frame. This is the pre-patch result. The PR still needs a run on this RTX 3080 to check the visual effect.
tippythetaidum commented 2026-11-25 17:08:02 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by tippythetaidum on 2026-11-25T16:31:27Z.


Tested in the title on an RTX 5080 16 GB (32-lane waves), driver 621.14, Windows 11, Series X profile: the stepped sunlight along the character's edge is gone.

Build: diagnostics build of main 3973179 + #24 + #927 + #823 + #606 + #956 + this PR + #907. Default settings apart from #956's two switches and a local diagnostic of mine, which touch texture uploads, not shadows.

Translation: f133e35efed2a48a now translates and is bound from the first world frame. On the same base without this PR it was shader does not translate ... a lane mask exchanged where not every lane runs, every run. 20b78ee12ecdb57d, ce79e9eba7ae0348 and fa0bd10a35bfef3c translate and are bound too. No shader failed to translate in the run.

Picture: the opening cell shot, the character from behind against the sunlit window, compared across three runs.

  • Without this PR (two runs, one with #823 and one without), the sunlit edge of her shoulder steps in stairs of about 16 pixels.
  • With it, that edge is smooth with a soft rim of light. It's the symptom described above.

Stability: no errors and no device loss in the 10-minute run.

One run with the PR, one card.

AI-assisted (Claude Code, Claude Opus 5.5). Counts and descriptions only, nothing from the game attached.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7168116746 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7168116746). Originally posted by [tippythetaidum](https://github.com/tippythetaidum) on 2026-11-25T16:31:27Z. --- Tested in the title on an RTX 5080 16 GB (32-lane waves), driver 621.14, Windows 11, Series X profile: the stepped sunlight along the character's edge is gone. **Build:** diagnostics build of `main` `3973179` + #24 + #927 + #823 + #606 + #956 + this PR + #907. Default settings apart from #956's two switches and a local diagnostic of mine, which touch texture uploads, not shadows. **Translation:** `f133e35efed2a48a` now translates and is bound from the first world frame. On the same base without this PR it was `shader does not translate ... a lane mask exchanged where not every lane runs`, every run. `20b78ee12ecdb57d`, `ce79e9eba7ae0348` and `fa0bd10a35bfef3c` translate and are bound too. No shader failed to translate in the run. **Picture:** the opening cell shot, the character from behind against the sunlit window, compared across three runs. - Without this PR (two runs, one with #823 and one without), the sunlit edge of her shoulder steps in stairs of about 16 pixels. - With it, that edge is smooth with a soft rim of light. It's the symptom described above. **Stability:** no errors and no device loss in the 10-minute run. One run with the PR, one card. AI-assisted (Claude Code, Claude Opus 5.5). Counts and descriptions only, nothing from the game attached.
Danigamer05 commented 2026-11-25 20:09:25 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Danigamer05 on 2026-11-25T19:20:41Z.


Confirmed on Turing: RTX 2080 SUPER 8 GB (32-lane waves, driver 621.01), Ryzen 7 3700X, Windows 11, Series S profile.

Tree: vitutu1/victory-perf ffed22d + #683, #610, #823 and this PR (cherry-picked cleanly), diagnostics build.

  • Offline (victory translate --list, VICTORY_HOST_MAX_WAVE=32, the whole package): before, f133e35efed2a48a failed with "a lane mask exchanged where not every lane runs" at 0x1eb4. After: it translates, and 3 more compute programs and 1 pixel program that failed before translate too (2,723 → 2,726 of 2,734 compute, 14,211 → 14,212 of 14,259 vertex/pixel; I compared the counts and failure classes, not each program).
  • In game: before, the log dropped f133e35efed2a48a every frame. After, it is no longer in the dropped list (only 02384a60fda6f2d0 and 2da4beb386509b77 remain). Lucia's hair and shirt are lit in every captured frame from the prison-window shot onwards; in the run just before without this PR (same switches) she turned into a dark silhouette once the cell part started. Single runs each, and this kind of darkness varies from run to run, so take it as one data point. Frame time unchanged (3.6-3.9 fps both ways).
  • A related test: skipping all 18 CS_ShadowRenderTiled* programs instead (VICTORY_SKIP_PIPELINES) made people in the yard pure black silhouettes. So an unwritten shadow-map region reads as full shadow here, which fits the dark characters seen while only f133e35efed2a48a was dropped.

Numbers and text only. AI-assisted (Claude Code).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7172165558 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7172165558). Originally posted by [Danigamer05](https://github.com/Danigamer05) on 2026-11-25T19:20:41Z. --- Confirmed on Turing: RTX 2080 SUPER 8 GB (32-lane waves, driver 621.01), Ryzen 7 3700X, Windows 11, Series S profile. Tree: `vitutu1/victory-perf` `ffed22d` + #683, #610, #823 and this PR (cherry-picked cleanly), diagnostics build. - **Offline** (`victory translate --list`, `VICTORY_HOST_MAX_WAVE=32`, the whole package): before, `f133e35efed2a48a` failed with "a lane mask exchanged where not every lane runs" at 0x1eb4. After: it translates, and 3 more compute programs and 1 pixel program that failed before translate too (2,723 → 2,726 of 2,734 compute, 14,211 → 14,212 of 14,259 vertex/pixel; I compared the counts and failure classes, not each program). - **In game:** before, the log dropped `f133e35efed2a48a` every frame. After, it is no longer in the dropped list (only `02384a60fda6f2d0` and `2da4beb386509b77` remain). Lucia's hair and shirt are lit in every captured frame from the prison-window shot onwards; in the run just before without this PR (same switches) she turned into a dark silhouette once the cell part started. Single runs each, and this kind of darkness varies from run to run, so take it as one data point. Frame time unchanged (3.6-3.9 fps both ways). - **A related test:** skipping all 18 `CS_ShadowRenderTiled*` programs instead (`VICTORY_SKIP_PIPELINES`) made people in the yard pure black silhouettes. So an unwritten shadow-map region reads as full shadow here, which fits the dark characters seen while only `f133e35efed2a48a` was dropped. Numbers and text only. AI-assisted (Claude Code).
HAL9000RELOADED commented 2026-11-25 20:09:26 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HAL9000RELOADED on 2026-11-25T19:29:35Z.


RX 7900 XTX (RDNA3), Windows 10 + #402, main d510ee4: all 6 new tests pass. The hardware part of a_far_early_out_is_left_out_and_the_gate_counts_the_lanes_of_both_halves ran on the card ("ran on the hardware device…") and matched. With the tests alone on main, 3 of 6 fail: the two far early-out/skip ones and the parked pair one. Run table: #129 (https://github.com/fxceless/victory-fork/pull/129#issuecomment-7172358511).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7172372679 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7172372679). Originally posted by [HAL9000RELOADED](https://github.com/HAL9000RELOADED) on 2026-11-25T19:29:35Z. --- RX 7900 XTX (RDNA3), Windows 10 + #402, main `d510ee4`: all 6 new tests pass. The hardware part of `a_far_early_out_is_left_out_and_the_gate_counts_the_lanes_of_both_halves` ran on the card ("ran on the hardware device…") and matched. With the tests alone on main, 3 of 6 fail: the two far early-out/skip ones and the parked pair one. Run table: #129 (https://github.com/fxceless/victory-fork/pull/129#issuecomment-7172358511).
Zayfway commented 2026-11-25 20:09:29 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Zayfway on 2026-11-25T19:51:51Z.


Tested on a 32-lane card: on its own on main, and merged with #994 (which carries #993 and #854). AI-assisted (Claude Code); every number below is from runs on this machine.

Machine: RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, 16 GB RAM with a 32 GB pagefile, Windows 11 26300, Series X profile, diag build. Every run loads the same save at the prison window and is measured from world +120 s to +360 s. Switches: ASYNC_SUBMIT QUEUE2 TEXTURE_NO_WAIT COPY_PLAIN LEVELS_ON_DEMAND INDIRECT_GATHER.

tree frame (median) the sun's light along Lucia's silhouette
main 465b94f 264–274 ms (3.6–3.7 fps) steps of about 16 px along the shoulder, and blocky patches at the bottom of the screen
main + this PR 272 ms (3.6 fps) f133e35efed2a48a now translates and binds (on main it was dropped every frame), but the steps are still there: on the wall behind her, and on a door
main + this PR + #994 338 ms (2.9 fps; GPU 150–167 → 210 ms) no steps on the silhouette: the shoulder edge is smooth, with a soft rim of light. The window's dirty-glass and haze effect, missing on main, is drawn

So on this card, this PR is needed but not sufficient. The steps go away only together with #854/#993's exact 64-lane forms. In that tree the four programs the driver used to refuse with E_INVALIDARG (2cc4c197ee29e291, 369cbe906ea72764, 02384a60fda6f2d0, 2da4beb386509b77) build, and the offline census with VICTORY_HOST_WAVE=32 emits 26,135 of 26,136 programs. The one left is CS_TraceShadowRays_FullAdaptive, which these scenes do not use. Lanes on opaque masks go from 28,029 (main + this PR) to 5,459.

Merge. The merged tree is at Zayfway/victory-fork@integ/rtx3060 (7538ceb), with main + this PR + #994 + #1027. It had three conflicts:

  • draw.rs: both new functions kept.
  • ir.rs: the doc of unspill.
  • emit/wave64_tests.rs: #994's file with this PR's tests applied on top.

One test of #993 needed a new expectation. a_mask_parked_in_lanes_another_scalar_shares_comes_back_whole_with_shared_slots expected the parked pair to come back as two scalars without the shared slots. With this PR's site_pairs it comes back as one mask in both cases. cargo test -p victory-shader --lib: 275 passed, 2 ignored.

Not tested:

  • Other scenes.
  • An exact per-frame comparison: the two runs do not stand on the same frame, but each run shows the same window view for minutes.
  • The cost split between this PR and #994's forms.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7172865868 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7172865868). Originally posted by [Zayfway](https://github.com/Zayfway) on 2026-11-25T19:51:51Z. --- Tested on a 32-lane card: on its own on `main`, and merged with #994 (which carries #993 and #854). *AI-assisted (Claude Code); every number below is from runs on this machine.* **Machine:** RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, 16 GB RAM with a 32 GB pagefile, Windows 11 26300, Series X profile, diag build. Every run loads the same save at the prison window and is measured from world +120 s to +360 s. Switches: `ASYNC_SUBMIT QUEUE2 TEXTURE_NO_WAIT COPY_PLAIN LEVELS_ON_DEMAND INDIRECT_GATHER`. | tree | frame (median) | the sun's light along Lucia's silhouette | |---|---|---| | `main` `465b94f` | 264–274 ms (3.6–3.7 fps) | steps of about 16 px along the shoulder, and blocky patches at the bottom of the screen | | `main` + this PR | 272 ms (3.6 fps) | `f133e35efed2a48a` now translates and binds (on `main` it was dropped every frame), but the steps are still there: on the wall behind her, and on a door | | `main` + this PR + #994 | 338 ms (2.9 fps; GPU 150–167 → 210 ms) | **no steps on the silhouette**: the shoulder edge is smooth, with a soft rim of light. The window's dirty-glass and haze effect, missing on `main`, is drawn | So on this card, this PR is needed but not sufficient. The steps go away only together with #854/#993's exact 64-lane forms. In that tree the four programs the driver used to refuse with `E_INVALIDARG` (`2cc4c197ee29e291`, `369cbe906ea72764`, `02384a60fda6f2d0`, `2da4beb386509b77`) build, and the offline census with `VICTORY_HOST_WAVE=32` emits 26,135 of 26,136 programs. The one left is `CS_TraceShadowRays_FullAdaptive`, which these scenes do not use. Lanes on opaque masks go from 28,029 (`main` + this PR) to 5,459. **Merge.** The merged tree is at [`Zayfway/victory-fork@integ/rtx3060`](https://github.com/Zayfway/victory-fork/tree/integ/rtx3060) (`7538ceb`), with `main` + this PR + #994 + #1027. It had three conflicts: - `draw.rs`: both new functions kept. - `ir.rs`: the doc of `unspill`. - `emit/wave64_tests.rs`: #994's file with this PR's tests applied on top. One test of #993 needed a new expectation. `a_mask_parked_in_lanes_another_scalar_shares_comes_back_whole_with_shared_slots` expected the parked pair to come back as two scalars without the shared slots. With this PR's `site_pairs` it comes back as one mask in both cases. `cargo test -p victory-shader --lib`: 275 passed, 2 ignored. **Not tested:** - Other scenes. - An exact per-frame comparison: the two runs do not stand on the same frame, but each run shows the same window view for minutes. - The cost split between this PR and #994's forms.
Garu667 commented 2026-11-26 12:07:20 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T11:38:13Z.


Second NVIDIA data point: RTX 3080 10 GB, merged onto 06702fe with no conflict, boat mission, standing ~3 min, same settings both runs.

  • translate --warm all (32-lane host): 25,635 → 25,639 translated, 254 → 250 that do not.
  • f133e35efed2a48a now translates and its host pipeline is made (was refused every run); 20b78ee12ecdb57d, ce79e9eba7ae0348, fa0bd10a35bfef3c, be6ce5d849d51127, 922e1d0ee1e19a85 all take the exact "without skips, scalars followed" form.
  • World fps 9.1 → 9.0 (one launch each, within noise): no cost here either. No device loss.
  • Side note: 926c46bab3b86bd6 (water _Submerged) now translates too but the driver refuses it (64-lane), as it refuses the other water volumetrics.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7190979275 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7190979275). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-26T11:38:13Z. --- Second NVIDIA data point: RTX 3080 10 GB, merged onto `06702fe` with no conflict, boat mission, standing ~3 min, same settings both runs. - `translate --warm all` (32-lane host): 25,635 → **25,639** translated, 254 → 250 that do not. - `f133e35efed2a48a` now translates and its host pipeline is made (was refused every run); `20b78ee12ecdb57d`, `ce79e9eba7ae0348`, `fa0bd10a35bfef3c`, `be6ce5d849d51127`, `922e1d0ee1e19a85` all take the exact "without skips, scalars followed" form. - World fps 9.1 → 9.0 (one launch each, within noise): no cost here either. No device loss. - Side note: `926c46bab3b86bd6` (water `_Submerged`) now translates too but the driver refuses it (64-lane), as it refuses the other water volumetrics.
Victorywillbeours222 commented 2026-11-26 14:03:31 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Victorywillbeours222 on 2026-11-26T13:44:03Z.


Tested on an RTX 5080 16 GB (32-lane waves), Ryzen 7 5800X, 32 GB RAM, Windows 11. Diagnostics build of main ceb9e1f + #917 + #188 + this PR, Series S profile, 10 minutes hands-off (scripted Enter only). Shader cache warmed with VICTORY_HOST_WAVE=32.

  • Warm-up: 25,639 programs translated and 250 refused, against 25,635 and 254 without this PR.
  • f133e35efed2a48a: translates, gets a host pipeline and is bound from the first world frame. In the run before, without this PR, it was refused every frame ("a lane mask exchanged where not every lane runs").
  • Stability: 0 errors, no device loss.
  • Frame rate: world median 7.8 fps, against 7.5 in the run before. That run kept the cascade programs out of the deep-skips form instead (a per-program workaround), so no cost shows.
  • Picture: no steps along silhouettes in the captured frames. In an earlier played run with neither this PR nor the workaround, light fell on the cell wall in coarse steps and hair looked stringy.

That's one machine and one run per side, so take it as a data point.

AI-assisted (Claude Code). Counts and observations only, no game data.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7193761045 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7193761045). Originally posted by [Victorywillbeours222](https://github.com/Victorywillbeours222) on 2026-11-26T13:44:03Z. --- Tested on an RTX 5080 16 GB (32-lane waves), Ryzen 7 5800X, 32 GB RAM, Windows 11. Diagnostics build of `main` `ceb9e1f` + #917 + #188 + this PR, Series S profile, 10 minutes hands-off (scripted Enter only). Shader cache warmed with `VICTORY_HOST_WAVE=32`. - **Warm-up:** 25,639 programs translated and 250 refused, against 25,635 and 254 without this PR. - **`f133e35efed2a48a`:** translates, gets a host pipeline and is bound from the first world frame. In the run before, without this PR, it was refused every frame ("a lane mask exchanged where not every lane runs"). - **Stability:** 0 errors, no device loss. - **Frame rate:** world median 7.8 fps, against 7.5 in the run before. That run kept the cascade programs out of the deep-skips form instead (a per-program workaround), so no cost shows. - **Picture:** no steps along silhouettes in the captured frames. In an earlier played run with neither this PR nor the workaround, light fell on the cell wall in coarse steps and hair looked stringy. That's one machine and one run per side, so take it as a data point. *AI-assisted (Claude Code). Counts and observations only, no game data.*
Swagi-REDACTED commented 2026-11-26 15:04:06 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Swagi-REDACTED on 2026-11-26T14:05:42Z.


Additional RTX 3060 validation for A newer retail game:

  • Ryzen 7 9800X3D, RTX 3060 12 GB (621.14), Windows 11, 16 GB RAM.
  • Before: 0ff6db8156502e89679c9c0a3438e417516fb9b3 (current main plus input integration). The runtime logged the same f133e35efed2a48a failure at 0x1eb4. Offline validation of the four programs named here produced 3/4 validated, with that same failure.
  • After: 8072ea2f057b5fef7c0cad51997e432e28c075ec, integrating this PR, #1112 and #1205. The same four programs produced 4/4 validated and 4/4 compute pipelines created, exit 0, with the D3D12 debug layer, host wave 32 and view limit 999999. The probe observed nvwgf2umx.dll and D3D12Core.dll.

Commands: victory translate <private four-program sample directory> --validate --list --jobs 1, then the same command with --pipelines. This is validation and pipeline creation only; no shader dispatch, visual improvement, gameplay completion, or cold-cache timing claim. A combined visual run is in progress. No sample data is attached.

Combined workspace: cargo test --locked --workspace -- --test-threads=4 --nocapture: 632 passed, 0 failed, 13 ignored. Eight explicit adapter/compiler skip messages were reported; those paths are not counted as coverage. Diagnostics application build and asset policy passed. Combining #1112 with current main exceeded the per-file source limit; the sampler-choice routine was moved unchanged into a child module to pass policy.

AI use: Codex, GPT-6 (exact serving variant not exposed), performed integration and the local tests above. Original PR authors retained. These measurements are from this machine.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7194268664 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7194268664). Originally posted by [Swagi-REDACTED](https://github.com/Swagi-REDACTED) on 2026-11-26T14:05:42Z. --- Additional RTX 3060 validation for **A newer retail game**: - Ryzen 7 9800X3D, RTX 3060 12 GB (621.14), Windows 11, 16 GB RAM. - Before: `0ff6db8156502e89679c9c0a3438e417516fb9b3` (current main plus input integration). The runtime logged the same `f133e35efed2a48a` failure at `0x1eb4`. Offline validation of the four programs named here produced **3/4 validated**, with that same failure. - After: [8072ea2f057b5fef7c0cad51997e432e28c075ec](https://github.com/Swagi-REDACTED/victory-fork/commit/8072ea2f057b5fef7c0cad51997e432e28c075ec), integrating this PR, #1112 and #1205. The same four programs produced **4/4 validated and 4/4 compute pipelines created**, exit 0, with the D3D12 debug layer, host wave 32 and view limit 999999. The probe observed `nvwgf2umx.dll` and `D3D12Core.dll`. Commands: `victory translate <private four-program sample directory> --validate --list --jobs 1`, then the same command with `--pipelines`. This is validation and pipeline creation only; no shader dispatch, visual improvement, gameplay completion, or cold-cache timing claim. A combined visual run is in progress. No sample data is attached. Combined workspace: `cargo test --locked --workspace -- --test-threads=4 --nocapture`: **632 passed, 0 failed, 13 ignored**. Eight explicit adapter/compiler skip messages were reported; those paths are not counted as coverage. Diagnostics application build and asset policy passed. Combining #1112 with current main exceeded the per-file source limit; the sampler-choice routine was moved unchanged into a child module to pass policy. AI use: Codex, GPT-6 (exact serving variant not exposed), performed integration and the local tests above. Original PR authors retained. These measurements are from this machine.
Garu667 commented 2026-11-26 16:06:38 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T15:23:43Z.


Visual confirmation in the prologue cell (RTX 3080, 58de9bf vs 58de9bf + this PR, same save, standing at the window ~1.5 min each): without the PR the sun's light along the character's shoulder and hair comes out in ~16 px steps; with it the edge is smooth and the shoulder and neck are lit as they should be. 7.7 vs 7.6 fps, no device loss.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7196206074 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7196206074). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-26T15:23:43Z. --- Visual confirmation in the prologue cell (RTX 3080, `58de9bf` vs `58de9bf` + this PR, same save, standing at the window ~1.5 min each): without the PR the sun's light along the character's shoulder and hair comes out in ~16 px steps; with it the edge is smooth and the shoulder and neck are lit as they should be. 7.7 vs 7.6 fps, no device loss.
oeirughrepuiohg commented 2026-11-27 00:07:31 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by oeirughrepuiohg on 2026-11-27T00:07:31Z.


Test report (Linux/Proton, RTX 4070 Ti): this PR fixes the stair-stepped shoulder/neck rim in the opening prison-cell scene.

Setup: the PR's commit cherry-picked onto a local branch (fork main ca8829ff plus local changes that are identical in both arms), nothing else changed. Arms interleaved, identical settings: Series S path, 1280x720 internal resolution stretched to 1920x1080, no upscaling or frame generation, RTX 4070 Ti 12 GB, Proton/vkd3d-proton on Linux. Launches that overlapped a host build were excluded. End-of-route frames were scored blind.

PR only, against the same base without it:

Smooth shoulder/neck rim Stair-stepped rim, disconnected light islands
With this PR 4 / 4 0 / 4
Without 0 / 3 3 / 3
  • Mechanism matches the PR: the alpha cascade shadow pixel shader (f133e35e) fails translation without it and translates and binds with it.
  • Positive side effect: the projected head shadow on the left cell wall appeared in 1 of 2 launches with the PR and 0 of 2 without. It is intermittent, but we only saw it with the PR.
  • Cost: none measurable (11.10-11.13 vs 10.88-11.24 fps average on our timed route, two launches each).
  • No new artifact elsewhere in the frame (hair, window grate, walls, posters).

Supporting context, a different build: the PR combined with a separate local change of ours (a reserved texture budget for one material input, not part of this PR). Smooth rim in 6/6 launches vs 0/6 on the base without either change; wall head shadow 2/6 vs 0/6; timing within noise. This shows the shoulder result holds when stacked with other work, but it is not a clean test of the PR alone; the table above is.

A pale-blue block at the collar remains in all arms and is unrelated to this PR.


Measured and written with AI assistance (Claude Code with Claude Opus 5.5 and Claude Mythos 5.2; Codex with gpt-6.2-sol for the build and the blind scoring).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7206191313 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1002#issuecomment-7206191313). Originally posted by [oeirughrepuiohg](https://github.com/oeirughrepuiohg) on 2026-11-27T00:07:31Z. --- **Test report (Linux/Proton, RTX 4070 Ti): this PR fixes the stair-stepped shoulder/neck rim in the opening prison-cell scene.** Setup: the PR's commit cherry-picked onto a local branch (fork main `ca8829ff` plus local changes that are identical in both arms), nothing else changed. Arms interleaved, identical settings: Series S path, 1280x720 internal resolution stretched to 1920x1080, no upscaling or frame generation, RTX 4070 Ti 12 GB, Proton/vkd3d-proton on Linux. Launches that overlapped a host build were excluded. End-of-route frames were scored blind. **PR only, against the same base without it:** | | Smooth shoulder/neck rim | Stair-stepped rim, disconnected light islands | |---|---|---| | With this PR | 4 / 4 | 0 / 4 | | Without | 0 / 3 | 3 / 3 | - Mechanism matches the PR: the alpha cascade shadow pixel shader (`f133e35e`) fails translation without it and translates and binds with it. - Positive side effect: the projected head shadow on the left cell wall appeared in 1 of 2 launches with the PR and 0 of 2 without. It is intermittent, but we only saw it with the PR. - Cost: none measurable (11.10-11.13 vs 10.88-11.24 fps average on our timed route, two launches each). - No new artifact elsewhere in the frame (hair, window grate, walls, posters). **Supporting context, a different build:** the PR combined with a separate local change of ours (a reserved texture budget for one material input, not part of this PR). Smooth rim in 6/6 launches vs 0/6 on the base without either change; wall head shadow 2/6 vs 0/6; timing within noise. This shows the shoulder result holds when stacked with other work, but it is not a clean test of the PR alone; the table above is. A pale-blue block at the collar remains in all arms and is unrelated to this PR. --- *Measured and written with AI assistance (Claude Code with Claude Opus 5.5 and Claude Mythos 5.2; Codex with gpt-6.2-sol for the build and the blind scoring).*
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1002:upstream-pr/1002'
git switch 'upstream-pr/1002'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1002'
git switch 'upstream-pr/1002'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1002'
git switch 'upstream-pr/1002'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1002'
git switch 'main'
git merge --squash 'upstream-pr/1002'
git switch 'main'
git merge --ff-only 'upstream-pr/1002'
git switch 'main'
git merge 'upstream-pr/1002'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1000
No description provided.