[PR #391] [MERGED] d3d12_xs: command-queue slot 35 is the console's ExecuteCommandLists (RT-QUEUE35) #443

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

📋 Pull Request Information

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

Base: main ← Head: queue-slot35-execute


📝 Commits (2)

  • 1bd72a8 d3d12_xs: route command queue slot 35 to ExecuteCommandLists
  • 94c9e43 Merge main into RT-QUEUE35 (#391)

📊 Changes

4 files changed (+139 additions, -19 deletions)

View changed files

📝 runtime/shims/d3d12_xs_device.cpp (+31 -0)
📝 runtime/shims/d3d12_xs_device.h (+9 -5)
📝 runtime/test/queue_proxy_test.cpp (+59 -13)
📝 runtime/test/xs_proxy_mock_test.cpp (+40 -1)

📄 Description

Claimed in #14 as RT-QUEUE35. Depends on: #349, #350, #356, #362, #369, #375, #377, #383, #385 (their commits come first here; this pull request is the last commit). The code itself only touches the queue proxy; the dependency is the measurement.

What and why

On the retail title, command-queue slot 35 is ExecuteCommandLists(count, lists). It is past the PC queue's 19 slots, so main refuses it with E_NOTIMPL; nothing is submitted and the title faults a little later.

Commit e925b6345 by Vadson159 (old PR 7286; cherry-picked with -x, authorship kept) routes the slot to the PC ExecuteCommandLists (slot 10), with the count taken as a UINT. Unlike the other pieces I have sent, this one is neither in main's history nor among the old-pr/* branches; I had it locally from the original pull request.

Adapted to main, as the commit message says:

  • main hands the title command-list proxies. The commit's shared execute function passed the array on as it came, which also took the PC slot 10 through that path and made xs_proxy_mock_test's existing slot 10 case fail (the real queue got a proxy). The function now replaces list proxies by their real lists in a copy of the array (UnwrappedArray), for both slots.
  • The commit's mock case for slot 35 passed two numbers as lists. Since the array is now read, it passes two mock lists and checks that they arrive and that the caller's array is not written.

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 Last traced calls
without this XboxID3D12CommandQueue::Slot35 unsupported
with this XboxID3D12CommandQueue::ExecuteCommandListsX called, then ID3D12CommandQueue::ExecuteCommandLists ok

That is the first command-list submission on this path. The run still ends in the same place, an access violation in the title writing through a null pointer, so slot 35 was not what caused it. The call just before the submission that is still refused is command-allocator slot 9 (XboxID3D12CommandAllocator::Slot9 unsupported), which on the console hands out upload memory. That is the next thing to look at, and it is not a small cherry-pick: it belongs to the console command-list work of old PR 2490, which main has in a different shape.

Tests under Wine: xs_proxy_mock_test passes (the slot 10 case and the adapted slot 35 case), queue_proxy_test passes on the Vulkan backend (1 backend(s) passed).

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/391 **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:** `queue-slot35-execute` --- ### 📝 Commits (2) - [`1bd72a8`](https://github.com/ubiquitarianism/leonida/commit/1bd72a87ada80475d2a51f9eda359906d9962a3f) d3d12_xs: route command queue slot 35 to ExecuteCommandLists - [`94c9e43`](https://github.com/ubiquitarianism/leonida/commit/94c9e43154c003acfb0b659104560c58423a7c5d) Merge main into RT-QUEUE35 (#391) ### 📊 Changes **4 files changed** (+139 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_xs_device.cpp` (+31 -0) 📝 `runtime/shims/d3d12_xs_device.h` (+9 -5) 📝 `runtime/test/queue_proxy_test.cpp` (+59 -13) 📝 `runtime/test/xs_proxy_mock_test.cpp` (+40 -1) </details> ### 📄 Description Claimed in #14 as `RT-QUEUE35`. Depends on: #349, #350, #356, #362, #369, #375, #377, #383, #385 (their commits come first here; this pull request is the last commit). The code itself only touches the queue proxy; the dependency is the measurement. ### What and why On the retail title, command-queue slot 35 is `ExecuteCommandLists(count, lists)`. It is past the PC queue's 19 slots, so `main` refuses it with `E_NOTIMPL`; nothing is submitted and the title faults a little later. Commit `e925b6345` by Vadson159 (old PR 7286; cherry-picked with `-x`, authorship kept) routes the slot to the PC `ExecuteCommandLists` (slot 10), with the count taken as a `UINT`. Unlike the other pieces I have sent, this one is neither in `main`'s history nor among the `old-pr/*` branches; I had it locally from the original pull request. Adapted to `main`, as the commit message says: - `main` hands the title command-list proxies. The commit's shared execute function passed the array on as it came, which also took the PC slot 10 through that path and made `xs_proxy_mock_test`'s existing slot 10 case fail (the real queue got a proxy). The function now replaces list proxies by their real lists in a copy of the array (`UnwrappedArray`), for both slots. - The commit's mock case for slot 35 passed two numbers as lists. Since the array is now read, it passes two mock lists and checks that they arrive and that the caller's array is not written. ### 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` | Last traced calls | |---|---| | without this | `XboxID3D12CommandQueue::Slot35 unsupported` | | with this | `XboxID3D12CommandQueue::ExecuteCommandListsX called`, then `ID3D12CommandQueue::ExecuteCommandLists ok` | That is the first command-list submission on this path. The run still ends in the same place, an access violation in the title writing through a null pointer, so slot 35 was not what caused it. The call just before the submission that is still refused is command-allocator slot 9 (`XboxID3D12CommandAllocator::Slot9 unsupported`), which on the console hands out upload memory. That is the next thing to look at, and it is not a small cherry-pick: it belongs to the console command-list work of old PR 2490, which `main` has in a different shape. Tests under Wine: `xs_proxy_mock_test` passes (the slot 10 case and the adapted slot 35 case), `queue_proxy_test` passes on the Vulkan backend (`1 backend(s) passed`). 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:54 +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#443
No description provided.