d3d12_xs_device: wire measured queue SuspendX/ResumeX/PresentX (23/24… #551

Closed
kotekompotek wants to merge 1 commit from upstream-pr/551 into main
kotekompotek commented 2026-11-24 07:38:23 +00:00 (Migrated from github.com)

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


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).
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5468076023 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/551). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T07:38:23Z. --- 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`).
kotekompotek commented 2026-11-24 15:33:18 +00:00 (Migrated from github.com)

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


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:7136223546 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/551#issuecomment-7136223546). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-24T15:33:18Z. --- 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!551
No description provided.