Laptop and 8 GB NVIDIA: Series S by -Light, wave64 LDS programs in wa… #134

Closed
YOGESH9139 wants to merge 4 commits from upstream-pr/134 into main
YOGESH9139 commented 2026-11-26 06:22:02 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YOGESH9139 on 2026-11-26T06:22:02Z.


…ves of 32, DualShock 4 pads

  • victory-shader: VICTORY_LDS_REGION_RACE (on unless 0, asked on 32-lane hosts only): a console wave64 program whose LDS accesses in lane branches can get no meeting of the two host waves runs in waves of 32 anyway, with a barrier before the LDS accesses every lane makes. On an RTX PRO 2000 laptop GPU 393 of the 404 compute programs the driver refused ("wants wave lane count of 64") now get a pipeline (culling, shadows, lighting, TAA); after the idea of Linox-IDK's LNX-victory, written anew.
  • victory-hle: DualShock 4 pads (Sony 054C: 05C4, 09CC, 0BA0, 0BA1) read from HID beside XInput and merged with the XInput pad of the same slot (VICTORY_DUALSHOCK=0 turns it off); report parsing tested.
  • scripts/play.ps1: -Light (Series S profile, 1080p display mode, levels on demand), -SeriesS, and VICTORY_PIPELINE_BOOK=1 so victory warm --used has something to make.
  • README: the laptop measurements (world fps 1.4 to about 3 in the opening cutscene) and what is still wrong.
