mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #601] [CLOSED] d3d12_xs: answer the console command-list IID at device slot 73 (RT-XS-LIST-X-IID) #643
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#643
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
4cf3934d3d12_xs: build the list for the console command-list IID at device slot 73 (RT-XS-LIST-X-IID)6fbb08cdocs: 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
riidstraight toID3D12Device::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 beforewrap_listand the title's output pointer stayed null. That is stop 9 ofdocs/retail_boot_chain.md, and #14 traces it to the title's ownint 3- theSTATUS_BREAKPOINTa run without a debugger ends with.kConsoleCommandListIidnames the measured interface, with how it was found: it is one entry of the title's own table of device-object IIDs, at.rdatarva0x61e0668, between the CommandAllocator and command-signature entries, and the only instruction in the title that names it (lea r15, [...]at.textrva0x2478b56) feeds the slot-73 call. It sharesData1withIID_ID3D12GraphicsCommandList6, appears in no image of the package and is not in the PC SDK.is_list_iidaccepts it, andlist_query_interfaceanswers 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_xbuilds the list asID3D12GraphicsCommandListwhen that IID is asked for - what section 3.3 ofdocs/retail_boot_chain.mdprescribes - and logs it once. Any other IID goes to the real device exactly as the title passed it, the sameriidpointer 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
xs_proxy_mocknext to the existing slot-73 block: asked for the console IID the call returns a console list proxy, the PC call is made withID3D12GraphicsCommandList, the object answers its own IID through its slot 0 and refusesID3D12Resourcewith the output nulled, references balanced.ctest -R "list|proxy|xs_|command": 13/13 passed (device_proxy,device_proxy_trace, everyxs_proxy_mockvariant,command_list,vk_command_replay,d3d12_queue_list_type,queue_proxy,allocator_proxy).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.