Recognize fetch-inactive Wave32 and Wave64 prefixes #800

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

@⁠Kamiloj9 on GitHub · 2026-11-25 08:17 UTC · original
Kamiloj9:codex/whole-wave-fi-prefix → main · +424 −19 · 6 files · 3 commits · closed without merging

Change

Model opposite-row permutations in whole-wave sections when FI permits a modeled value from an inactive source lane. Preserve inactive destinations and reject untracked per-lane values from other lanes. The console compiler also emits the same form with OP_SEL bit 3 set. Admit it only for the observed upper-row EXEC masks and selectors that read the last lane of the opposite row. For Wave64, require full-wave lowering so the form stays unavailable to the independent half-wave retry.

Allow a split-wave v_readfirstlane_b32 under partial EXEC when the source is uniform across participating lanes and every observable use has the same guard. This preserves the first active lane's value in either populated half of the wave. The proof rejects varying inputs and values that escape the mask.

Verification

  • Symbolic checks cover both wave widths and reject incorrect selectors, masks, and independent half-wave lowering. Before hardware testing was paused, the Wave32 and coordinated Wave64 GPU fixtures matched scalar exclusive prefixes. The guarded first-lane fixture matched all 64 outputs across eight EXEC limits.
  • The captured CS_VirtualTable_SortJobs translated, validated, created a host compute PSO, and bound in an integrated replay. An isolated RTX test of the captured CS_GenerateShaderBinOffsets verified both allocation counters and non-overlapping per-bin prefixes across 11 inputs, with both optional-stream modes and up to 16,386 bins. WARP rejected creation of the captured bin-offset PSO, and the original reserved-bit encoding remains unverified on AMD hardware.
  • The subsequent integrated replay created the bin-offset PSO and ended in the menu before any logged bind of that shader. Runtime stability and world rendering remain unverified. Hardware runs are paused following an unexpected system restart.
  • Independent review, targeted CPU checks and asset policy passed. This draft is independent of #419 and #368.
**@⁠Kamiloj9** on GitHub · 2026-11-25 08:17 UTC · [original](https://github.com/fxceless/victory-fork/pull/800) `Kamiloj9:codex/whole-wave-fi-prefix` → `main` · +424 −19 · 6 files · 3 commits · closed without merging ## Change Model opposite-row permutations in whole-wave sections when FI permits a modeled value from an inactive source lane. Preserve inactive destinations and reject untracked per-lane values from other lanes. The console compiler also emits the same form with OP_SEL bit 3 set. Admit it only for the observed upper-row EXEC masks and selectors that read the last lane of the opposite row. For Wave64, require full-wave lowering so the form stays unavailable to the independent half-wave retry. Allow a split-wave `v_readfirstlane_b32` under partial EXEC when the source is uniform across participating lanes and every observable use has the same guard. This preserves the first active lane's value in either populated half of the wave. The proof rejects varying inputs and values that escape the mask. ## Verification - Symbolic checks cover both wave widths and reject incorrect selectors, masks, and independent half-wave lowering. Before hardware testing was paused, the Wave32 and coordinated Wave64 GPU fixtures matched scalar exclusive prefixes. The guarded first-lane fixture matched all 64 outputs across eight EXEC limits. - The captured `CS_VirtualTable_SortJobs` translated, validated, created a host compute PSO, and bound in an integrated replay. An isolated RTX test of the captured `CS_GenerateShaderBinOffsets` verified both allocation counters and non-overlapping per-bin prefixes across 11 inputs, with both optional-stream modes and up to 16,386 bins. WARP rejected creation of the captured bin-offset PSO, and the original reserved-bit encoding remains unverified on AMD hardware. - The subsequent integrated replay created the bin-offset PSO and ended in the menu before any logged bind of that shader. Runtime stability and world rendering remain unverified. Hardware runs are paused following an unexpected system restart. - Independent review, targeted CPU checks and asset policy passed. This draft is independent of #419 and #368.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:51:24 +00:00
github-bot closed this pull request 2026-11-26 03:51:24 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 10:13 UTC · original

Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head 1c70b0e into main 9376fd6 in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings fails with exactly the errors main itself has on this machine (placed_filler_twins never used, depth_written never read, in victory-gpu); with --all-features it fails with the same number of errors as main (4). This PR adds none and removes none. cargo test --workspace --locked: 544 passed, 0 failed, 13 ignored, two runs (main alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.

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

**@⁠MamaLeVrai** on GitHub · 2026-11-25 10:13 UTC · [original](https://github.com/fxceless/victory-fork/pull/800#issuecomment-7159390350) Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head `1c70b0e` into `main` `9376fd6` in a throwaway tree (no conflict). `cargo clippy --workspace --all-targets --locked -- -D warnings` fails with exactly the errors `main` itself has on this machine (`placed_filler_twins` never used, `depth_written` never read, in `victory-gpu`); with `--all-features` it fails with the same number of errors as `main` (4). This PR adds none and removes none. `cargo test --workspace --locked`: 544 passed, 0 failed, 13 ignored, two runs (`main` alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data. AI-assisted (Claude Code); no game data.
Author
Owner

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

Test report on real hardware: RTX 2080 Ti (Turing, 32-lane waves), Windows 10, diagnostics build, opening cutscene. Main f85101b plus some host-side PRs, with and without this PR's head 1c70b0e. One run per tree, five trees with it.

With this PR, three compute programs that translated before no longer do, so their dispatches are dropped every frame:

  • 17af15c4015cb4b6, fdd56d97a806bcca: a lane mask exchanged where not every lane runs is not supported
  • bad01f53f53248e5: a first-lane read where not every lane runs is not supported

In game, most of the scene then stops being drawn: earlier frames stay on screen and smear, the yard shots turn into a white blur, and panning the camera leaves trails. Same in all five trees with it. Without it (same trees otherwise), the scene is drawn normally and every compute program builds.

Not tested: which of the title's programs these are, other cards, AMD.

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

**@⁠cafeoh** on GitHub · 2026-11-25 11:20 UTC · [original](https://github.com/fxceless/victory-fork/pull/800#issuecomment-7160926055) Test report on real hardware: RTX 2080 Ti (Turing, 32-lane waves), Windows 10, diagnostics build, opening cutscene. Main `f85101b` plus some host-side PRs, with and without this PR's head `1c70b0e`. One run per tree, five trees with it. With this PR, three compute programs that translated before no longer do, so their dispatches are dropped every frame: - `17af15c4015cb4b6`, `fdd56d97a806bcca`: a lane mask exchanged where not every lane runs is not supported - `bad01f53f53248e5`: a first-lane read where not every lane runs is not supported In game, most of the scene then stops being drawn: earlier frames stay on screen and smear, the yard shots turn into a white blur, and panning the camera leaves trails. Same in all five trees with it. Without it (same trees otherwise), the scene is drawn normally and every compute program builds. Not tested: which of the title's programs these are, other cards, AMD. AI-assisted (Claude Code); no game data.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.