Skip to content

Olympus: report mesh wave requirements - #15

Merged
ivall merged 1 commit into
xcl-dev:mainfrom
bmjask:codex/olympus-mesh-wave-analysis
Nov 21, 2026
Merged

ivall merged 1 commit into
xcl-dev:mainfrom
bmjask:codex/olympus-mesh-wave-analysis

Conversation

@bmjask

@bmjask bmjask commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

@ivall
ivall merged commit e8106bc into xcl-dev:main Nov 21, 2026
@ivall

ivall commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

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.

gbuyssens added a commit to gbuyssens/xcl that referenced this pull request Nov 23, 2026
… CPU check at start (xcl-dev#104, xcl-dev#106)

- Until the title has passed a fence to Signal / Wait, queue slot xcl-dev#18 is GetDesc on the older
  layout and GetTimestampFrequency (a UINT64 out-parameter) on the newer one. A GetDesc
  answered in full wrote 16 bytes into a newer title's UINT64 (xcl-dev#104 item 4): now only the
  descriptor's first 8 bytes until a fence tells the layout (one from xcl-dev#14 / xcl-dev#15: the older).
- The launcher refuses to start on a CPU without the console Zen 2's extensions (AVX2, FMA,
  F16C, BMI1 / BMI2, LZCNT, POPCNT, MOVBE, SSE4.2) with a message naming them instead of the
  title's illegal-instruction crash (xcl-dev#106); XCL_SKIP_CPU_CHECK=1 runs anyway.
ivall pushed a commit that referenced this pull request Nov 23, 2026
Until a title's queue calls show which console layout its runtime has,
queue #18 went to the older layout's GetDesc, which writes a 16-byte
D3D12_COMMAND_QUEUE_DESC. On the newer layout #18 is
GetTimestampFrequency(UINT64*), so a call before the first Signal wrote 8
bytes past the title's out-param.

A Signal / Wait with a fence at #14 / #15 now marks the older layout. Until
one of the layouts is known, #18 writes only the first 8 bytes of the
description (type and priority) and logs a warning once. After that it is
the full GetDesc (older) or GetTimestampFrequency (newer), as before.

Test queue_slot_18_before_the_layout_is_known_writes_8_bytes (fake adopted
queue).
mastrr9 pushed a commit to mastrr9/xcl that referenced this pull request Nov 24, 2026
mastrr9 pushed a commit to mastrr9/xcl that referenced this pull request Nov 24, 2026
mastrr9 added a commit to mastrr9/xcl that referenced this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants