d3d12_xs_device: slot 73 creates the console ID3D12GraphicsCommandListX IID as ID3D12GraphicsCommandList (RT-XS-DEVICE-STOPS-7-9) #359
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!359
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/359/head"
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?
@Andretuta on GitHub · 2026-11-24 03:53 UTC · original
ubiquitarianism:feat/xs-device-stops-7-9→main· +52 −4 · 3 files · 5 commits · merged 2026-11-24 13:44 UTCClaimed in the coordination issue as: RT-XS-DEVICE-STOPS-7-9 (#14)
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
@Sigtryggur-Mani-Gudmundsson on GitHub · 2026-11-24 05:32 UTC · original · edited 2026-11-24 05:44 UTC
I tested the slot 73 fallback against the Vulkan backend from
main@8f481cf1under Wine on an RTX 4070 Ti. With a synthetic private IID, main returnedE_NOINTERFACE. With this PR’s proxy, the list closed, submitted and reached fence value 1. This covers the creation route in the new boot report.One public capability check regresses. Requesting
ID3D12GraphicsCommandList9on a backend that implements revision 8 returnsS_OKand a base list. A guard for public list revisions preservesE_NOINTERFACEand a null output while the private request still reaches the fence. The complete PR mock passed with the guard. Separately, querying the returned proxy for the original synthetic private IID still returnsE_NOINTERFACE. I did not run the retail title.I isolated your fallback on current main and included a small review patch against
e7b32cd9, with a source-only GPU fixture and results. Patches and reproduction. AI-assisted with Codex.The full proxy mock now passes on unchanged main and main with the standalone slot-73 patch. My earlier slot-26 test failure came from my LLVM-MinGW header adaptation. On the RTX 4070 Ti, both builds returned the same heap properties and allocation info as the underlying D3D12 device through both calling conventions, with vkd3d-proton 2.11.0 and 3.0.0. The updated reproduction link includes the build script and hardware fixture.
@fiestorra on GitHub · 2026-11-24 07:09 UTC · original
Ran your slot-73 change against the retail title on the current
main, and one thing to save you a rebase. Based42773d07. Windows build 26300, MSVCRelWithDebInfo,LEONIDA_D3D12=vulkanon a Radeon 780M integrated GPU (gfx1036), 1.0.2.1 executable and package. Written with an AI assistant.The rebase.
e7b32cd91conflicts on today'smainbecause the device work it carries has since landed on its own: slot 26 through #349, slot 48 through #350, slot 70 through #356, slot 25 through #362. Only your last commitf423c9046(the slot 73 command-list IID) is still new, and that one cherry-picks ontod42773d07with no conflicts, touching onlyd3d12_xs_device.cppandxs_proxy_mock_test.cpp. Dropping the earlier commit from the branch looks enough to make this landable as is.What it does to the title. Without it,
d42773d07stops exactly at this call: 13 recorded calls,#13 ID3D12Device::CreateCommandList failed, then the title's own assert0x80000003. Withf423c9046applied, the title reaches 1644 recorded calls, 1619ok, throughID3D12GraphicsCommandList::Close,XboxIDXGIDevice::GetAdapter,CreatePlacedResourceX(slot 133),CreateDescriptorHeap,ID3D12Device10::CreateCommittedResource3and a batch of view-creation calls, and stops at the title assert0x80000003atgame_scarlett_master.exe+0x247af2d— a point past every row indocs/retail_boot_chain.md. I posted that stop separately in the coordination issue.The difference I can measure against the other open attempt on the same wall (#445, which maps the IID instead of retrying) is only in the failed-call count: here five
CreateCommandListcalls come back failed (#13, #17, #21, #25, #29) and the title continues past them, while the mapping version reports no failedCreateCommandListat all. Both reach the same stop, with the same following calls, so on this title the retry shape is not what holds it back — what matters is that the console IID stops being refused. I did not runxs_proxy_mock_test.cpp(I tested by running the title), and I did not check other hardware.@x2Tweek on GitHub · 2026-11-24 09:39 UTC · original · reviewed
Tested PR #359's IID-free fallback approach on the retail executable (.exe 1.0.2.1), LEONIDA_D3D12=vulkan, RTX 5090.
Before the fix: boot crashes at trace #13,
ID3D12Device::CreateCommandList failed—QueryInterface: unknown IID {c3827890-4024-474c-98cf-645b51dc4874}.After applying PR #359's change (retry CreateCommandList with PC base IID
__uuidof(ID3D12GraphicsCommandList)on E_NOINTERFACE when the requested IID is not a list IID): boot reaches trace #1644, stopping atCreateUnorderedAccessView. Exit still 0x80000003 but the blocker moved from CreateCommandList to resource creation.This is the same outcome as PR #142's class-level approach (both reach resource creation, ~1600 D3D12 calls). PR #359's change is simpler — no new GUID constant, no
d3d12_com.hinclude (which breaksxs_proxy_mock_testbuild on theroot_sig_testtarget that lacks Vulkan headers), and doesn't changelist_query_interface()/is_list_iid().Next blocker after this fix:
CreateUnorderedAccessViewat trace #1644, guest-code crashmov dword ptr [rax], r8dwith invalidraxatgame_scarlett_master.exe+0x55e3b1, stack 100% game code, no gta6rt frames.Tested on current upstream/main (
1c93c8697) with the fix applied temporarily in a local worktree (reverted after testing; not committed).@hubeton on GitHub · 2026-11-24 13:23 UTC · original
Independent run of the current PR head
d52ab6b5onmain@2d73c242, using Xbox 1.0.2.1 on native Windows 11 (26300.9974) with an RTX 3060 Ti, NVIDIA 621.24, andLEONIDA_D3D12=vulkan. Built with clang-cl 23.1.6 inRelWithDebInfo.xs_proxy_mock_testpassed.The previous unpatched build failed at slot 73 (
CreateCommandListX, trace entry #13). With this PR, entry #13 succeeds and the run reaches entry #1639 (CreateUnorderedAccessView) before the title raises0x80000003. This matches the existing reports and adds a native Windows Ampere result for the current IID-specific revision.AI-assisted testing and report.