Preserve VGPR slots observed by relative reads #121

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

@⁠Kamiloj9 on GitHub · 2026-11-24 21:39 UTC · original
Kamiloj9:codex/mixed-vgpr-unspill → main · +289 −19 · 2 files · 1 commits · closed without merging

Summary

  • Follow up on #11 by keeping fixed-lane saves physical when they can reach an M0-relative VGPR read.
  • Restore independent scalar spill slots when control flow proves that their saves cannot reach a relative reader and that every restore has a prior save. Keep both halves of a parked Wave64 mask together.
  • Lower a constant-index relative read using only its selected VGPR. Unknown indices retain the full possible source range.

Verification

  • All 57 targeted IR, resource and structure tests passed on the PR base, along with shader Clippy, the diagnostic build and the asset-policy check.
  • Two locally captured shader repros validate with a Wave32 host cap. The previously blocked compute repro emits WaveSize=32 both with default settings and with shader optimization disabled and strict joins enabled.
  • An integrated RTX 4080 SUPER replay created the compute PSO and recorded its indirect dispatches in completed submissions. The trace did not inspect the indirect group counts.
**@⁠Kamiloj9** on GitHub · 2026-11-24 21:39 UTC · [original](https://github.com/fxceless/victory-fork/pull/121) `Kamiloj9:codex/mixed-vgpr-unspill` → `main` · +289 −19 · 2 files · 1 commits · closed without merging ## Summary - Follow up on #11 by keeping fixed-lane saves physical when they can reach an M0-relative VGPR read. - Restore independent scalar spill slots when control flow proves that their saves cannot reach a relative reader and that every restore has a prior save. Keep both halves of a parked Wave64 mask together. - Lower a constant-index relative read using only its selected VGPR. Unknown indices retain the full possible source range. ## Verification - All 57 targeted IR, resource and structure tests passed on the PR base, along with shader Clippy, the diagnostic build and the asset-policy check. - Two locally captured shader repros validate with a Wave32 host cap. The previously blocked compute repro emits `WaveSize=32` both with default settings and with shader optimization disabled and strict joins enabled. - An integrated RTX 4080 SUPER replay created the compute PSO and recorded its indirect dispatches in completed submissions. The trace did not inspect the indirect group counts.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:29 +00:00
github-bot closed this pull request 2026-11-26 03:36:29 +00:00
Author
Owner

@⁠arminkhaleghirod on GitHub · 2026-11-24 22:23 UTC · original

Merged onto main 90228a7 and ran victory translate --validate over the full title (26,148 programs) on Windows 11 / RTX 4080.

No change: every failure count matches main, and no new reason appears. What it changes at run time isn't covered by this check.

**@⁠arminkhaleghirod** on GitHub · 2026-11-24 22:23 UTC · [original](https://github.com/fxceless/victory-fork/pull/121#issuecomment-7146178946) Merged onto main 90228a7 and ran `victory translate --validate` over the full title (26,148 programs) on Windows 11 / RTX 4080. No change: every failure count matches main, and no new reason appears. What it changes at run time isn't covered by this check.

Pull request closed

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