[pr-fix] [rendering] [shaders] Fix same-list depth publication and Wave32 backward permutes #1532

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

@⁠invismann on GitHub · 2026-11-28 21:20 UTC · original
invismann:fix/same-list-depth-and-wave32-permute → main · +988 −926 · 6 files · 2 commits · closed without merging

Supersedes #1018 and #1019. This branch reapplies the original fixes on top of 77df871e as two commits.

Changes

  • Publish shader-written depth-plane twins before later draws in the same command list. Restore the render targets and invalidate the cached bindings and resource states after the internal copy.
  • Keep ds_bpermute_b32 gathers within the caller's 32-lane half and return zero for inactive source lanes. This lets independent Wave32 halves execute these gathers.
  • Include the test-only module split from #1460 so emit/lower.rs fits the asset-policy limit.

Validation

  • Built the diagnostics workspace and passed 118 targeted tests on Windows with an RTX 4090. One test remained ignored.
  • The same-list depth regression read back the expected lighting result. Disabling early publication caused the readback assertion to fail.
  • The backward-permute GPU test checked wrapped indices and inactive sources in 64- and 128-thread groups. Restoring the old lowering caused the Wave32 translation to be refused.
  • cargo xtask policy passed for all 307 files.

Strict workspace Clippy stops at the unused colour variable and the manually checked division already present in emit/lower.rs on 77df871e.

**@⁠invismann** on GitHub · 2026-11-28 21:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1532) `invismann:fix/same-list-depth-and-wave32-permute` → `main` · +988 −926 · 6 files · 2 commits · closed without merging Supersedes #1018 and #1019. This branch reapplies the original fixes on top of `77df871e` as two commits. ## Changes - Publish shader-written depth-plane twins before later draws in the same command list. Restore the render targets and invalidate the cached bindings and resource states after the internal copy. - Keep `ds_bpermute_b32` gathers within the caller's 32-lane half and return zero for inactive source lanes. This lets independent Wave32 halves execute these gathers. - Include the test-only module split from #1460 so `emit/lower.rs` fits the asset-policy limit. ## Validation - Built the diagnostics workspace and passed 118 targeted tests on Windows with an RTX 4090. One test remained ignored. - The same-list depth regression read back the expected lighting result. Disabling early publication caused the readback assertion to fail. - The backward-permute GPU test checked wrapped indices and inactive sources in 64- and 128-thread groups. Restoring the old lowering caused the Wave32 translation to be refused. - `cargo xtask policy` passed for all 307 files. Strict workspace Clippy stops at the unused `colour` variable and the manually checked division already present in `emit/lower.rs` on `77df871e`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:24:54 +00:00
github-bot closed this pull request 2026-11-28 21:24:54 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1532
No description provided.