Repository navigation
Olympus: report implemented runtime features - #12
Merged
Merged
Conversation
Collaborator
|
Thanks! One thing before merging: XCL serves more families than the ones in the list, either itself or through the PC runtime it forwards to:
A title that checks |
bmjask
force-pushed
the
codex/olympus-runtime-features
branch
from
November 21, 2026 17:35
dea72e6 to
83f476b
Compare
Contributor
Author
|
Updated as requested: all documented families now report available except XAppCapture and XStore, unknown IDs remain false, and the test explicitly covers every documented name/ID. Focused and full library suites pass. |
Collaborator
|
Thanks – merged, exactly what I meant. |
ivall
added a commit
that referenced
this pull request
Nov 21, 2026
From slot 44 on the console device's vtable holds its extensions; a title call there no longer runs the PC method at that index. - CreatePlacedResourceX (#44): buffers at title addresses in unified memory are placed in that memory (GPU VA = the address) - CreateCommandQueueX (#48) / CreateCommandListX (#73) and #8 / #9 / #12: the DMA type and list IID, console queue priorities - graphics PSO X (#60), CreatePipelineState (#86), CreateSamplerX (#61), GetCopyableFootprints (#38) and command signatures (#41) with console descs, descriptor heap type 4 - SetDebugFlagsX, pipeline (de)serialisation, page pools; any other extension slot is a logged S_OK stub - test title: a DMA copy of a buffer placed at its own graphics memory
ivall
added a commit
that referenced
this pull request
Nov 21, 2026
From runs of the user's XDefiant dump (each was a stop of the title after a failed D3D12 call): - D: is mounted on the game folder by default (d:\hunter\...); new default mounts are merged into existing configs; - the title's unhandled-exception filter goes behind XCL's; crash records have all registers, the vtable module of the objects they point at and the callers on the stack; - CheckFeatureSupport with the console's larger structures (D3D12_OPTIONS 0x40 bytes) is retried with the PC size; - device #25 GetResourceAllocationInfo called the C way (return buffer first) no longer writes over the device; - the DMA list has its own vtable: Close #9, Reset #10, CopyBufferRegion #11, CopyTextureRegion #12, CopyResource #13, CopyTiles #14; - the PC runtime writes its vtable into a copy list on Reset: XCL's is put back; - device #27 CreateCommittedResource from console code: buffers and textures in unified memory (the title clears a texture through its GPU address). It now stops where the title's inline D3D12.X code writes graphics records into the command list object. Diagnostics: XCL_WATCH_DEVICE / XCL_WATCH_DMA (hardware write watchpoints), XCL_D3D12_DEBUG (debug layer messages into the log). Console shader kernels: local arrays indexed per lane, switch in nested loops, 16-bit floats and integers (11 kernels, all the same as the PC).
ivall
added a commit
that referenced
this pull request
Nov 23, 2026
…st and fence methods Placeholder VirtualAlloc, XMemMapPhysicalPagesScatter with 4 KiB page numbers, the title's allocation hooks, pipeline streams translated as plain descs, fence #12, GetResourceAllocationInfo2, 1D / 3D textures in xg (checked against the console's library), the newer list layout from #72 on, and XCL_NETWORK=0. Not playable yet: the title runs out of memory while compiling pipelines (HANDOFF). Co-Authored-By: Claude Opus 5.5 <[email protected]>
gustavsi
added a commit
to gustavsi/xcl
that referenced
this pull request
Nov 24, 2026
vkd3d-proton compares iface->lpVtbl on ID3D12CommandAllocator, ID3D12GraphicsCommandList, and ID3D12Fence inside CreateCommandList, Reset, ExecuteCommandLists, and CommandQueue::Signal/Wait (including its async queue thread). Under Wine: - Restore the native vtable with UnadoptGuard around command allocator and command list calls into d3d12core.dll. - Wrap ID3D12Fence in a thin FenceProxy so the underlying fence keeps its native lpVtbl, unwrapping it in queue Signal/Wait paths while preserving Fence::xcl-dev#12 completed_value_address. Verified on Linux (GE-Proton11-14, RX 9060 XT): fixes CreateCommandListX / ResetX E_INVALIDARG crashes and frame-1 GPU fence timeouts.
gustavsi
added a commit
to gustavsi/xcl
that referenced
this pull request
Nov 24, 2026
vkd3d-proton compares iface->lpVtbl on ID3D12CommandAllocator, ID3D12GraphicsCommandList, and ID3D12Fence inside CreateCommandList, Reset, ExecuteCommandLists, and CommandQueue::Signal/Wait (including its async queue thread). Under Wine: - Restore the native vtable with UnadoptGuard around command allocator and command list calls into d3d12core.dll. - Wrap ID3D12Fence in a thin FenceProxy so the underlying fence keeps its native lpVtbl, unwrapping it in queue Signal/Wait paths while preserving Fence::xcl-dev#12 completed_value_address. Verified on Linux (GE-Proton11-14, RX 9060 XT): fixes CreateCommandListX / ResetX E_INVALIDARG crashes and frame-1 GPU fence timeouts.
gustavsi
added a commit
to gustavsi/xcl
that referenced
this pull request
Nov 24, 2026
vkd3d-proton compares iface->lpVtbl on ID3D12CommandAllocator, ID3D12GraphicsCommandList, and ID3D12Fence inside CreateCommandList, Reset, ExecuteCommandLists, and CommandQueue::Signal/Wait (including its async queue thread). Under Wine: - Restore the native vtable with UnadoptGuard around command allocator and command list calls into d3d12core.dll. - Wrap ID3D12Fence in a thin FenceProxy so the underlying fence keeps its native lpVtbl, unwrapping it in queue Signal/Wait paths while preserving Fence::xcl-dev#12 completed_value_address. Verified on Linux (GE-Proton11-14, RX 9060 XT): fixes CreateCommandListX / ResetX E_INVALIDARG crashes and frame-1 GPU fence timeouts.
gustavsi
added a commit
to gustavsi/xcl
that referenced
this pull request
Nov 24, 2026
vkd3d-proton compares iface->lpVtbl on ID3D12CommandAllocator, ID3D12GraphicsCommandList, and ID3D12Fence inside CreateCommandList, Reset, ExecuteCommandLists, and CommandQueue::Signal/Wait (including its async queue thread). Under Wine: - Restore the native vtable with UnadoptGuard around command allocator and command list calls into d3d12core.dll. - Wrap ID3D12Fence in a thin FenceProxy so the underlying fence keeps its native lpVtbl, unwrapping it in queue Signal/Wait paths while preserving Fence::xcl-dev#12 completed_value_address. Verified on Linux (GE-Proton11-14, RX 9060 XT): fixes CreateCommandListX / ResetX E_INVALIDARG crashes and frame-1 GPU fence timeouts.
gustavsi
added a commit
to gustavsi/xcl
that referenced
this pull request
Nov 24, 2026
vkd3d-proton compares iface->lpVtbl on ID3D12CommandAllocator, ID3D12GraphicsCommandList, and ID3D12Fence inside CreateCommandList, Reset, ExecuteCommandLists, and CommandQueue::Signal/Wait (including its async queue thread). Under Wine: - Restore the native vtable with UnadoptGuard around command allocator and command list calls into d3d12core.dll. - Wrap ID3D12Fence in a thin FenceProxy so the underlying fence keeps its native lpVtbl, unwrapping it in queue Signal/Wait paths while preserving Fence::xcl-dev#12 completed_value_address. Verified on Linux (GE-Proton11-14, RX 9060 XT): fixes CreateCommandListX / ResetX E_INVALIDARG crashes and frame-1 GPU fence timeouts.
gustavsi
added a commit
to gustavsi/xcl
that referenced
this pull request
Nov 24, 2026
vkd3d-proton compares iface->lpVtbl on ID3D12CommandAllocator, ID3D12GraphicsCommandList, and ID3D12Fence inside CreateCommandList, Reset, ExecuteCommandLists, and CommandQueue::Signal/Wait (including its async queue thread). Under Wine: - Restore the native vtable with UnadoptGuard around command allocator and command list calls into d3d12core.dll. - Wrap ID3D12Fence in a thin FenceProxy so the underlying fence keeps its native lpVtbl, unwrapping it in queue Signal/Wait paths while preserving Fence::xcl-dev#12 completed_value_address. Verified on Linux (GE-Proton11-14, RX 9060 XT): fixes CreateCommandListX / ResetX E_INVALIDARG crashes and frame-1 GPU fence timeouts.
gustavsi
added a commit
to gustavsi/xcl
that referenced
this pull request
Nov 24, 2026
…er Wine (xcl-dev#175) vkd3d-proton validates iface->lpVtbl on adopted D3D12 objects passed back into d3d12core.dll (command allocators, lists, heaps, resources, PSOs, and fences). On unmodified vkd3d-proton, XCL's in-place vtable adoption causes CreateCommandList/Reset to fail with E_INVALIDARG, fence waits to reject adopted fences, and assert-enabled builds (stock Proton Experimental) to abort on ID3D12Heap::lpVtbl checks. Under Wine (gated behind util::under_wine(), native Windows unchanged): - UnadoptGuard temporarily restores the native vtable on adopted command allocators (including alloc_pool backings and reset_pc_allocator), command lists, heaps (CreatePlacedResource/CreatePlacedResource1), RTV resources, and PSOs around calls into d3d12core.dll. - FenceProxy wraps title ID3D12Fence1 objects so the underlying PC fence keeps its native lpVtbl, unwrapping in queue Signal/Wait while preserving Fence::xcl-dev#12 completed_value_address and freeing on final Release. - real::create_raw_fence creates un-proxied native ID3D12Fence objects for XCL's own internal queue tracking (late_release, alloc_pool, list_x, cpu_writes, present, vram, drain_gpu) so un-adopted internal queues like sparse::queue() never receive a FenceProxy. Assisted-by: Antigravity (Google DeepMind)
CalvyPZ
pushed a commit
to CalvyPZ/xcl
that referenced
this pull request
Nov 24, 2026
… vtable vkd3d-proton takes a heap, resource, descriptor heap, query heap, root signature, pipeline state or command signature only with its own vtable: an assert(iface->lpVtbl == &..._vtbl) in each of its methods and wherever one is passed in (vkd3d_private.h). The official release builds keep these asserts, so adoption, which replaces the vtable pointer, ends the process (status 3) at the first such object: under Wine with the v3.1 release DLLs the test title stops at its first heap after 6 checks. Under Wine (util::under_wine) these classes now get XCL's PC slots written into the runtime's own table instead (VirtualProtect, as XAudio2's patch does), only up to the PC interface's method count, and only when the object answered QueryInterface for that interface with itself and every slot up to there is in the runtime's module. orig_fn finds the entries from before by the table. Classes are made one at a time, so no thread scans a table another is writing. The table is shared by every object of the class (swap-chain buffers too); the overrides already take objects XCL did not create. These classes have no console slots past the PC interface, so nothing is lost there. Not covered, by design: fences (console xcl-dev#12 is past the PC table), command allocators and lists (vkd3d-proton checks those at run time, E_INVALIDARG; xcl-dev#867 handles them), bundles. On Windows nothing changes: every new path is behind under_wine(), and orig_fn's lookup has no table there. Part of xcl-dev#175. Co-Authored-By: Claude Opus 5.5 <[email protected]>
raylitebull
pushed a commit
that referenced
this pull request
Nov 25, 2026
Part of #480. Add integration tests comparing D3D12.X runtime wrappers against host ID3D12Device objects and console ABI contracts across: - ID3D12Resource Map, Unmap, GetGPUVirtualAddress (including lazy TITLE_ADDRESS texture fallback and UMA buffer placement), and WriteToSubresource - ID3D12DescriptorHeap console slot #9/#10 start handles and console_heap::start lifecycle on host and console #14 heaps - ID3D12CommandQueue GetDesc, GetTimestampFrequency, GetClockCalibration (host parity and pre/post-QUEUE_OLDER console calls), ExecuteCommandLists, Wait, Signal, and SignalX (#23) - ID3D12Fence slot #12 64-byte-aligned completed-value cell and CPU Signal updates, plus ID3D12CommandAllocator::Reset (#8) Verified on AMD Radeon RX 9070 XT (debug, release, XCL_D3D12_DEBUG=1), AMD Radeon(TM) Graphics, and WARP.
SavageCore
pushed a commit
to SavageCore/xcl
that referenced
this pull request
Nov 25, 2026
…er Wine (xcl-dev#175) vkd3d-proton validates iface->lpVtbl on adopted D3D12 objects passed back into d3d12core.dll (command allocators, lists, heaps, resources, PSOs, and fences). On unmodified assertion-free vkd3d-proton (such as GE-Proton or -Db_ndebug=true builds), XCL's in-place vtable adoption causes CreateCommandList/Reset to fail with E_INVALIDARG and fence waits to reject adopted fences. Under Wine (gated behind util::under_wine(), native Windows unchanged): - UnadoptGuard temporarily restores the native vtable on adopted command allocators (including alloc_pool backings and reset_pc_allocator), command lists, heaps (CreatePlacedResource/CreatePlacedResource1), RTV resources, and PSOs around calls into d3d12core.dll. - FenceProxy wraps title ID3D12Fence1 objects so the underlying PC fence keeps its native lpVtbl, unwrapping in queue Signal/Wait while preserving Fence::xcl-dev#12 completed_value_address and freeing on final Release. - real::create_raw_fence creates un-proxied native ID3D12Fence objects for XCL's own internal queue tracking (late_release, alloc_pool, list_x, cpu_writes, present, vram, drain_gpu) so un-adopted internal queues like sparse::queue() never receive a FenceProxy. Note: assert-enabled vkd3d-proton builds (such as stock Proton Experimental) still validate iface->lpVtbl inside an adopted object's own methods, so an assertion-free build (-Db_ndebug=true / GE-Proton) remains required for in-place adoption. Assisted-by: Antigravity (Google DeepMind)
oni-swr
added a commit
to oni-swr/xcl
that referenced
this pull request
Nov 26, 2026
A shared stand-in (`standin::shell`) is a Rust object, not a D3D12Core pipeline. Device xcl-dev#34 MakeResident and xcl-dev#35 Evict keep the PC layout for console code and had no override, so a stand-in pipeline in the title's object array reached the driver as `*mut Shell`. Both are overridden now. Microsoft's MakeResident / Evict support residency changes on descriptor heaps, heaps, committed resources and query heaps only; a pipeline state is ID3D12Pageable but not among them, so the pipeline behind a stand-in is no valid entry either. Each shell is left out of the array: the driver gets the other objects in order, in a copy (the title's array is left as it is), and its HRESULT is returned as it is. A call with stand-ins only returns S_OK without a driver call. Arrays without a stand-in (empty, null, supported objects) go as they are. Nothing builds or waits for a lazy pipeline. The other entry points named in xcl-dev#2455 are not reachable by title code on main: device xcl-dev#46 SetResidencyPriority and xcl-dev#51 EnqueueMakeResident are console extensions there (a logged S_OK stub), xcl-dev#44 is the console's CreatePlacedResourceX (no native pipeline library for StorePipeline), and xcl-dev#12 CreateCommandList goes to `create_command_list_pc`, which resolves the initial pipeline. Fixes xcl-dev#2455 Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Nov 26, 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.
Summary
Validation