Olympus: report mesh wave requirements #14
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15"
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?
Imported from ivall/xcl. Originally posted by bmjask on 2026-11-21T18:02:53Z.
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:
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 availabilityImported from ivall/xcl. Originally posted by ivall on 2026-11-21T18:34:43Z.
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.