d3d12_xs: map the GDK 2504 graphical command list IID to the PC list #398
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/398"
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?
Imported from omonkeyz/xbox-emulator. Originally posted by andersonlucasg3 on 2026-12-03T00:55:27Z.
Library / area:
crates/compat/d3d12_xs— XboxCreateCommandList(slot 73) wrapper forwarding to the PCID3D12Device::CreateCommandList(slot 12).Exports changed (exports.txt rows): none.
Source of the behaviour: the GDK 2504 revision creates graphical command lists with the newer console list IID
{c3827890-4024-474c-98cf-645b51dc4874}. The PC runtime only exposes the classicID3D12GraphicsCommandListIID{5b160d0f-ac1b-4185-8ba8-b3ae42a5a455}, so the native call returnsE_NOINTERFACE. The DMA list path already remaps its console IID to the PC graphics list IID; the graphical-list case was missing.Change: pure
pc_list_iid(&Guid) -> Option<&'static Guid>helper mapping the GDK 2504 console graphics-list IID toIID_GRAPHICS_COMMAND_LIST; onE_NOINTERFACEfrom slot 12, retry once with the mapped PC IID and continue through the existingcmdlist_wrap::wrappath; the remap is logged once per process. The unit test covers the mapping and the negatives (PC graphics IID, DMA IID,IUnknown) without a device or GPU.Evidence: with the change, the first creation remaps once and every following
CreateCommandListcall returnshr=0x00000000; before, the first creation returnedhr=0x80004002and command-list creation stopped. The run later reaches unrelated limitations (descriptor heap sizing, etc.), which are out of scope for this change.cargo test -p d3d12_xstargeted testgdk_2504_console_command_list_iid_maps_to_the_pc_listpasses; the rest of the crate suite needs console DLL fixtures and GPU hardwaremissingwith a noteView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.