<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6620844830 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/134). Originally posted by [YOGESH9139](https://github.com/YOGESH9139) on 2026-11-26T06:22:02Z. --- …ves of 32, DualShock 4 pads - victory-shader: VICTORY_LDS_REGION_RACE (on unless 0, asked on 32-lane hosts only): a console wave64 program whose LDS accesses in lane branches can get no meeting of the two host waves runs in waves of 32 anyway, with a barrier before the LDS accesses every lane makes. On an RTX PRO 2000 laptop GPU 393 of the 404 compute programs the driver refused ("wants wave lane count of 64") now get a pipeline (culling, shadows, lighting, TAA); after the idea of Linox-IDK's LNX-victory, written anew. - victory-hle: DualShock 4 pads (Sony 054C: 05C4, 09CC, 0BA0, 0BA1) read from HID beside XInput and merged with the XInput pad of the same slot (VICTORY_DUALSHOCK=0 turns it off); report parsing tested. - scripts/play.ps1: -Light (Series S profile, 1080p display mode, levels on demand), -SeriesS, and VICTORY_PIPELINE_BOOK=1 so `victory warm --used` has something to make. - README: the laptop measurements (world fps 1.4 to about 3 in the opening cutscene) and what is still wrong.
Proudnoob4 commented 2026-11-26 07:11:36 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Proudnoob4 on 2026-11-26T07:11:36Z.


Cross-tested VICTORY_LDS_REGION_RACE alongside PastiiJay/klbf-lab#50 (static Wave32 LDS hazard analysis) on an RTX 4080 16 GB / Windows 10 in GTA 6 (--console series-s):

  • With upstream lds_meetings + VICTORY_LDS_FLAGS, NVIDIA refuses 6 Wave64 compute pipelines (2da4beb386509b77, 369cbe906ea72764, 02384a60fda6f2d0, 6b82bc7d22016cb5, 5dc3b25986622949, 6f225b641c5b0708).
  • With klbf-lab#50's stricter write-only WAW/cyclic rejection enabled and VICTORY_LDS_REGION_RACE=0, 4 more compute pipelines stay Wave64 and get refused (0x80070057), including two skinning passes (89d08e561897d4e5, 55679a0547649d0b) plus 1f1fbd86759b3da2 and caf96a3229145fa6.
  • Having VICTORY_LDS_REGION_RACE as a fallback when static proofs return None is very useful on 32-lane NVIDIA GPUs (note: keeping it opt-in during cargo test avoids breaking negative WaveSize(64) unit tests, or using a test override).

Also: combining avatarmanz's speed wave (#105, #107, #119, #96, #97, #109, #82, #24, #42, #108, #114) + fx#868 (VICTORY_SKIP_WC_COMPARE=1) + fx#907 (ForceEarlyDepthStencil) + klbf#41 (DXIL LICM/LDS-fwd/barrier-dedup) + VICTORY_PIPELINE_WAIT_MS=150 / VICTORY_TEXTURE_STAGE_MS=50 hit 27.2 fps median (28.6 fps max, 0 stutters >55 ms across 8 min steady play) on our RTX 4080 16 GB at render_scale=0.6666667 (720p→1080p, RT off). Full write-up & settings posted on fxceless/victory-fork!

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185192847 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/134#issuecomment-7185192847). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T07:11:36Z. --- Cross-tested `VICTORY_LDS_REGION_RACE` alongside `PastiiJay/klbf-lab#50` (static Wave32 LDS hazard analysis) on an **RTX 4080 16 GB / Windows 10** in GTA 6 (`--console series-s`): - With upstream `lds_meetings` + `VICTORY_LDS_FLAGS`, NVIDIA refuses **6** Wave64 compute pipelines (`2da4beb386509b77`, `369cbe906ea72764`, `02384a60fda6f2d0`, `6b82bc7d22016cb5`, `5dc3b25986622949`, `6f225b641c5b0708`). - With `klbf-lab#50`'s stricter write-only WAW/cyclic rejection enabled and `VICTORY_LDS_REGION_RACE=0`, **4 more** compute pipelines stay Wave64 and get refused (`0x80070057`), including two skinning passes (`89d08e561897d4e5`, `55679a0547649d0b`) plus `1f1fbd86759b3da2` and `caf96a3229145fa6`. - Having `VICTORY_LDS_REGION_RACE` as a fallback when static proofs return `None` is very useful on 32-lane NVIDIA GPUs (note: keeping it opt-in during `cargo test` avoids breaking negative `WaveSize(64)` unit tests, or using a test override). Also: combining `avatarmanz`'s speed wave (`#105`, `#107`, `#119`, `#96`, `#97`, `#109`, `#82`, `#24`, `#42`, `#108`, `#114`) + `fx#868` (`VICTORY_SKIP_WC_COMPARE=1`) + `fx#907` (`ForceEarlyDepthStencil`) + `klbf#41` (DXIL LICM/LDS-fwd/barrier-dedup) + `VICTORY_PIPELINE_WAIT_MS=150` / `VICTORY_TEXTURE_STAGE_MS=50` hit **27.2 fps median (28.6 fps max, 0 stutters >55 ms across 8 min steady play)** on our RTX 4080 16 GB at `render_scale=0.6666667` (720p→1080p, RT off). Full write-up & settings posted on `fxceless/victory-fork`!
avatarmanz commented 2026-11-26 07:33:23 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:33:23Z.


Not merged as is: the README retitles this repo as another fork, and play.ps1 gets a new default (VICTORY_PIPELINE_BOOK=1) for every card. The shader, DualShock and -Light parts would each need a PR of their own.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185583927 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/134#issuecomment-7185583927). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:33:23Z. --- Not merged as is: the README retitles this repo as another fork, and play.ps1 gets a new default (VICTORY_PIPELINE_BOOK=1) for every card. The shader, DualShock and -Light parts would each need a PR of their own.
YOGESH9139 commented 2026-11-26 07:35:54 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YOGESH9139 on 2026-11-26T07:35:54Z.


Thanks for cross-testing it on the 4080, and for the hashes: they match what I see here. Without the fallback, 2da4beb386509b77, 369cbe906ea72764, 02384a60fda6f2d0 and 6b82bc7d22016cb5 were among the 404 refused on this RTX PRO 2000 laptop GPU, and 5dc3b25986622949 / 6f225b641c5b0708 are two of the 11 that still don't translate in waves of 32 (wave reductions and lane-mask exchanges inside lane branches).

Done on your test suggestion: VICTORY_LDS_REGION_RACE is now off under cargo test unless set to 1; the layer keeps it on by default on 32-lane hosts. victory-shader: 278 tests pass with it unset and with =1. It's pushed to this PR.

One more data point from here: a 20-minute run in the Series S profile with the fallback on, 18.5 minutes of it in the world, ended without a crash or device loss.

I'll try the settings from your speed list that exist in this tree. Thanks again.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185628659 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/134#issuecomment-7185628659). Originally posted by [YOGESH9139](https://github.com/YOGESH9139) on 2026-11-26T07:35:54Z. --- Thanks for cross-testing it on the 4080, and for the hashes: they match what I see here. Without the fallback, `2da4beb386509b77`, `369cbe906ea72764`, `02384a60fda6f2d0` and `6b82bc7d22016cb5` were among the 404 refused on this RTX PRO 2000 laptop GPU, and `5dc3b25986622949` / `6f225b641c5b0708` are two of the 11 that still don't translate in waves of 32 (wave reductions and lane-mask exchanges inside lane branches). Done on your test suggestion: `VICTORY_LDS_REGION_RACE` is now off under `cargo test` unless set to `1`; the layer keeps it on by default on 32-lane hosts. `victory-shader`: 278 tests pass with it unset and with `=1`. It's pushed to this PR. One more data point from here: a 20-minute run in the Series S profile with the fallback on, 18.5 minutes of it in the world, ended without a crash or device loss. I'll try the settings from your speed list that exist in this tree. Thanks again.
Proudnoob4 commented 2026-11-26 08:12:31 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Proudnoob4 on 2026-11-26T08:12:31Z.


Great news on two of those 4 hashes you listed (2da4beb386509b77 and 369cbe906ea72764) — we just recovered both cleanly on RTX 4080 without needing an LDS race fallback:

  1. 2da4beb386509b77 (CS_AlphTransmissionPrefilterMip — frosted/refracted window glass): In crates/victory-shader/src/resource.rs, Tracer::descriptor() and Tracer::live() only pushed lanes.reach[block] into known, omitting per-instruction lanes.guards[b][i]. Tracking at: Cell<Option<Site>> and pushing lanes.guards[at.0][at.1] prunes the dead join edge and recovers 2da4beb386509b77 cleanly in Wave32 (visibly fixing frosted window glass refraction in-game).
  2. 369cbe906ea72764: Recovered cleanly via single-latch s_andn2_wrexec_b64 + s_cbranch_scc1 active-loop widening in emit/mod.rs (plus restored_lanes / scc_some / ordered-LDS lane_uniform).
  3. 4 klbf#50 LDS-atomic shaders (89d08e561897d4e5, 55679a0547649d0b, 1f1fbd86759b3da2, caf96a3229145fa6): Also recovered cleanly in lds.rs by tracking has_plain_read separately from Kind::Rmw (details on PastiiJay/klbf-lab#50).

In our full 10-minute RTX 4080 run (Pass 10), refused pipelines dropped from 10 → 4 (02384a60fda6f2d0, 6b82bc7d22016cb5, 5dc3b25986622949, 6f225b641c5b0708), 0 untranslated, 0 steady stutters >55 ms, with VICTORY_LDS_REGION_RACE still off.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7186317742 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/134#issuecomment-7186317742). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T08:12:31Z. --- Great news on two of those 4 hashes you listed (`2da4beb386509b77` and `369cbe906ea72764`) — we just recovered **both** cleanly on RTX 4080 **without** needing an LDS race fallback: 1. **`2da4beb386509b77` (`CS_AlphTransmissionPrefilterMip` — frosted/refracted window glass):** In `crates/victory-shader/src/resource.rs`, `Tracer::descriptor()` and `Tracer::live()` only pushed `lanes.reach[block]` into `known`, omitting per-instruction `lanes.guards[b][i]`. Tracking `at: Cell<Option<Site>>` and pushing `lanes.guards[at.0][at.1]` prunes the dead join edge and recovers `2da4beb386509b77` cleanly in Wave32 (visibly fixing frosted window glass refraction in-game). 2. **`369cbe906ea72764`:** Recovered cleanly via single-latch `s_andn2_wrexec_b64` + `s_cbranch_scc1` active-loop widening in `emit/mod.rs` (plus `restored_lanes` / `scc_some` / ordered-LDS `lane_uniform`). 3. **4 `klbf#50` LDS-atomic shaders (`89d08e561897d4e5`, `55679a0547649d0b`, `1f1fbd86759b3da2`, `caf96a3229145fa6`):** Also recovered cleanly in `lds.rs` by tracking `has_plain_read` separately from `Kind::Rmw` (details on `PastiiJay/klbf-lab#50`). In our full 10-minute RTX 4080 run (`Pass 10`), refused pipelines dropped from **10 → 4** (`02384a60fda6f2d0`, `6b82bc7d22016cb5`, `5dc3b25986622949`, `6f225b641c5b0708`), `0` untranslated, `0` steady stutters `>55 ms`, with `VICTORY_LDS_REGION_RACE` still off.
YOGESH9139 commented 2026-11-26 11:45:13 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YOGESH9139 on 2026-11-26T11:45:13Z.


Split as you asked, each rebased on 0dec5dc: #209 (the shader fallback, lower.rs only), #210 (DualShock 4) and #211 (play.ps1 -SeriesS / -Light, no new default for other cards). The README retitle stays in my fork only. This PR can be closed in favour of those.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7191122533 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/134#issuecomment-7191122533). Originally posted by [YOGESH9139](https://github.com/YOGESH9139) on 2026-11-26T11:45:13Z. --- Split as you asked, each rebased on 0dec5dc: #209 (the shader fallback, lower.rs only), #210 (DualShock 4) and #211 (play.ps1 -SeriesS / -Light, no new default for other cards). The README retitle stays in my fork only. This PR can be closed in favour of those.
YOGESH9139 commented 2026-11-26 12:51:46 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by YOGESH9139 on 2026-11-26T12:51:46Z.


Closing: I'm stopping this work for now and taking the fork down. Thanks for the reviews.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7192558624 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/134#issuecomment-7192558624). Originally posted by [YOGESH9139](https://github.com/YOGESH9139) on 2026-11-26T12:51:46Z. --- Closing: I'm stopping this work for now and taking the fork down. Thanks for the reviews.

Pull request closed

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
avatarmanz/VIctory-7900XTX!134
No description provided.