[PR #396] [MERGED] d3d12_xs: console list slot 139 is Reset (RT-LIST139) #448

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/396
Author: @Mumogg
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: list-slot139-reset


📝 Commits (7)

  • bbae96d d3d12_xs: handle ID3D12CommandAllocator slot 9 (SetAllocatorCallbackX) on allocator proxy
  • 1bd72a8 d3d12_xs: route command queue slot 35 to ExecuteCommandLists
  • dfd62d7 docs: the recorded, never-called allocator callback of slot 9 has a row in the Xbox-only table
  • 54ed404 d3d12_xs: console list slot 139 is Reset, routed to the PC slot 10
  • 94c9e43 Merge main into RT-QUEUE35 (#391)
  • b06d096 Merge main into RT-ALLOC9 (#395)
  • 8643373 Merge main into RT-LIST139 (#396)

📊 Changes

6 files changed (+235 additions, -33 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+1 -0)
📝 runtime/shims/d3d12_xs_device.cpp (+69 -1)
📝 runtime/shims/d3d12_xs_device.h (+18 -9)
📝 runtime/test/allocator_proxy_test.cpp (+24 -7)
📝 runtime/test/queue_proxy_test.cpp (+59 -13)
📝 runtime/test/xs_proxy_mock_test.cpp (+64 -3)

📄 Description

Claimed in #14 as RT-LIST139. Depends on: #349 to #395 in order (their commits come first here; this pull request is the last commit). The change itself is three places in the list proxy and its test.

What and why

The retail title resets its command lists through list slot 139, with (allocator proxy, pipeline state). main's console_to_pc_list_slot has no entry for 139, so the call is recorded and dropped.

  • d3d12_xs_device.h: the map sends 139 to the PC slot 10.
  • d3d12_xs_device.cpp: the list proxy's unwrap keys on the PC slot instead of the console slot, so console slot 10 and console slot 139 both give the real list its real allocator (and a wrapped pipeline state the same way) and re-pin the inline cursor.
  • xs_proxy_mock_test.cpp: the map entry, and a slot 139 call that reaches the real list's slot 10 with the real allocator and never its slot 139.

This one is written by me, not cherry-picked: the mapping and the unwrap rule are those of ef9d0759d (Nolan Cotter; the call shape was measured by Pipodi), which does not apply to main's list proxy. The commit message credits it.

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, #219, #328 and #387 applied on top for the boot runs (they are not in this branch).

--run Traced calls ok among them
up to #395 11,949 1,644
+ this 11,950 1,645

The extra call is the list's Reset, now reached.

This does not move the stop either. The run still ends right after the first ExecuteCommandLists ok, with the title writing through a null pointer of its own: it loads a pointer from one of its globals and stores a byte far into the object it expects there. So something the title sets up earlier is missing on this path, and it is not the list's Reset. I do not know yet what it is; the run of the integration branch (#321) at the same point goes on, and next I will narrow down which difference between the two matters (the memory shim is my first candidate, since #321 uses another one).

xs_proxy_mock_test under Wine passes.

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/396 **Author:** [@Mumogg](https://github.com/Mumogg) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `list-slot139-reset` --- ### 📝 Commits (7) - [`bbae96d`](https://github.com/ubiquitarianism/leonida/commit/bbae96de2a46e472c5e8627829d17c648b06366e) d3d12_xs: handle ID3D12CommandAllocator slot 9 (SetAllocatorCallbackX) on allocator proxy - [`1bd72a8`](https://github.com/ubiquitarianism/leonida/commit/1bd72a87ada80475d2a51f9eda359906d9962a3f) d3d12_xs: route command queue slot 35 to ExecuteCommandLists - [`dfd62d7`](https://github.com/ubiquitarianism/leonida/commit/dfd62d7e2637f181516cfe14d7cbfd0e6dc0710d) docs: the recorded, never-called allocator callback of slot 9 has a row in the Xbox-only table - [`54ed404`](https://github.com/ubiquitarianism/leonida/commit/54ed404defd035465ece0f2beeb792cf51179691) d3d12_xs: console list slot 139 is Reset, routed to the PC slot 10 - [`94c9e43`](https://github.com/ubiquitarianism/leonida/commit/94c9e43154c003acfb0b659104560c58423a7c5d) Merge main into RT-QUEUE35 (#391) - [`b06d096`](https://github.com/ubiquitarianism/leonida/commit/b06d096ad0943d5eda9bf1b17b3c3346688fc1f6) Merge main into RT-ALLOC9 (#395) - [`8643373`](https://github.com/ubiquitarianism/leonida/commit/864337351bc11a250db77c2fcdd3ba6f1d0f455f) Merge main into RT-LIST139 (#396) ### 📊 Changes **6 files changed** (+235 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+1 -0) 📝 `runtime/shims/d3d12_xs_device.cpp` (+69 -1) 📝 `runtime/shims/d3d12_xs_device.h` (+18 -9) 📝 `runtime/test/allocator_proxy_test.cpp` (+24 -7) 📝 `runtime/test/queue_proxy_test.cpp` (+59 -13) 📝 `runtime/test/xs_proxy_mock_test.cpp` (+64 -3) </details> ### 📄 Description Claimed in #14 as `RT-LIST139`. Depends on: #349 to #395 in order (their commits come first here; this pull request is the last commit). The change itself is three places in the list proxy and its test. ### What and why The retail title resets its command lists through list slot 139, with `(allocator proxy, pipeline state)`. `main`'s `console_to_pc_list_slot` has no entry for 139, so the call is recorded and dropped. - `d3d12_xs_device.h`: the map sends 139 to the PC slot 10. - `d3d12_xs_device.cpp`: the list proxy's unwrap keys on the PC slot instead of the console slot, so console slot 10 and console slot 139 both give the real list its real allocator (and a wrapped pipeline state the same way) and re-pin the inline cursor. - `xs_proxy_mock_test.cpp`: the map entry, and a slot 139 call that reaches the real list's slot 10 with the real allocator and never its slot 139. This one is written by me, not cherry-picked: the mapping and the unwrap rule are those of `ef9d0759d` (Nolan Cotter; the call shape was measured by Pipodi), which does not apply to `main`'s list proxy. The commit message credits it. ### 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, #219, #328 and #387 applied on top for the boot runs (they are not in this branch). | `--run` | Traced calls | `ok` among them | |---|---|---| | up to #395 | 11,949 | 1,644 | | + this | 11,950 | 1,645 | The extra call is the list's `Reset`, now reached. **This does not move the stop either.** The run still ends right after the first `ExecuteCommandLists ok`, with the title writing through a null pointer of its own: it loads a pointer from one of its globals and stores a byte far into the object it expects there. So something the title sets up earlier is missing on this path, and it is not the list's `Reset`. I do not know yet what it is; the run of the integration branch (#321) at the same point goes on, and next I will narrow down which difference between the two matters (the memory shim is my first candidate, since #321 uses another one). `xs_proxy_mock_test` under Wine passes. 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:55 +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#448
No description provided.