Olympus: report mesh wave requirements #15
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!15
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/15/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCAdds 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:
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@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.