Olympus: report mesh wave requirements #15

Manually merged
github merged 1 commit from gh-pr/15/head into gh-pr/15/base 2026-11-26 04:04:14 +00:00
Owner

@⁠bmjask on GitHub · 2026-11-21 18:02 UTC · original
bmjask:codex/olympus-mesh-wave-analysis → main · +472 −0 · 2 files · 1 commits · merged 2026-11-21 18:34 UTC

Adds a control-flow-aware mesh wave requirement analyzer as groundwork for safe wave64 emulation on fixed-wave32 hardware. The analyzer reports whole-mask branches, mask-derived scalar conditions, save/restore mask operations, lane-read provenance, allocation messages, barriers, exports, and loop backedges. It uses bounded fixed-point propagation, handles joins and loops, and fails closed on truncated or unknown instruction streams. Geometry hazard screening now retains the existing fast checks and also uses the analyzer for mask-derived branches and incomplete decoding. No real mesh program is enabled by this change.

Validation:

  • focused analyzer and geometry hazard tests
  • full scripts/test.ps1: 224 library tests passed (13 ignored), 12 console DLL tests passed, 1 end-to-end test passed, GPU PSO suite passed/skipped according to sample availability
  • public diff confidentiality scan clean
**@⁠bmjask** on GitHub · 2026-11-21 18:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/15) `bmjask:codex/olympus-mesh-wave-analysis` → `main` · +472 −0 · 2 files · 1 commits · merged 2026-11-21 18:34 UTC Adds a control-flow-aware mesh wave requirement analyzer as groundwork for safe wave64 emulation on fixed-wave32 hardware. The analyzer reports whole-mask branches, mask-derived scalar conditions, save/restore mask operations, lane-read provenance, allocation messages, barriers, exports, and loop backedges. It uses bounded fixed-point propagation, handles joins and loops, and fails closed on truncated or unknown instruction streams. Geometry hazard screening now retains the existing fast checks and also uses the analyzer for mask-derived branches and incomplete decoding. No real mesh program is enabled by this change. Validation: - focused analyzer and geometry hazard tests - full `scripts/test.ps1`: 224 library tests passed (13 ignored), 12 console DLL tests passed, 1 end-to-end test passed, GPU PSO suite passed/skipped according to sample availability - public diff confidentiality scan clean
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:04:12 +00:00
github manually merged commit d4dc2f595d into gh-pr/15/base 2026-11-26 04:04:14 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-21 18:34 UTC · original

Thanks – merged. Ran it over the 390 ES/GS programs in the shader pack: all decode completely and the analyzer flags none of them, so nothing changes for fixed-wave32 adapters on current content; library, GPU PSO and e2e suites pass.

Two notes for the lowering that will use it: most of the report (lane provenance, mbcnt, allocation messages, exports, backedges) isn't consumed yet, so let's keep extending it together with the code that needs it; and a branch whose target isn't an instruction start is currently just dropped from the CFG – failing closed there (like undecoded_at) would match the rest of the analyzer.

**@⁠ivall** on GitHub · 2026-11-21 18:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/15#issuecomment-7067357391) Thanks – merged. Ran it over the 390 ES/GS programs in the shader pack: all decode completely and the analyzer flags none of them, so nothing changes for fixed-wave32 adapters on current content; library, GPU PSO and e2e suites pass. Two notes for the lowering that will use it: most of the report (lane provenance, mbcnt, allocation messages, exports, backedges) isn't consumed yet, so let's keep extending it together with the code that needs it; and a branch whose target isn't an instruction start is currently just dropped from the CFG – failing closed there (like `undecoded_at`) would match the rest of the analyzer.
This discussion has been locked. Commenting is limited to contributors.
No description provided.