Repository navigation
d3d12_xs: device slot 127 creates the committed resource, again (RT-SLOT127) - #369
Merged
ubiquitarianism merged 7 commits intoNov 24, 2026
Merged
Conversation
The retail executable calls GetCustomHeapProperties with the return buffer in RCX and the device in RDX. The forwarder took RCX for the proxy and faulted. AI-assisted. (cherry picked from commit 86b8e04)
…te Xbox description Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0cde63d) Adapted to main by Mumogg: main already routes slot 48 through its Xbox slot table (LEONIDA_XS_QUEUE_X_SLOT), so the route now calls proxy_create_command_queue_xbox instead of a fixed slot 48 branch, and xs_proxy_mock's check_xbox_slots and the environment case pass the console's 32-byte description.
…ead of reaching PC CreatePlacedResource1 (retail boot chain stop 14) (cherry picked from commit 3073250)
The retail executable calls GetCustomHeapProperties (device slot 26) with the C convention: the hidden return buffer in RCX and the device in RDX. The proxy's generic forwarder assumed the PC C++ form (this in RCX, buffer in RDX), took the buffer for the device and crashed on its vtable right after D3D12XboxCreateDevice. Slots 25 (GetResourceAllocationInfo, same rule, inferred) and 26 (measured) now get thunks that accept either form: whichever of the first two arguments is the device proxy is `this`. The runtime's own code still calls the proxy through d3d12.h in the PC form. device_proxy_test calls both slots in both forms against WARP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 5dbc30b) Adapted to main by Mumogg: slot 26 keeps the thunk it already has (86b8e04), so of this commit's two thunks only slot 25's is installed.
The mock device answers GetResourceAllocationInfo, and the new case calls slot 25 with the return buffer in RCX and the device in RDX, then in the PC form: both reach the PC method with the mask, count and descriptions, and only the struct is written. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
This was referenced Nov 24, 2026
…t of their block The slot 25/26 cases added before this block call slot 26 four times, so its absolute counts (3, then 4) failed on Windows. The counts are now increases from the block's start, and the forwarding check no longer shares a line with a counter, so a counter failure is not reported as a forwarding failure. Patch by BadgersMC, from the review of ProjectLeonida#362 (found and tested on native Windows with WARP; device_proxy_test does not run under Wine here). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
…ttedResource3 with Xbox descriptors, RT-5 stop 15) Slot 127 is past the PC device vtable and was refused with E_NOTIMPL. It has the argument list of ID3D12Device10::CreateCommittedResource3; the proxy now calls the PC device's with the Xbox layout word and flag bits cleaned as slot 76 does. Measured in #6982. (cherry picked from commit 8d62204)
Mumogg
force-pushed
the
slot127-committed-resource3
branch
from
November 24, 2026 04:15
a014ee8 to
81e8a6f
Compare
This was referenced Nov 24, 2026
d3d12_xs: device slot 74 returns S_OK instead of reaching ShaderCacheControl, again (RT-SLOT74)
#385
Merged
Closed
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 #14 as
RT-SLOT127. Depends on: #349, #350, #356, #362 (their commits come first here; this pull request is the last commit).What and why
After #362 the title calls device slot 127. It is past the PC device table, so
mainrefuses it withE_NOTIMPLand the title stops on its ownint3.Commit
8d622049aby tedin7 (-x, authorship kept; an ancestor ofmainwhose content is not in the tree) gives the slot the argument list ofID3D12Device10::CreateCommittedResource3and calls the PC device's (PC slot 76) with the Xbox layout word replaced as slot 76 does and the flags limited to the PC bits. The cherry-pick conflicted only where neighbours have been added since (the slot 26 thunk, the slot list, the test's call list); both sides are kept.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).--runint3after slot 127 is refusedint3in a later checkAfter it the trace has two
ID3D12Device10::CreateCommittedResource3 okand the views made on those resources. The first description logged: a 2D texture, Xbox flags0x300005kept as PC flags0x5.About the next stop, as far as
tools/int3_cause.pyshows it: the title stops when a value it computes is above0x1fffff. That reads like a bound on a descriptor index, which would be the descriptor-heap handle question of the chain document (stop 13); I have not confirmed it yet.xs_proxy_mock_testunder Wine passes, with the commit's slot 127 case (the committed resource is created with the PC flags and layout; a device withoutID3D12Device10getsE_NOTIMPL).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