[PR #727] [MERGED] d3d12_xs: route device slots 86, 101 and 108 to PC Device2/Device5/Device8, rebased on main (RT-SLOT108-REBASE) #766

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

📋 Pull Request Information

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

Base: main ← Head: fix/slot108-rebase


📝 Commits (3)

  • e9a1318 d3d12_xs: route device slots 86, 101, and 108 to PC Device2/Device5/Device8
  • ac73a84 d3d12_xs: configured Xbox device routes take precedence over the fixed slot 86, 101 and 108 handlers
  • 7234bcd Merge main into RT-SLOT108-REBASE (#727)

📊 Changes

5 files changed (+368 additions, -13 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+7 -1)
📝 runtime/shims/d3d12_xs_device.cpp (+116 -10)
📝 runtime/shims/d3d12_xs_device.h (+9 -1)
📝 runtime/test/device_proxy_test.cpp (+98 -0)
📝 runtime/test/xs_proxy_mock_test.cpp (+138 -1)

📄 Description

Claimed in the coordination issue as: RT-SLOT108-REBASE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132106911)

Depends on: none to merge. The retail boot reaches slot 108 only past the command-list IID stop at device slot 73, which #641, #359 and #142 each cover; I measured the slot-108 fault on a stack with #142, and #641 alone gave the same 1,639-call stop point on main before it. Supersedes #219, which conflicts with main.

What and why

#219 (old PR 9954 by justr4mzi, carried over as a draft) rebased onto main 21625bca8. The commit is the original one, cherry-picked with -x, so the author credit is kept; the only changes are the resolution of its conflicts with main: three hunks in runtime/shims/d3d12_xs_device.cpp (the new proxy functions go after proxy_slot74, the Slot == 86 / 101 / 108 branches after the kCreateCommittedResource3X one, and 86 || 101 || 108 is added to device_slot_overridden) and the comment in d3d12_xs_device.h. The tests and docs/d3d12_vulkan.md apply as they are.

What it fixes, measured on a retail run: on the stack main + #142 + #427 (the slot-73 fix is #142 there; #641 is the equivalent open one) the title calls console device slot 108 with the device in RDX and RCX not an object (the slot-26 shape); proxy_slot takes self from RCX and faults in the host after 11,916 D3D12 calls. With slot 108 routed to GetResourceAllocationInfo2 the run goes on, and with #602 (A8_UNORM) it reached the frame loop (888,983 PresentX ok in 420 s with #357 #387 #432 too; details in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7131480453).

Tested

  • ctest -R "xs_proxy_mock|device_proxy": 8 of 8 pass (MSVC, Windows 11, Vulkan SDK 1.4.363).
  • scripts/check_no_game_data.py on the five changed files, and all tests/test_docs_*.py: pass.
  • Retail run as above, RTX 5070, driver 617.14.

GPUs tested: NVIDIA GeForce RTX 5070, driver 617.14, Windows 11

AI-assisted: yes (Claude Code, Sonnet 5.5)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not a translator change.)

🔄 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/727 **Author:** [@DesertGamer](https://github.com/DesertGamer) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/slot108-rebase` --- ### 📝 Commits (3) - [`e9a1318`](https://github.com/ubiquitarianism/leonida/commit/e9a13181f4b5e84a860dada2fc18055c519e5627) d3d12_xs: route device slots 86, 101, and 108 to PC Device2/Device5/Device8 - [`ac73a84`](https://github.com/ubiquitarianism/leonida/commit/ac73a84127ee49b5ecf9702bed16603b34b7f7ec) d3d12_xs: configured Xbox device routes take precedence over the fixed slot 86, 101 and 108 handlers - [`7234bcd`](https://github.com/ubiquitarianism/leonida/commit/7234bcd7a54eb9aa06c97389e8322ced26c54e6d) Merge main into RT-SLOT108-REBASE (#727) ### 📊 Changes **5 files changed** (+368 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+7 -1) 📝 `runtime/shims/d3d12_xs_device.cpp` (+116 -10) 📝 `runtime/shims/d3d12_xs_device.h` (+9 -1) 📝 `runtime/test/device_proxy_test.cpp` (+98 -0) 📝 `runtime/test/xs_proxy_mock_test.cpp` (+138 -1) </details> ### 📄 Description Claimed in the coordination issue as: RT-SLOT108-REBASE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132106911) Depends on: none to merge. The retail boot reaches slot 108 only past the command-list IID stop at device slot 73, which #641, #359 and #142 each cover; I measured the slot-108 fault on a stack with #142, and #641 alone gave the same 1,639-call stop point on `main` before it. Supersedes #219, which conflicts with `main`. ### What and why #219 (old PR 9954 by `justr4mzi`, carried over as a draft) rebased onto `main` 21625bca8. The commit is the original one, cherry-picked with `-x`, so the author credit is kept; the only changes are the resolution of its conflicts with `main`: three hunks in `runtime/shims/d3d12_xs_device.cpp` (the new proxy functions go after `proxy_slot74`, the `Slot == 86 / 101 / 108` branches after the `kCreateCommittedResource3X` one, and `86 || 101 || 108` is added to `device_slot_overridden`) and the comment in `d3d12_xs_device.h`. The tests and `docs/d3d12_vulkan.md` apply as they are. What it fixes, measured on a retail run: on the stack `main` + #142 + #427 (the slot-73 fix is #142 there; #641 is the equivalent open one) the title calls console device slot 108 with the device in RDX and RCX not an object (the slot-26 shape); `proxy_slot` takes `self` from RCX and faults in the host after 11,916 D3D12 calls. With slot 108 routed to `GetResourceAllocationInfo2` the run goes on, and with #602 (A8_UNORM) it reached the frame loop (888,983 `PresentX ok` in 420 s with #357 #387 #432 too; details in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7131480453). ### Tested - `ctest -R "xs_proxy_mock|device_proxy"`: 8 of 8 pass (MSVC, Windows 11, Vulkan SDK 1.4.363). - `scripts/check_no_game_data.py` on the five changed files, and all `tests/test_docs_*.py`: pass. - Retail run as above, RTX 5070, driver 617.14. GPUs tested: NVIDIA GeForce RTX 5070, driver 617.14, Windows 11 AI-assisted: yes (Claude Code, Sonnet 5.5) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not a translator change.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:58 +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#766
No description provided.