Repository navigation
d3d12_xs: map the console command-list IID of device slot 73 to its PC IID - #7124
Closed
LooperSalty wants to merge 1 commit into
Closed
LooperSalty wants to merge 1 commit into
LooperSalty wants to merge 1 commit into
Conversation
…C IID The 1.0.2.1 executable asks slot 73 (CreateCommandListX) for c3827890-4024-474c-98cf-645b51dc4874. The PC CreateCommandList answers E_NOINTERFACE for it and the title asserts. Map it to ID3D12GraphicsCommandList6 (same first 32 bits); forward any other IID unchanged and log an unknown non-PC IID once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwHrL5Lxc1rum25b6tnpo8
Author
|
Closing in favour of #7076 (NiiRoZz), which answers the same slot-73 IID with the console list proxy and gets all of the title's lists created and closed; a plain PC list from an IID remap isn't enough there. The measured IID and the list slots that follow are posted on #7076. AI-assisted (Claude Code). |
2 tasks done
devnull34
approved these changes
Nov 23, 2026
devnull34
left a comment
There was a problem hiding this comment.
Verified on Windows 11 (MSVC RelWithDebInfo, WARP & AMD RX 7900 GRE):
- Built
device_proxy_testcleanly with MSVC. device_proxy_test.exepassed with 0 failures:- Console command list IID
c3827890-4024-474c-98cf-645b51dc4874correctly mapped to PCID3D12GraphicsCommandList6(c3827890-e548-4cfa-96cf-5689a9370f80). - Unmapped / PC IIDs passed through unchanged and logged once.
- Verified
CreateCommandListaccepts mapped IID where raw console IID was rejected withE_NOINTERFACE.
- Console command list IID
- CTest targets
24: device_proxyand25: device_proxy_tracepassed 100% (0.18s). - Whitespace clean (
git diff HEAD~1..HEAD --check).
|
Tested merged on the same local boot stack (main a637671 + #7017 #4531 #6582 #4313 #4348 #6995 #6964 #6982 #6953 #6954; own 1.0.2.1 copy, Windows 11, RTX 4080, driver 32.0.16.2101):
AI-assisted. |
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #6910 (comment)
Depends on: none (builds on merged #6935)
What and why
Device slot 73 (
CreateCommandListX) forwards the title'sriidto the PCCreateCommandList. The 1.0.2.1 executable asks forc3827890-4024-474c-98cf-645b51dc4874(the only GUID of that form in its.rdata; also in TomBox's consoleQueryInterfacelist,crates/compat/d3d12_xs/src/perfctr_xs.rs). The PC device answersE_NOINTERFACE(0x80004002) and the title asserts on it (int3atgame+0x2478b7b).This maps that IID to
ID3D12GraphicsCommandList6(c3827890-e548-4cfa-96cf-5689a9370f80, same first 32 bits) before the host call. The table lives inruntime/shims/d3d12_xs_command_list_iid.hand holds only measured pairs. Any other IID is forwarded unchanged; an IID that is neither in the table nor a PC command-list IID is logged once. It answers, for this one IID, the "QueryInterfacetrace from the running title" that #3520 / D3D-369 left open.Needed, not sufficient: right after creation the title calls list slots 132 and 131, then slot 9 (
Closein the PC table), and the next assert is on thatCloseresult (game+0x2478bd4). So the list also needs a console-ABI wrapper; that is a separate item.Tests
device_proxy_test(WARP, no game files): the console IID maps toID3D12GraphicsCommandList6; an IID with the same Data1 but different bytes is not remapped; a PC IID is returned as is; the PC device refuses the console IID withE_NOINTERFACEand creates a list with the mapped one.ctest -R device_proxy: 2/2.main+ xmem: serve the seven missing imports (physical pages, default allocators, XMemIsToolsMemAvailable); XMemVirtualAlloc takes 2 MiB pages and placeholders #6919,LEONIDA_UNIMPLEMENTED=log):CreateCommandListreturnsS_OKinstead ofE_NOINTERFACE, and the run moves fromgame+0x2478b7btogame+0x2478bd4. RVAs, HRESULTs and the IID only; no game data in this PR.AI-assisted (Claude Code).