[PR #551] [CLOSED] d3d12_xs_device: wire measured queue SuspendX/ResumeX/PresentX (23/24… #596

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/551
Author: @kotekompotek
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: work/d3d12-xs-queue-presentx-slots


📝 Commits (1)

  • 77bb571 d3d12_xs_device: wire measured queue SuspendX/ResumeX/PresentX (23/24/32) and device GetFrameStatisticsX (81) slots

📊 Changes

2 files changed (+114 additions, -8 deletions)

View changed files

📝 runtime/shims/d3d12_xs_device.cpp (+87 -8)
📝 runtime/test/device_proxy_test.cpp (+27 -0)

📄 Description

Routes the remaining measured Xbox GDKX frame/presentation vtable slots in runtime/shims/d3d12_xs_device.cpp so they no longer fall through to E_NOTIMPL:

  • ID3D12Device slot 81 (GetFrameStatisticsX): writes *count = 0 and returns S_FALSE (E_POINTER when count == nullptr), overridable via LEONIDA_XS_FRAME_STATISTICS_SLOT.
  • ID3D12CommandQueue slot 23 (SuspendX), 24 (ResumeX), and 32 (PresentX): tracks suspended state on DeviceProxy, validates plane_count <= 2 / non-null planes, refuses PresentX while suspended with ERROR_INVALID_STATE, and supports overrides via LEONIDA_XS_SUSPEND_SLOT / LEONIDA_XS_RESUME_SLOT / LEONIDA_XS_PRESENT_SLOT.
  • Add unit tests in runtime/test/device_proxy_test.cpp (device_proxy and device_proxy_trace: 2/2 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/551 **Author:** [@kotekompotek](https://github.com/kotekompotek) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `work/d3d12-xs-queue-presentx-slots` --- ### 📝 Commits (1) - [`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 ### 📊 Changes **2 files changed** (+114 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_xs_device.cpp` (+87 -8) 📝 `runtime/test/device_proxy_test.cpp` (+27 -0) </details> ### 📄 Description Routes the remaining measured Xbox GDKX frame/presentation vtable slots in `runtime/shims/d3d12_xs_device.cpp` so they no longer fall through to `E_NOTIMPL`: - `ID3D12Device` slot `81` (`GetFrameStatisticsX`): writes `*count = 0` and returns `S_FALSE` (`E_POINTER` when `count == nullptr`), overridable via `LEONIDA_XS_FRAME_STATISTICS_SLOT`. - `ID3D12CommandQueue` slot `23` (`SuspendX`), `24` (`ResumeX`), and `32` (`PresentX`): tracks suspended state on `DeviceProxy`, validates `plane_count <= 2` / non-null `planes`, refuses `PresentX` while suspended with `ERROR_INVALID_STATE`, and supports overrides via `LEONIDA_XS_SUSPEND_SLOT` / `LEONIDA_XS_RESUME_SLOT` / `LEONIDA_XS_PRESENT_SLOT`. - Add unit tests in `runtime/test/device_proxy_test.cpp` (`device_proxy` and `device_proxy_trace`: `2/2 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#596
No description provided.