d3d12_xs: bridge device/queue Xbox present slots (78-81, 23, 24, 32) to XboxPresentation #553

Closed
kotekompotek wants to merge 2 commits from upstream-pr/553 into main
kotekompotek commented 2026-11-24 07:47:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T07:47:20Z.


Bridges the Xbox D3D12 device/queue vtable proxy directly to rt::d3d12::XboxPresentation without adding a hard link dependency for targets that compile d3d12_xs_device.cpp without xbox_present.cpp:

  • Add rt::d3d12_xs::XboxPresentationOps and set_device_presentation() in runtime/shims/d3d12_xs_device.h & d3d12_xs_device.cpp, forwarding device slots 78-81 (SetFrameIntervalX, ScheduleFrameEventX, WaitFrameEventX, GetFrameStatisticsX) and queue slots 23/24/32 (SuspendX, ResumeX, PresentX) to the bound presentation backend (while preserving the headless HLE fallback when unbound).
  • Add rt::d3d12::bind_device_presentation() in runtime/shims/xbox_present.h & xbox_present.cpp.
  • Add unit tests in runtime/test/device_proxy_test.cpp verifying full 7-slot dispatch and unbind (device_proxy, device_proxy_trace, xbox_present: 3/3 Passed via ctest).
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5468180155 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/553). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T07:47:20Z. --- Bridges the Xbox D3D12 device/queue vtable proxy directly to `rt::d3d12::XboxPresentation` without adding a hard link dependency for targets that compile `d3d12_xs_device.cpp` without `xbox_present.cpp`: - Add `rt::d3d12_xs::XboxPresentationOps` and `set_device_presentation()` in `runtime/shims/d3d12_xs_device.h` & `d3d12_xs_device.cpp`, forwarding device slots `78-81` (`SetFrameIntervalX`, `ScheduleFrameEventX`, `WaitFrameEventX`, `GetFrameStatisticsX`) and queue slots `23/24/32` (`SuspendX`, `ResumeX`, `PresentX`) to the bound presentation backend (while preserving the headless HLE fallback when unbound). - Add `rt::d3d12::bind_device_presentation()` in `runtime/shims/xbox_present.h` & `xbox_present.cpp`. - Add unit tests in `runtime/test/device_proxy_test.cpp` verifying full 7-slot dispatch and unbind (`device_proxy`, `device_proxy_trace`, `xbox_present`: `3/3 Passed` via `ctest`).
kotekompotek commented 2026-11-24 15:33:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T15:33:56Z.


Closing as superseded by merged PR #402 (89e0ea9b5, d3d12_xs: add multi-event FramePacer TOKEN_ON_TIMEOUT and wire XboxPresentation to device/queue slots), which is already on main.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7136241373 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/553#issuecomment-7136241373). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T15:33:56Z. --- Closing as superseded by merged PR #402 (`89e0ea9b5`, `d3d12_xs: add multi-event FramePacer TOKEN_ON_TIMEOUT and wire XboxPresentation to device/queue slots`), which is already on `main`.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!553
No description provided.