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

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/553
Author: @kotekompotek
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: work/d3d12-xs-xbox-presentation-bridge


📝 Commits (2)

  • 77bb571 d3d12_xs_device: wire measured queue SuspendX/ResumeX/PresentX (23/24/32) and device GetFrameStatisticsX (81) slots
  • 157841e d3d12_xs: bridge device/queue Xbox present slots (78-81, 23, 24, 32) to XboxPresentation

📊 Changes

5 files changed (+304 additions, -17 deletions)

View changed files

📝 runtime/shims/d3d12_xs_device.cpp (+154 -17)
📝 runtime/shims/d3d12_xs_device.h (+14 -0)
📝 runtime/shims/xbox_present.cpp (+31 -0)
📝 runtime/shims/xbox_present.h (+4 -0)
📝 runtime/test/device_proxy_test.cpp (+101 -0)

📄 Description

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).

🔄 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/553 **Author:** [@kotekompotek](https://github.com/kotekompotek) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `work/d3d12-xs-xbox-presentation-bridge` --- ### 📝 Commits (2) - [`77bb571`](https://github.com/ubiquitarianism/leonida/commit/77bb57159f5138470a3186a07d0941b662c1df37) d3d12_xs_device: wire measured queue SuspendX/ResumeX/PresentX (23/24/32) and device GetFrameStatisticsX (81) slots - [`157841e`](https://github.com/ubiquitarianism/leonida/commit/157841e9351e0863b7d860b8250493c1d30a6c4f) d3d12_xs: bridge device/queue Xbox present slots (78-81, 23, 24, 32) to XboxPresentation ### 📊 Changes **5 files changed** (+304 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_xs_device.cpp` (+154 -17) 📝 `runtime/shims/d3d12_xs_device.h` (+14 -0) 📝 `runtime/shims/xbox_present.cpp` (+31 -0) 📝 `runtime/shims/xbox_present.h` (+4 -0) 📝 `runtime/test/device_proxy_test.cpp` (+101 -0) </details> ### 📄 Description 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`). --- <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:25 +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#599
No description provided.