mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #142] [CLOSED] d3d12_xs: answer the console command-list IID the retail executable asks for #194
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#194
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/142
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9874📝 Commits (2)
5452535d3d12_xs: answer the console command-list IID the retail executable asks for4c78082d3d12_xs: cover the console list IID in xs_proxy_mock_test📊 Changes
3 files changed (+47 additions, -3 deletions)
View changed files
📝
runtime/shims/d3d12_xs_device.cpp(+29 -3)📝
runtime/shims/d3d12_xs_device.h(+4 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+14 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):d3d12_xs: answer the console command-list IID the retail executable asks for
What and why
Device slot 73 (
CreateCommandListX) is handed the title's own command-list interface, measured on the retail1.0.2.1 executable as
{c3827890-4024-474c-98cf-645b51dc4874}— same first word asID3D12GraphicsCommandList6(
{c3827890-e548-4cfa-…}) but not that interface, and no PC list answers it.The proxy passed that IID straight down to the layer, which answered
E_NOINTERFACE(0x80004002). EveryCreateCommandListtherefore failed, the title received a null list, and it read through the null.Three changes, all in
runtime/shims/d3d12_xs_device.cpp:kConsoleListIIDholds the measured GUID;is_list_iid()accepts it.list_query_interface()skips the PCsupports_iidcheck for it: no PC list can answer an Xbox IID, and theproxy answers it with itself.
proxy_create_command_list_x()creates the list with__uuidof(ID3D12GraphicsCommandList)and letswrap_list()answer the console IID, instead of forwarding the title's IID to the layer.
Tested
Retail 1.0.2.1 executable, Wine 11.22,
LEONIDA_D3D12=vulkan, NVIDIA RTX 3060 Ti (GA103),gta6rt --run:CreateCommandList0x80004002XboxIDXGIDevice::GetAdapter(ok)The run still stops later, in guest code (
read 0x18inside a static initialiser), which is a separate stop.Depends on:
#8461Depends on:
#6964Measured on top of those two and of the one-line
gameinput.dll!#1ordinal alias (not a PR; the retail executableimports GameInput by ordinal, so the registry never matched the shim).
mainalone stops earlier, at the DStorageassert, so this change cannot show its effect without them.
Test
runtime/test/xs_proxy_mock_test.cpp: slot 73 withkConsoleListIID-> the proxy answers QueryInterface,and PC slot 12 receives
ID3D12GraphicsCommandList. CI runs it.Item
New item. The
claiming:line for the coordination issue could not be posted: this account is not a collaborator,and the repository restricts interactions to collaborators. Whoever lands this should list it there.
Note
mainat this commit does not compile for clang-cl:DescriptorHeap/identity()ind3d12_vulkan_device.cppand theSHAPE_*static asserts inacphal.cpp. Those are unrelated to this change andreported separately.
AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.