Certify an experimental Wave32 transmission prefilter #419

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

@⁠Kamiloj9 on GitHub · 2026-11-25 00:35 UTC · original
Kamiloj9:codex/prefilter-wave32 → main · +2056 −40 · 17 files · 4 commits · closed without merging

Scope

This draft builds on #368. The branch includes the visibility work from that PR and merges main through 31714de.

The opt-in VICTORY_SPLIT_PREFILTER=1 path recognizes one audited native transmission prefilter. It certifies the final DXIL control flow for five cross-wave exchanges and the native group barrier. The host requires a direct dispatch with one group in Z and a private copy of the input CBV. Zero or unaligned width or height suppresses every write in that dispatch. The experiment is off by default.

The shader cache distinguishes the dispatch contract, host wave capabilities, and translation switches.

Verification

  • The captured workload used 1280×720 and direct 80×45×1 dispatches in all 12 recorded samples.
  • The exact shader translated to Wave32 and passed DXIL validation with both unclamped and production-sized descriptor heaps.
  • RTX readback verified writes to all six UAVs for one full tile, bitwise equality with extra groups, and untouched output for zero or unaligned dimensions.
  • An integrated local runtime build created the host PSO and recorded an 80×45×1 dispatch in the first 3D frame. Later Windows allocation failures ended the run.
  • Targeted dispatch, cache, and convergence tests and the asset policy passed.

The readback fixture uses a local capture supplied through VICTORY_PREFILTER_CAPTURE. It covers output writes and bounds, with numerical comparison against Xbox output still open.

**@⁠Kamiloj9** on GitHub · 2026-11-25 00:35 UTC · [original](https://github.com/fxceless/victory-fork/pull/419) `Kamiloj9:codex/prefilter-wave32` → `main` · +2056 −40 · 17 files · 4 commits · closed without merging ## Scope This draft builds on #368. The branch includes the visibility work from that PR and merges main through `31714de`. The opt-in `VICTORY_SPLIT_PREFILTER=1` path recognizes one audited native transmission prefilter. It certifies the final DXIL control flow for five cross-wave exchanges and the native group barrier. The host requires a direct dispatch with one group in Z and a private copy of the input CBV. Zero or unaligned width or height suppresses every write in that dispatch. The experiment is off by default. The shader cache distinguishes the dispatch contract, host wave capabilities, and translation switches. ## Verification - The captured workload used 1280×720 and direct 80×45×1 dispatches in all 12 recorded samples. - The exact shader translated to Wave32 and passed DXIL validation with both unclamped and production-sized descriptor heaps. - RTX readback verified writes to all six UAVs for one full tile, bitwise equality with extra groups, and untouched output for zero or unaligned dimensions. - An integrated local runtime build created the host PSO and recorded an 80×45×1 dispatch in the first 3D frame. Later Windows allocation failures ended the run. - Targeted dispatch, cache, and convergence tests and the asset policy passed. The readback fixture uses a local capture supplied through `VICTORY_PREFILTER_CAPTURE`. It covers output writes and bounds, with numerical comparison against Xbox output still open.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:43:00 +00:00
github-bot closed this pull request 2026-11-26 03:43:00 +00:00
Author
Owner

@⁠XIIYAZ on GitHub · 2026-11-25 05:22 UTC · original

Tested on an RTX 3070 (8 GB, Windows 11), merged onto fork main 310c6eb (clean merge) with VICTORY_SPLIT_PREFILTER=1:

  • VICTORY_HOST_MAX_WAVE=32 victory translate --validate: 2da4beb386509b77 translates at wave 32 and validates (without the switch it still ends at wave Some(64)).
  • In game the host pipeline is made (it was refused with WaveSize(64) every frame before). 18-minute prologue run: no device removal, ~2.2 fps, ~4,840 draws/frame.
  • Visible result: the scattered/blocky hair on the characters is gone.
  • cargo test -p victory-shader --lib (226) and -p victory-gpu --lib (124) pass.

(AI-assisted test run.)

**@⁠XIIYAZ** on GitHub · 2026-11-25 05:22 UTC · [original](https://github.com/fxceless/victory-fork/pull/419#issuecomment-7153714579) Tested on an RTX 3070 (8 GB, Windows 11), merged onto fork main 310c6eb (clean merge) with `VICTORY_SPLIT_PREFILTER=1`: - `VICTORY_HOST_MAX_WAVE=32 victory translate --validate`: 2da4beb386509b77 translates at wave 32 and validates (without the switch it still ends at `wave Some(64)`). - In game the host pipeline is made (it was refused with `WaveSize(64)` every frame before). 18-minute prologue run: no device removal, ~2.2 fps, ~4,840 draws/frame. - Visible result: the scattered/blocky hair on the characters is gone. - `cargo test -p victory-shader --lib` (226) and `-p victory-gpu --lib` (124) pass. (AI-assisted test run.)

Pull request closed

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