mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #727] [MERGED] d3d12_xs: route device slots 86, 101 and 108 to PC Device2/Device5/Device8, rebased on main (RT-SLOT108-REBASE) #766
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#766
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/727
Author: @DesertGamer
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/slot108-rebase📝 Commits (3)
e9a1318d3d12_xs: route device slots 86, 101, and 108 to PC Device2/Device5/Device8ac73a84d3d12_xs: configured Xbox device routes take precedence over the fixed slot 86, 101 and 108 handlers7234bcdMerge 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
mainbefore it. Supersedes #219, which conflicts withmain.What and why
#219 (old PR 9954 by
justr4mzi, carried over as a draft) rebased ontomain21625bca8. 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 withmain: three hunks inruntime/shims/d3d12_xs_device.cpp(the new proxy functions go afterproxy_slot74, theSlot == 86 / 101 / 108branches after thekCreateCommittedResource3Xone, and86 || 101 || 108is added todevice_slot_overridden) and the comment ind3d12_xs_device.h. The tests anddocs/d3d12_vulkan.mdapply 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_slottakesselffrom RCX and faults in the host after 11,916 D3D12 calls. With slot 108 routed toGetResourceAllocationInfo2the run goes on, and with #602 (A8_UNORM) it reached the frame loop (888,983PresentX okin 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.pyon the five changed files, and alltests/test_docs_*.py: pass.GPUs tested: NVIDIA GeForce RTX 5070, driver 617.14, Windows 11
AI-assisted: yes (Claude Code, Sonnet 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).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.