Certify an experimental Wave32 transmission prefilter #419

Closed
Kamiloj9 wants to merge 4 commits from upstream-pr/419 into main
Kamiloj9 commented 2026-11-25 00:35:42 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Kamiloj9 on 2026-11-25T00:35:42Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6594379314 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/419). Originally posted by [Kamiloj9](https://github.com/Kamiloj9) on 2026-11-25T00:35:42Z. --- ## 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.
XIIYAZ commented 2026-11-25 06:06:37 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by XIIYAZ on 2026-11-25T05:22:51Z.


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.)

<!-- greyfinch-sync:fxceless/victory-fork:comment:7153714579 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/419#issuecomment-7153714579). Originally posted by [XIIYAZ](https://github.com/XIIYAZ) on 2026-11-25T05:22:51Z. --- 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.)
upstream-sync closed this pull request 2026-11-26 01:05:54 +00:00

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
fxceless/victory-fork!419
No description provided.