Repository navigation
Olympus: report mesh wave requirements - #15
Merged
Merged
Conversation
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 |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 availability