Skip to content

d3d12_xs: create and answer the Xbox base command-list IID (GTA VI) - #37

Open
fffluffy-dev wants to merge 1 commit into
mainfrom
claude/gta-cmdlist-base-iid
Open

fffluffy-dev wants to merge 1 commit into
mainfrom
claude/gta-cmdlist-base-iid

Conversation

@fffluffy-dev

Copy link
Copy Markdown
Owner

Part of #35 (upstream omonkeyz/xbox-emulator#293, item 1).

GTA VI 1.0.2.1 passes c3827890-4024-474c-98cf-645b51dc4874 to device slot 73. Only the DMA IID used to be rewritten before the call reached PC CreateCommandList, so this IID failed with E_NOINTERFACE.

Changes

  • cmdlist_x.rs:
    • adds IID_XBOX_GRAPHICS_COMMAND_LIST;
    • adds pc_list_iid(), which maps both the Xbox base IID and the DMA IID to the PC ID3D12GraphicsCommandList IID;
    • query_interface_x answers the Xbox base IID: it queries the PC base list, then hands out the shim, the same way it handles the PC list IIDs.
  • device_wrap.rs:
    • create_command_list_x uses pc_list_iid(), and its log line shows mapped=;
    • the stale doc line about the params layout is removed, because the code ({Type@0, NodeMask@8}) is right;
    • Guid now derives Clone, Copy, Debug.
  • New test xbox_base_list_iid_creates_the_pc_base_list.

Verification


Generated by Claude Code

GTA VI 1.0.2.1 passes c3827890-4024-474c-98cf-645b51dc4874 to device slot 73
and gets E_NOINTERFACE, because only the DMA IID was rewritten before the PC
CreateCommandList (upstream omonkeyz#293, item 1).

CreateCommandListX now maps the Xbox base IID, like the DMA IID, to the PC
ID3D12GraphicsCommandList IID, and the command-list QueryInterface answers the
Xbox base IID with the shim, as it does for the PC list IIDs. The stale line
about the parameter layout is removed: the code reads {Type@0, NodeMask@8},
which the log confirms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014vTZArnDeG1xtBcLprpoCq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants