Repository navigation
d3d12_xs: device slot 70 writes a null view instead of reaching CreatePlacedResource1, again (RT-SLOT70) - #356
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)
This was referenced Nov 24, 2026
d3d12_xs: device slot 74 returns S_OK instead of reaching ShaderCacheControl, again (RT-SLOT74)
#385
Merged
Closed
Collaborator
|
Merged after a Windows build (MSVC, RTX-less AMD RX 6800 box). ctest shows only the 4 failures main already has, and One follow-up: slot 70 now writes a null SRV, so every view the title makes through it reads as zeros, and a null view whose dimension doesn't match a buffer binding is undefined. The code comment and log say so, but |
3 of 4 tasks
4 tasks done
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-SLOT70. Depends on: #349, #350 (their commits are the first two here; this pull request is the third).What and why
On the console, device slot 70 is
(texture_words, view_desc, destination)with no return value: a shader-resource view made from raw descriptions. On the PC, slot 70 isID3D12Device8::CreatePlacedResource1.mainforwards the slot by number, so the PC method takes the title's destination handle for one of its own arguments and writes through it. Here that is a host access violation insideDevice::CreatePlacedResource1.The fix is commit
3073250dfby tedin7 (-x, authorship kept; an ancestor ofmainwhose content is not in the tree): the slot is routed toproxy_create_srv_from_raw_x, which writes a null view to the destination and never reaches the PC slot. The cherry-pick conflicted only wheremainand the two pull requests below it have added neighbours (slot 133's branch, the slot 26 test case); both sides are kept.This is the first of two commits in the original series. The second (
9c8522d22, a raw buffer view when the address is a buffer the layer knows) touches the Vulkan layer too and is not in this pull request.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.--runmain+ #349 + #350 + #142 + #328CreatePlacedResource1, reached through device slot 70GetResourceAllocationInfo), right after its first callThe stop this clears is only reachable with #142 and #328 applied as well; the branch of this pull request does not contain them.
The next stop looks like slot 26's twin: another struct-returning method called in the console's form. I will look at it next.
xs_proxy_mock_testunder Wine passes, with the new slot 70 case (the null view is written, the PC slot 70 is never called, no write without a destination).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