Certify Wave32 LDS synchronization for visibility dispatch #368

Closed
github-bot wants to merge 1 commit from gh-pr/368/head into gh-pr/368/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-24 23:58 UTC · original
Kamiloj9:codex/visibility-wave32 → main · +1380 −21 · 15 files · 1 commits · closed without merging

Change

  • Add an opt-in Wave32 translation for the audited CS_Visibility native program. After DXIL optimization, certify that both host waves reach the same LDS synchronization points and that the branch reads a fenced snapshot.
  • Carry the contract through the shader cache. Execution requires direct dispatch with one group in X and a private copy of the shader's constant buffer. Unsupported dispatches and failed proofs use the existing refusal or Wave64 behavior.
  • Recognize the unsigned heap-index clamp when its index is uniform across the group. Enable the candidate with VICTORY_SPLIT_LDS=1.

Verification

  • The exact captured shader emits validated Wave32 DXIL with an uncapped heap and with the RTX null descriptor at slot 999,999. Disabled and fence-only configurations retain Wave64.
  • REA recorded 42 direct calls with groups 1×1×1. Each recorded constant-buffer range was separate from the seven observed UAV ranges.
  • The integrated diagnostic build created the compute PSO, recorded the constrained dispatch and reported the shader in completed GPU work on RTX 4080 SUPER. It reached the first 3D scene and continued presenting until Windows reported a memory allocation failure.
  • The fork build, targeted dispatch and cache tests, captured shader replay, Clippy, and asset policy passed on the proposed base.
**@⁠Kamiloj9** on GitHub · 2026-11-24 23:58 UTC · [original](https://github.com/fxceless/victory-fork/pull/368) `Kamiloj9:codex/visibility-wave32` → `main` · +1380 −21 · 15 files · 1 commits · closed without merging ## Change - Add an opt-in Wave32 translation for the audited `CS_Visibility` native program. After DXIL optimization, certify that both host waves reach the same LDS synchronization points and that the branch reads a fenced snapshot. - Carry the contract through the shader cache. Execution requires direct dispatch with one group in X and a private copy of the shader's constant buffer. Unsupported dispatches and failed proofs use the existing refusal or Wave64 behavior. - Recognize the unsigned heap-index clamp when its index is uniform across the group. Enable the candidate with `VICTORY_SPLIT_LDS=1`. ## Verification - The exact captured shader emits validated Wave32 DXIL with an uncapped heap and with the RTX null descriptor at slot 999,999. Disabled and fence-only configurations retain Wave64. - REA recorded 42 direct calls with groups 1×1×1. Each recorded constant-buffer range was separate from the seven observed UAV ranges. - The integrated diagnostic build created the compute PSO, recorded the constrained dispatch and reported the shader in completed GPU work on RTX 4080 SUPER. It reached the first 3D scene and continued presenting until Windows reported a memory allocation failure. - The fork build, targeted dispatch and cache tests, captured shader replay, Clippy, and asset policy passed on the proposed base.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:41:48 +00:00
github-bot closed this pull request 2026-11-26 03:41:48 +00:00

Pull request closed

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