feat(shader): lift 4 RayQuery BVH64/BVH32 patterns to native DXR 1.1 (#339) #387

Manually merged
github merged 8 commits from github-bot/gh-387 into gh-pr/387/base 2026-12-03 18:48:38 +00:00 AGit
Owner

@⁠Androtim on GitHub · 2026-12-03 12:20 UTC · original
Androtim:feat/hwrt-rayquery-lift-all-patterns → main · +2236 −126 · 2 files · 8 commits · merged 2026-12-03 18:38 UTC

Summary

Unblocks 4 ictory-shader RayQuery analysis rejections in \crates/victory-shader/src/emit/lower/rayquery/analyze.rs\ with zero changes to \emit_rq.rs\ or \structure.rs, lifting 8 real gameplay RT shaders (~54.8 native DXR 1.1 dispatches/frame) from \

**@⁠Androtim** on GitHub · 2026-12-03 12:20 UTC · [original](https://github.com/Androtim/MiniVI/pull/387) `Androtim:feat/hwrt-rayquery-lift-all-patterns` → `main` · +2236 −126 · 2 files · 8 commits · merged 2026-12-03 18:38 UTC ## Summary Unblocks 4 ictory-shader RayQuery analysis rejections in \crates/victory-shader/src/emit/lower/rayquery/analyze.rs\ with zero changes to \emit_rq.rs\ or \structure.rs\, lifting **8 real gameplay RT shaders (~54.8 native DXR 1.1 dispatches/frame)** from \
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 12:23:06 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-12-03 12:31 UTC · original

Triage note on bbcbb36b (CI check PASS):

  • Scoped strictly to crates/victory-shader/src/emit/lower/rayquery/analyze.rs (+319/-18) and crates/victory-shader/src/emit/rayquery_tests.rs (+309/-1) — zero non-RT code-path impact when VICTORY_HW_RT=0/unset.
  • Note that the PR description was truncated mid-sentence at from \; holding auto-merge for Gate 2 Reasoning Audit (#282) + Gate 3 live VICTORY_HW_RT=1 GPU verification (0 DXIL validation errors, 0 DRED/hangs). Once posted, ready to merge immediately.
**@⁠Androtim** on GitHub · 2026-12-03 12:31 UTC · [original](https://github.com/Androtim/MiniVI/pull/387#issuecomment-7378406784) Triage note on `bbcbb36b` (**CI `check` PASS**): - Scoped strictly to `crates/victory-shader/src/emit/lower/rayquery/analyze.rs` (+319/-18) and `crates/victory-shader/src/emit/rayquery_tests.rs` (+309/-1) — zero non-RT code-path impact when `VICTORY_HW_RT=0`/unset. - Note that the PR description was truncated mid-sentence at `from \`; holding auto-merge for Gate 2 Reasoning Audit (`#282`) + Gate 3 live `VICTORY_HW_RT=1` GPU verification (`0` DXIL validation errors, `0` DRED/hangs). Once posted, ready to merge immediately.
Tighten BVH32 nested-loop leaf expansion and narrow dead-VGPR exit PHI analysis soundly to restore the 4 dropped shaders (8 lifted, 0 partly lifted) without relaxing any Pass 1-4 Gate 2 invariant:

- Bound cur_tri_vals/tri_dw12_vals to (inner_bvh.0, inner_blocks) and prevent cur_inst_vals/dw0_vals from crossing inner_bvh.0's backedge into committed-hit header PHIs via expand_plain_forward_in_nested_loop (preserving purely loop-invariant inner_header PHIs).
- Allow single-block chains of implicit-only full-32-bit VGPR overwrites whose guard partition covers every active lane (!st.bools.meet(&conds) / st.reach[b]) in is_dead_vgpr_exit_phi, keeping partial guarded overwrites and explicit reads rejected.
- Add regression tests for nested BVH32 Pattern B staged cndmask callbacks and exhaustive vs partial if/else exit PHI overwrites.
github-bot changed target branch from main to gh-pr/387/base 2026-12-03 18:42:37 +00:00
github manually merged commit 9650093719 into gh-pr/387/base 2026-12-03 18:48:38 +00:00
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/Androtim--MiniVI!387
No description provided.