mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #359] [MERGED] d3d12_xs_device: slot 73 creates the console ID3D12GraphicsCommandListX IID as ID3D12GraphicsCommandList (RT-XS-DEVICE-STOPS-7-9) #411
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#411
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/359
Author: @Andretuta
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:feat/xs-device-stops-7-9📝 Commits (5)
e7b32cdd3d12_xs_device: handle Xbox struct-return ABI (slots 25/26/58), slot 48 desc sanitize and slot 73 IID fallback (RT-XS-DEVICE-STOPS-7-9)1840c72Merge remote-tracking branch 'ubiq/main' into feat/xs-device-stops-7-9f423c90d3d12_xs_device: slot 73 retries a console list IID as ID3D12GraphicsCommandListd52ab6bd3d12_xs_device: map only the measured console list IID at slot 73c170702d3d12_xs_device: take #445's slot 73 mapping verbatim📊 Changes
3 files changed (+52 additions, -4 deletions)
View changed files
📝
docs/retail_boot_chain.md(+1 -1)📝
runtime/shims/d3d12_xs_device.cpp(+14 -3)📝
runtime/test/xs_proxy_mock_test.cpp(+37 -0)📄 Description
Claimed in the coordination issue as: RT-XS-DEVICE-STOPS-7-9 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121196296)
What and why
Reduced after review to what current
maindoes not already have. Slots 25/26 (the console's struct-return form) and 48 (CreateCommandQueueXdescriptor sanitizing) landed onmainin the meantime. The slot 58 forwarder is dropped: PC vtable slot 58 isID3D12Device5::RemoveDevice, notGetResourceAllocationInfo1(PC slot 56), and no call to Xbox slot 58 is measured.CreateCommandListX(slot 73,docs/retail_boot_chain.md§3.3): the title passes the consoleID3D12GraphicsCommandListXIID{c3827890-4024-474c-98cf-645b51dc4874}(measured in #445), which the PC device does not know. That IID is created asID3D12GraphicsCommandListin one call and handed out as the console list proxy, which also answersQueryInterfacefor it. Every other IID goes to the device unchanged.ID3D12GraphicsCommandList9on a revision-8 device) returnedS_OKand a base list. It now returnsE_NOINTERFACEwith a null output again.The slot 73 change in
d3d12_xs_device.cppis now #445's patch line for line, so the two merge cleanly in either order (checked withgit merge-treeand a test build of both merged, wherexs_proxy_mockandd3d12_vulkan_devicepass). This PR adds the tests and the docs.Tested
xs_proxy_mockandd3d12_vulkan_devicepass under CTest. New slot-73 checks:ID3D12GraphicsCommandList9and an unknown private IID keepE_NOINTERFACEwith a null output and one device call; the console IID is created once asID3D12GraphicsCommandListand is queryable on the proxy; a PC IID the device refuses is not retried. TheID3D12GraphicsCommandList9check fails on the previous head.GPUs tested: n/a (mock device)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.