mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #362] [MERGED] d3d12_xs: device slot 25 takes the console's struct-return form too (RT-SLOT25) #414
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#414
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/362
Author: @Mumogg
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:slot25-struct-return📝 Commits (6)
c495458d3d12_xs: device slot 26 takes the console's struct-return form9e6f8aed3d12_xs: device slot 48 creates a command queue proxy from the 32-byte Xbox descriptionf9d20bfd3d12_xs: Xbox device slot 70 writes a null shader-resource view instead of reaching PC CreatePlacedResource1 (retail boot chain stop 14)91575fdd3d12_xs: device slots 25/26 take the title's C-ABI struct return9bc1f8fxs_proxy_mock_test: device slot 25 in the console's form and the PC's992b19bdevice_proxy_test: the slot 26 hit-count checks measure from the start of their block📊 Changes
6 files changed (+394 additions, -19 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+7 -1)📝
docs/design.md(+3 -1)📝
runtime/shims/d3d12_xs_device.cpp(+121 -8)📝
runtime/shims/d3d12_xs_device.h(+15 -2)📝
runtime/test/device_proxy_test.cpp(+80 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+168 -7)📄 Description
Claimed in #14 as
RT-SLOT25. Depends on: #349, #350, #356 (their commits are the first three here; this pull request is the last two).What and why
After #356 the retail boot stops with a host access violation at device slot 25,
GetResourceAllocationInfo. It is slot 26's twin (#349): a method that returns a struct, called by the title with the buffer for the struct in RCX and the device in RDX, whilemain's forwarder takes RCX for the proxy.5dbc30bedby sneylol (-x, authorship kept; an ancestor ofmainwhose content is not in the tree) adds thunks for slots 25 and 26 that accept either form: whichever of the first two arguments is the device proxy isthis. Slot 26 already has its thunk from #349, so only slot 25's is installed here; the commit message says so.xs_proxy_mock_testgets a case for slot 25 in both forms. The original commit tested it indevice_proxy_test, which I cannot run (it stops atD3D12XboxCreateDevice returns a deviceunder Wine, onmaintoo).Not included: the later guard for a stale vtable pointer in the title's return buffer (
4154ab0a6, TreXito). It builds on this and can follow.Measured
Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08), clang-cl 22.1.8 + xwin SDK 10.0.26100, own 1.0.2.1 copy, network off, on
mainece4ba5b3, with #142 and #328 applied on top for the boot runs (they are not in this branch).--runint3, after device slot 127 is refused as beyond the PC device table (E_NOTIMPL)The D3D12 call count is 1,631 in both:
GetResourceAllocationInfois not one of the traced calls. The next stop is slot 127, the console's committed-resource creation.xs_proxy_mock_testunder Wine passes, with the new case: the buffer in RCX and the device in RDX reaches the PC method with the mask, count and descriptions, only the struct is written and the bytes around it stay; the PC form reaches it too.Not built with MSVC and not run on Windows.
AI-assisted (Claude Code); built and run on the machine above.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
latencyframes in flight while armed (mailbox replace) #712