Skip to content

Olympus: isolate GameSave async validation test - #18

Merged
ivall merged 1 commit into
xcl-dev:mainfrom
bmjask:codex/olympus-gamesave-test-isolation
Nov 21, 2026
Merged

ivall merged 1 commit into
xcl-dev:mainfrom
bmjask:codex/olympus-gamesave-test-isolation

Conversation

@bmjask

@bmjask bmjask commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Serializes the invalid async-block validation test with the existing shared XAsync test lock. Another parallel test temporarily redirects the process-global async backend, which made this assertion backend-dependent under concurrent scheduling.\n\nValidation:\n- exact regression test passes\n- 100 parallel XGameRuntime stress iterations passed\n- full library suite passed with 16 test threads\n- production behavior is unchanged

@ivall

ivall commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Reviewed and merged, thanks – the shared XAsync test lock still exists after #24's XAsync rework, so this keeps working. Checked together with #17, #18, #19 and #20 on top of current main: full workspace tests pass (271 lib tests, e2e, console_dlls_e2e, gpu_pso_e2e, rpf_e2e, the console-library tests), no new build warnings.

@ivall
ivall merged commit a2baa21 into xcl-dev:main Nov 21, 2026
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.
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
CalvyPZ pushed a commit to CalvyPZ/xcl that referenced this pull request Nov 24, 2026
rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 27, 2026
…ev#148 (XS)

The null device left slot xcl-dev#18 a logging stub, so the title's
raytracing_surface leg 2 read heap zeros ([0 x4]) instead of the RDNA2
BVH words; legs 3 (xcl-dev#148 upload, xcl-dev#146 barrier) were Vulkan-list-only, so
the default title list had stubs there too. All three are pure
host-memory operations (descriptor-word write, aligned zeroed alloc, a
coherent single-queue no-op barrier), so the null objects share the
Vulkan implementations with no GPU needed — same precedent as the xcl-dev#3
Execute leg sharing the console memory methods.

Failing-first: new null_device_serves_the_raytracing_surface test fails
pre-fix ([0 x4] vs the BVH words) and passes now; other view dimensions
and nulls still pass through untouched (existing Vulkan helper test).
Gates: check -p xcl --tests EXIT 0; check --workspace EXIT 0; lib 799
passed/0 failed/1 ignored (--test-threads=4). Title e2e, fresh roots:
null 12->11 FAILs (raytracing_surface now PASSES; every other FAIL
byte-identical, 0 new non-GPU), Vulkan 10 total incl. files (9 D3D12.X,
raytracing absent — paths untouched). Retail HOLDS (SIGSEGV
exe+0x2237320, exit 139, called_stubs 20, 0 d3d12).
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