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

Closed
github-bot wants to merge 2 commits from gh-pr/553/head into gh-pr/553/base
Owner

@⁠kotekompotek on GitHub · 2026-11-24 07:47 UTC · original
kotekompotek:work/d3d12-xs-xbox-presentation-bridge → main · +304 −17 · 5 files · 2 commits · closed without merging

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** on GitHub · 2026-11-24 07:47 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/553) `kotekompotek:work/d3d12-xs-xbox-presentation-bridge` → `main` · +304 −17 · 5 files · 2 commits · closed without merging 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`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:08:06 +00:00
github-bot closed this pull request 2026-11-26 09:08:06 +00:00
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-24 15:33 UTC · original

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.

**@⁠kotekompotek** on GitHub · 2026-11-24 15:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/553#issuecomment-7136241373) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.