Repository navigation
Conversation
…sks for
# What and why
Device slot 73 (`CreateCommandListX`) is handed the title's own command-list interface, measured on the retail
1.0.2.1 executable as `{c3827890-4024-474c-98cf-645b51dc4874}` — same first word as `ID3D12GraphicsCommandList6`
(`{c3827890-e548-4cfa-…}`) but not that interface, and no PC list answers it.
The proxy passed that IID straight down to the layer, which answered `E_NOINTERFACE` (`0x80004002`). Every
`CreateCommandList` therefore failed, the title received a null list, and it read through the null.
Three changes, all in `runtime/shims/d3d12_xs_device.cpp`:
- `kConsoleListIID` holds the measured GUID; `is_list_iid()` accepts it.
- `list_query_interface()` skips the PC `supports_iid` check for it: no PC list can answer an Xbox IID, and the
proxy answers it with itself.
- `proxy_create_command_list_x()` creates the list with `__uuidof(ID3D12GraphicsCommandList)` and lets `wrap_list()`
answer the console IID, instead of forwarding the title's IID to the layer.
## Tested
Retail 1.0.2.1 executable, Wine 11.22, `LEONIDA_D3D12=vulkan`, NVIDIA RTX 3060 Ti (GA103), `gta6rt --run`:
| | before | after |
|---|---|---|
| D3D12 calls | 13 | **1,181** |
| `CreateCommandList` | fails, `0x80004002` | 581 created and closed |
| last call reached | — | `XboxIDXGIDevice::GetAdapter` (ok) |
The run still stops later, in guest code (`read 0x18` inside a static initialiser), which is a separate stop.
Depends on: #8461
Depends on: #6964
Measured on top of those two and of the one-line `gameinput.dll!#1` ordinal alias (not a PR; the retail executable
imports GameInput by ordinal, so the registry never matched the shim). `main` alone stops earlier, at the DStorage
assert, so this change cannot show its effect without them.
## Item
New item. The `claiming:` line for the coordination issue could not be posted: this account is not a collaborator,
and the repository restricts interactions to collaborators. Whoever lands this should list it there.
## Note
`main` at this commit does not compile for clang-cl: `DescriptorHeap`/`identity()` in
`d3d12_vulkan_device.cpp` and the `SHAPE_*` static asserts in `acphal.cpp`. Those are unrelated to this change and
reported separately.
AI-assisted.
kConsoleListIID moves to the header so the test names it, and one case calls device slot 73 with the console's own list interface: the proxy answers QueryInterface itself, and the layer receives the PC base interface. Not run locally - the mock-test target does not build at this commit (finding posted), so CI is the check.
|
Measured on top of #349 and #350, on
So this clears the list-interface stop here: 581 lists are created and closed after it. Two things I ran into:
AI-assisted; built and run on the machine above. |
|
Native Windows build check of I reproduced the standalone Two additional test findings from source review:
These two findings were established by source inspection. The build blocker prevents an execution result for either assertion. No game files were used. AI-assisted review and verification with Claude Code and Codex. |
|
Not merging this. Against current main:
An IID-free fallback, retrying on |
|
Boot evidence for the console command-list IID fix. Build with a QI fix accepting
After #1639 the boot stops in guest code: This PR's proxy-level approach (answer the console IID in |
x2Tweek
left a comment
There was a problem hiding this comment.
Tested PR #142's console command-list IID fix on the retail executable (game_scarlett_master.exe 1.0.2.1), LEONIDA_D3D12=vulkan, RTX 5090.
Before the fix: boot crashed at trace #13, ID3D12Device::CreateCommandList failed — QueryInterface: unknown IID {c3827890-4024-474c-98cf-645b51dc4874}. Five runs all identical, exit 0x80000003.
After applying the fix (kConsoleListIID accepted in is_list_iid(), supports_iid skipped for the console IID in list_query_interface(), base PC list created instead of forwarding the console IID): boot reaches trace #1639, stopping at CreateUnorderedAccessView (no "ok" after it). Exit still 0x80000003 but the blocker moved from CreateCommandList to resource creation.
Five runs with the fix, all reached #1639. D3D12 calls went from 13 to 1639.
No game data in this report — module+RVA and trace event counts only.
This confirms PR #142 resolves the CreateCommandList QI blocker. The next stop is CreateUnorderedAccessView at trace #1639.
Tested on current upstream/main (1c93c86) with the fix applied temporarily in a local worktree (reverted after testing; not committed).
|
Thanks for carrying this over, and to everyone who measured it. Closing it as covered by
AI-assisted (Claude Code, Claude Opus 5.5). |
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):d3d12_xs: answer the console command-list IID the retail executable asks for
What and why
Device slot 73 (
CreateCommandListX) is handed the title's own command-list interface, measured on the retail1.0.2.1 executable as
{c3827890-4024-474c-98cf-645b51dc4874}— same first word asID3D12GraphicsCommandList6(
{c3827890-e548-4cfa-…}) but not that interface, and no PC list answers it.The proxy passed that IID straight down to the layer, which answered
E_NOINTERFACE(0x80004002). EveryCreateCommandListtherefore failed, the title received a null list, and it read through the null.Three changes, all in
runtime/shims/d3d12_xs_device.cpp:kConsoleListIIDholds the measured GUID;is_list_iid()accepts it.list_query_interface()skips the PCsupports_iidcheck for it: no PC list can answer an Xbox IID, and theproxy answers it with itself.
proxy_create_command_list_x()creates the list with__uuidof(ID3D12GraphicsCommandList)and letswrap_list()answer the console IID, instead of forwarding the title's IID to the layer.
Tested
Retail 1.0.2.1 executable, Wine 11.22,
LEONIDA_D3D12=vulkan, NVIDIA RTX 3060 Ti (GA103),gta6rt --run:CreateCommandList0x80004002XboxIDXGIDevice::GetAdapter(ok)The run still stops later, in guest code (
read 0x18inside a static initialiser), which is a separate stop.Depends on:
#8461Depends on:
#6964Measured on top of those two and of the one-line
gameinput.dll!#1ordinal alias (not a PR; the retail executableimports GameInput by ordinal, so the registry never matched the shim).
mainalone stops earlier, at the DStorageassert, so this change cannot show its effect without them.
Test
runtime/test/xs_proxy_mock_test.cpp: slot 73 withkConsoleListIID-> the proxy answers QueryInterface,and PC slot 12 receives
ID3D12GraphicsCommandList. CI runs it.Item
New item. The
claiming:line for the coordination issue could not be posted: this account is not a collaborator,and the repository restricts interactions to collaborators. Whoever lands this should list it there.
Note
mainat this commit does not compile for clang-cl:DescriptorHeap/identity()ind3d12_vulkan_device.cppand theSHAPE_*static asserts inacphal.cpp. Those are unrelated to this change andreported separately.
AI-assisted.