[PR #601] [CLOSED] d3d12_xs: answer the console command-list IID at device slot 73 (RT-XS-LIST-X-IID) #643

Closed
opened 2026-11-26 20:18:34 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/601
Author: @fiestorra
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: carry/xs-list-x-iid


📝 Commits (2)

  • 4cf3934 d3d12_xs: build the list for the console command-list IID at device slot 73 (RT-XS-LIST-X-IID)
  • 6fbb08c docs: retail_boot_chain row 9 and section 3.3 now name the runtime's own answer (#601)

📊 Changes

3 files changed (+73 additions, -5 deletions)

View changed files

📝 docs/retail_boot_chain.md (+7 -2)
📝 runtime/shims/d3d12_xs_device.cpp (+42 -3)
📝 runtime/test/xs_proxy_mock_test.cpp (+24 -0)

📄 Description

Claimed in the coordination issue as: RT-XS-LIST-X-IID (#14)

What and why

Device slot 73 hands the title's riid straight to ID3D12Device::CreateCommandList. The retail title asks it for the console command-list IID {C3827890-4024-474C-98CF-645B51DC4874}, which no PC device answers, so the call returned before wrap_list and the title's output pointer stayed null. That is stop 9 of docs/retail_boot_chain.md, and #14 traces it to the title's own int 3 - the STATUS_BREAKPOINT a run without a debugger ends with.

  • kConsoleCommandListIid names the measured interface, with how it was found: it is one entry of the title's own table of device-object IIDs, at .rdata rva 0x61e0668, between the CommandAllocator and command-signature entries, and the only instruction in the title that names it (lea r15, [...] at .text rva 0x2478b56) feeds the slot-73 call. It shares Data1 with IID_ID3D12GraphicsCommandList6, appears in no image of the package and is not in the PC SDK.
  • is_list_iid accepts it, and list_query_interface answers it from the console list table the proxy already models: no PC object implements that interface, so the real object's capability is not consulted for it. Every PC list interface still has to be implemented by the real list.
  • proxy_create_command_list_x builds the list as ID3D12GraphicsCommandList when that IID is asked for - what section 3.3 of docs/retail_boot_chain.md prescribes - and logs it once. Any other IID goes to the real device exactly as the title passed it, the same riid pointer included, so the existing path is unchanged.

What that interface's own method table adds is not established, and this change does not guess at it: the object handed back answers the requested IID through the console list slots the proxy already has.

Tested

  • New case in xs_proxy_mock next to the existing slot-73 block: asked for the console IID the call returns a console list proxy, the PC call is made with ID3D12GraphicsCommandList, the object answers its own IID through its slot 0 and refuses ID3D12Resource with the output nulled, references balanced. ctest -R "list|proxy|xs_|command": 13/13 passed (device_proxy, device_proxy_trace, every xs_proxy_mock variant, command_list, vk_command_replay, d3d12_queue_list_type, queue_proxy, allocator_proxy).
  • On the retail title, Radeon gfx1036 iGPU, LEONIDA_D3D12=vulkan: the new log line appears once and one list proxy is created, and the boot goes on to device slots 15, 133, 14 (four descriptor heaps, their slots 9 and 10), 17, 18, 19, 20, 70 (SRV from raw words), 25 and 127 - where before it stopped at 73 and read through a null list. The run now ends at a later trap, game_scarlett_master.exe+0x247af2d (0x80000003); I report that separately on #14.

Written with an AI assistant.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/601 **Author:** [@fiestorra](https://github.com/fiestorra) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `carry/xs-list-x-iid` --- ### 📝 Commits (2) - [`4cf3934`](https://github.com/ubiquitarianism/leonida/commit/4cf393482f8a62e96b687358f77e194d5db6365c) d3d12_xs: build the list for the console command-list IID at device slot 73 (RT-XS-LIST-X-IID) - [`6fbb08c`](https://github.com/ubiquitarianism/leonida/commit/6fbb08cb8617db3fce352da6c627a5fc6e607ce9) docs: retail_boot_chain row 9 and section 3.3 now name the runtime's own answer (#601) ### 📊 Changes **3 files changed** (+73 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/retail_boot_chain.md` (+7 -2) 📝 `runtime/shims/d3d12_xs_device.cpp` (+42 -3) 📝 `runtime/test/xs_proxy_mock_test.cpp` (+24 -0) </details> ### 📄 Description Claimed in the coordination issue as: RT-XS-LIST-X-IID (#14) ### What and why Device slot 73 hands the title's `riid` straight to `ID3D12Device::CreateCommandList`. The retail title asks it for the console command-list IID `{C3827890-4024-474C-98CF-645B51DC4874}`, which no PC device answers, so the call returned before `wrap_list` and the title's output pointer stayed null. That is stop 9 of `docs/retail_boot_chain.md`, and #14 traces it to the title's own `int 3` - the `STATUS_BREAKPOINT` a run without a debugger ends with. - `kConsoleCommandListIid` names the measured interface, with how it was found: it is one entry of the title's own table of device-object IIDs, at `.rdata` rva `0x61e0668`, between the CommandAllocator and command-signature entries, and the only instruction in the title that names it (`lea r15, [...]` at `.text` rva `0x2478b56`) feeds the slot-73 call. It shares `Data1` with `IID_ID3D12GraphicsCommandList6`, appears in no image of the package and is not in the PC SDK. - `is_list_iid` accepts it, and `list_query_interface` answers it from the console list table the proxy already models: no PC object implements that interface, so the real object's capability is not consulted for it. Every PC list interface still has to be implemented by the real list. - `proxy_create_command_list_x` builds the list as `ID3D12GraphicsCommandList` when that IID is asked for - what section 3.3 of `docs/retail_boot_chain.md` prescribes - and logs it once. Any other IID goes to the real device exactly as the title passed it, the same `riid` pointer included, so the existing path is unchanged. What that interface's own method table adds is not established, and this change does not guess at it: the object handed back answers the requested IID through the console list slots the proxy already has. ### Tested - New case in `xs_proxy_mock` next to the existing slot-73 block: asked for the console IID the call returns a console list proxy, the PC call is made with `ID3D12GraphicsCommandList`, the object answers its own IID through its slot 0 and refuses `ID3D12Resource` with the output nulled, references balanced. `ctest -R "list|proxy|xs_|command"`: 13/13 passed (`device_proxy`, `device_proxy_trace`, every `xs_proxy_mock` variant, `command_list`, `vk_command_replay`, `d3d12_queue_list_type`, `queue_proxy`, `allocator_proxy`). - On the retail title, Radeon gfx1036 iGPU, `LEONIDA_D3D12=vulkan`: the new log line appears once and one list proxy is created, and the boot goes on to device slots 15, 133, 14 (four descriptor heaps, their slots 9 and 10), 17, 18, 19, 20, 70 (SRV from raw words), 25 and 127 - where before it stopped at 73 and read through a null list. The run now ends at a later trap, `game_scarlett_master.exe+0x247af2d` (`0x80000003`); I report that separately on #14. Written with an AI assistant. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:34 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#643
No description provided.