Pr/newer title startup #142

Closed
github-bot wants to merge 6 commits from gh-pr/142/head into gh-pr/142/base
Owner

@⁠gbuyssens on GitHub · 2026-11-23 15:05 UTC · original
gbuyssens:pr/newer-title-startup → main · +122 −3 · 6 files · 6 commits · closed without merging

A 2026 retail build (MicrosoftGame.Config "title memory Advanced") calls
D3D12ConfigureVirtualMemoryX before its device and asserts on the stub's E_NOTIMPL, so it
ended at once. XCL lays out the title's memory itself: the export answers S_OK and logs its
arguments once (first words of the two pointers – the first one holds 0x400000000).
With it the title gets through XGameRuntime initialisation and GameInput, then asserts on an
E_NOINTERFACE nobody logged: XGameRuntime objects' QueryInterface and DirectStorage's query
now log the class and the IID they refuse, as GameInput's and D3D12's already do.

Tested: RTX 3060, the title above (two runs), scripts\test.ps1 <résultat>.

**@⁠gbuyssens** on GitHub · 2026-11-23 15:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/142) `gbuyssens:pr/newer-title-startup` → `main` · +122 −3 · 6 files · 6 commits · closed without merging A 2026 retail build (MicrosoftGame.Config "title memory Advanced") calls D3D12ConfigureVirtualMemoryX before its device and asserts on the stub's E_NOTIMPL, so it ended at once. XCL lays out the title's memory itself: the export answers S_OK and logs its arguments once (first words of the two pointers – the first one holds 0x400000000). With it the title gets through XGameRuntime initialisation and GameInput, then asserts on an E_NOINTERFACE nobody logged: XGameRuntime objects' QueryInterface and DirectStorage's query now log the class and the IID they refuse, as GameInput's and D3D12's already do. Tested: RTX 3060, the title above (two runs), scripts\test.ps1 <résultat>.
A newer GDK export a title calls before its device, for the console's memory layout
(MicrosoftGame.Config title memory "Advanced"); the first title seen calling it (a 2026
Rockstar build) asserted on the stub's E_NOTIMPL and ended at once. XCL lays out the
title's memory itself, so S_OK; the arguments are logged once.
A title asking for an interface version XCL does not know got E_NOINTERFACE silently and
asserted; the IID and the class are in the log now (as GameInput's and D3D12's already were).
62959d11-d45f-4884-a0a3-f7862ea243ae (its GDK name is not known here) gets the
IDStorageFactoryX object: its extra methods are the vtable's logged stubs, so the first one
the title calls is named instead of the title asserting on E_NOINTERFACE.
The thunk hands the tracer its frame (the saved rcx / rdx / r8 / r9, the caller's stack): a
method a title calls with a layout XCL does not expect (a 2026 title crashes inside
GetCustomHeapProperties, #26) is then readable from the log.
A 2026 title calls device slot #26 with the hidden result pointer first and the device second;
D3D12 took the stack for this and faulted. Both argument orders are answered with the device's
properties.
CreateCommandQueueX with flags 2 (a compute queue of a 2026 title) failed with E_INVALIDARG on
the PC's CreateCommandQueue: only DISABLE_GPU_TIMEOUT (1) is passed on, the rest logged once.
GetResourceAllocationInfo and GetAdapterLuid answer the result-pointer-first call like
GetCustomHeapProperties.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:12:18 +00:00
github-bot closed this pull request 2026-11-26 04:12:18 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 20:52 UTC · original

Closing: most of what this adds is on main since 9add721 (D3D12ConfigureVirtualMemoryX, GetCustomHeapProperties answering the free-function call, refused interfaces logged, the newer DirectStorage factory), and the branch now conflicts in 3 files. If a part is still missing on current main (the dropped queue flags, for example), please send it as a new PR on main. Thanks!

**@⁠ivall** on GitHub · 2026-11-23 20:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/142#issuecomment-7113685280) Closing: most of what this adds is on main since 9add721 (D3D12ConfigureVirtualMemoryX, GetCustomHeapProperties answering the free-function call, refused interfaces logged, the newer DirectStorage factory), and the branch now conflicts in 3 files. If a part is still missing on current main (the dropped queue flags, for example), please send it as a new PR on main. Thanks!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.