[PR #369] [MERGED] d3d12_xs: device slot 127 creates the committed resource, again (RT-SLOT127) #421

Closed
opened 2026-11-26 20:17:49 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • c495458 d3d12_xs: device slot 26 takes the console's struct-return form
  • 9e6f8ae d3d12_xs: device slot 48 creates a command queue proxy from the 32-byte Xbox description
  • f9d20bf d3d12_xs: Xbox device slot 70 writes a null shader-resource view instead of reaching PC CreatePlacedResource1 (retail boot chain stop 14)
  • 91575fd d3d12_xs: device slots 25/26 take the title's C-ABI struct return
  • 9bc1f8f xs_proxy_mock_test: device slot 25 in the console's form and the PC's
  • 992b19b device_proxy_test: the slot 26 hit-count checks measure from the start of their block
  • 81e8a6f d3d12_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 main refuses it with E_NOTIMPL and the title stops on its own int3.

Commit 8d622049a by tedin7 (-x, authorship kept; an ancestor of main whose content is not in the tree) gives the slot the argument list of ID3D12Device10::CreateCommittedResource3 and 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 main ece4ba5b3, with #142 and #328 applied on top for the boot runs (they are not in this branch).

--run D3D12 calls Ends with
up to #362 1,631 the title's int3 after slot 127 is refused
+ this 1,639 the title's int3 in a later check

After it the trace has two ID3D12Device10::CreateCommittedResource3 ok and the views made on those resources. The first description logged: a 2D texture, Xbox flags 0x300005 kept as PC flags 0x5.

About the next stop, as far as tools/int3_cause.py shows it: the title stops when a value it computes is above 0x1fffff. 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_test under Wine passes, with the commit's slot 127 case (the committed resource is created with the PC flags and layout; a device without ID3D12Device10 gets E_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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/369 **Author:** [@Mumogg](https://github.com/Mumogg) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `slot127-committed-resource3` --- ### 📝 Commits (7) - [`c495458`](https://github.com/ubiquitarianism/leonida/commit/c4954581ae27e9db5baabaea091302ed54eb96ea) d3d12_xs: device slot 26 takes the console's struct-return form - [`9e6f8ae`](https://github.com/ubiquitarianism/leonida/commit/9e6f8ae1332aed8efb5b2ed78a4780340c29fc40) d3d12_xs: device slot 48 creates a command queue proxy from the 32-byte Xbox description - [`f9d20bf`](https://github.com/ubiquitarianism/leonida/commit/f9d20bf9b045ebaf8c7165eef3ae72cff9ef1410) d3d12_xs: Xbox device slot 70 writes a null shader-resource view instead of reaching PC CreatePlacedResource1 (retail boot chain stop 14) - [`91575fd`](https://github.com/ubiquitarianism/leonida/commit/91575fda3a07da811b93ddcfd65b33e21794262a) d3d12_xs: device slots 25/26 take the title's C-ABI struct return - [`9bc1f8f`](https://github.com/ubiquitarianism/leonida/commit/9bc1f8f1a8a0443b3cf98824ced7f74ca0eee12c) xs_proxy_mock_test: device slot 25 in the console's form and the PC's - [`992b19b`](https://github.com/ubiquitarianism/leonida/commit/992b19bd44c80eea1ad81bf737b9057d002b9aff) device_proxy_test: the slot 26 hit-count checks measure from the start of their block - [`81e8a6f`](https://github.com/ubiquitarianism/leonida/commit/81e8a6f2a42e72e49f0338a584cd651d5d3e9db7) d3d12_xs: device slot 127 creates the committed resource (CreateCommittedResource3 with Xbox descriptors, RT-5 stop 15) ### 📊 Changes **6 files changed** (+602 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 `main` refuses it with `E_NOTIMPL` and the title stops on its own `int3`. Commit `8d622049a` by tedin7 (`-x`, authorship kept; an ancestor of `main` whose content is not in the tree) gives the slot the argument list of `ID3D12Device10::CreateCommittedResource3` and 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 `main` `ece4ba5b3`, with #142 and #328 applied on top for the boot runs (they are not in this branch). | `--run` | D3D12 calls | Ends with | |---|---|---| | up to #362 | 1,631 | the title's `int3` after slot 127 is refused | | + this | 1,639 | the title's `int3` in a later check | After it the trace has two `ID3D12Device10::CreateCommittedResource3 ok` and the views made on those resources. The first description logged: a 2D texture, Xbox flags `0x300005` kept as PC flags `0x5`. About the next stop, as far as `tools/int3_cause.py` shows it: the title stops when a value it computes is above `0x1fffff`. 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_test` under Wine passes, with the commit's slot 127 case (the committed resource is created with the PC flags and layout; a device without `ID3D12Device10` gets `E_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.com/claude-code) https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:49 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#421
No description provided.