Olympus: report mesh wave requirements #14

Merged
bmjask merged 1 commit from upstream-pr/15 into main 2026-11-21 18:34:41 +00:00
bmjask commented 2026-11-21 18:02:53 +00:00 (Migrated from github.com)

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:

  • 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
<!-- greyfinch-sync:ivall/xcl:issue:6532487132 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/15). Originally posted by [bmjask](https://github.com/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: - 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
upstream-sync closed this pull request 2026-11-24 06:56:45 +00:00
ivall commented 2026-11-24 07:00:17 +00:00 (Migrated from github.com)

Imported 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.

<!-- greyfinch-sync:ivall/xcl:comment:7067357391 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/15#issuecomment-7067357391). Originally posted by [ivall](https://github.com/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.
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
xcl-dev/xcl!14
No description provided.