Skip to content

Olympus: reject invalid mesh branch targets - #16

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

ivall merged 1 commit into
xcl-dev:mainfrom
bmjask:codex/olympus-mesh-invalid-targets

Conversation

@bmjask

@bmjask bmjask commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

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

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

ivall commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

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.

ivall added a commit that referenced this pull request Nov 22, 2026
…ist layouts

Unicorn Overlord runs on a newer console D3D12 runtime from its own game OS.
It reports the same SDK version (0x20004) as XDefiant and Minecraft, but some
vtables are laid out differently:

- Command queue: there are two more methods before Signal. Signal is at #16,
  Wait #17, GetTimestampFrequency #18, SignalX #25 and PresentX #32. The
  title's Signal used to land on GetTimestampFrequency, which wrote 100 MHz
  over the fence's vtable, and the game crashed. queue_dispatch now handles
  the title's queue slots from #14. A fence passed to #16 or #17 marks the
  newer layout; the older layout never passes one there.
- Command list: the console methods from CopyTextureRegionX onward sit two
  slots later (#85 instead of #83). The texture uploads used to hit
  SetPredicationBufferX, so every texture stayed zero and the screen showed
  only shapes and gradients. guard::make_layout_split now picks the method
  at each call and leaves the argument registers, xmm ones included,
  untouched.

Also:
- Console-only resource state bits (0x100000 on the 4K display target) are
  masked off when a resource is created. The PC refused the resource and
  the title threw.
- The title commits 2046 of 2048 MB of unified memory at start. XCL's
  per-draw arena now has its own 64 MB pool at the end of window 0, so
  draws are no longer skipped.
- FENCES is a read-write lock. end_title reads it while the title's threads
  are suspended, so a suspended reader no longer blocks it.

Diagnostics:
- XCL_WATCH=rva sets a write watchpoint in the exe; the calling thread is
  armed at once.
- XCL_WATCH_FENCE=n watches the n-th fence.
- The log now shows the device's SDK version, console-only interface
  requests, the title's file opens with their flags, DirectStorage
  requests, unified-memory use, and (in traces) whether title textures hold
  data in memory.

README: Unicorn Overlord is listed as fully playable. Bink's GPU-assisted
mode is no longer listed as missing: it needs no Bink-specific support.
Hull, domain and amplification shaders are dropped from the list too, since
none of the games use them.
mastrr9 pushed 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