mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #369] [MERGED] d3d12_xs: device slot 127 creates the committed resource, again (RT-SLOT127) #421
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#421
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/369
Author: @Mumogg
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:slot127-committed-resource3📝 Commits (7)
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 block81e8a6fd3d12_xs: device slot 127 creates the committed resource (CreateCommittedResource3 with Xbox descriptors, RT-5 stop 15)📊 Changes
6 files changed (+602 additions, -19 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+7 -1)📝
docs/design.md(+3 -1)📝
runtime/shims/d3d12_xs_device.cpp(+190 -8)📝
runtime/shims/d3d12_xs_device.h(+18 -2)📝
runtime/test/device_proxy_test.cpp(+80 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+304 -7)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.