Olympus: reject invalid mesh branch targets #15

Merged
bmjask merged 1 commit from upstream-pr/16 into main 2026-11-21 19:06:41 +00:00
bmjask commented 2026-11-21 18:45:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-21T18:45:27Z.


Makes direct-branch analysis fail closed when a target is misaligned, outside the decoded program, or not an instruction start. Invalid targets are retained as structured report evidence even when the branch is unreachable, rather than disappearing when CFG successors are built. Fixed-wave32 geometry hazard screening rejects these programs just like incomplete decoding.

Validation:

  • 12 focused analyzer tests
  • geometry hazard regression test
  • full library suite: 233 passed, 13 ignored
  • diff and confidentiality scans clean
<!-- greyfinch-sync:ivall/xcl:issue:6532915697 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/16). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-21T18:45:27Z. --- Makes direct-branch analysis fail closed when a target is misaligned, outside the decoded program, or not an instruction start. Invalid targets are retained as structured report evidence even when the branch is unreachable, rather than disappearing when CFG successors are built. Fixed-wave32 geometry hazard screening rejects these programs just like incomplete decoding. Validation: - 12 focused analyzer tests - geometry hazard regression test - full library suite: 233 passed, 13 ignored - diff and confidentiality scans 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-21T19:06:42Z.


Thanks – merged, that's exactly the fail-closed behaviour I meant. Re-ran it over the 390 ES/GS programs in the shader pack: none has an invalid branch target and none gets a wave32 hazard, so nothing real is rejected. Library (234), GPU PSO and e2e suites pass.

<!-- greyfinch-sync:ivall/xcl:comment:7067769186 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/16#issuecomment-7067769186). Originally posted by [ivall](https://github.com/ivall) on 2026-11-21T19:06:42Z. --- Thanks – merged, that's exactly the fail-closed behaviour I meant. Re-ran it over the 390 ES/GS programs in the shader pack: none has an invalid branch target and none gets a wave32 hazard, so nothing real is rejected. Library (234), GPU PSO and e2e suites pass.
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!15
No description provided.