Certify Wave32 LDS synchronization for visibility dispatch #368

Closed
Kamiloj9 wants to merge 1 commit from upstream-pr/368 into main
Kamiloj9 commented 2026-11-24 23:58:23 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Kamiloj9 on 2026-11-24T23:58:23Z.


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.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6593917293 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/368). Originally posted by [Kamiloj9](https://github.com/Kamiloj9) on 2026-11-24T23:58:23Z. --- ## 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.
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!368
No description provided.