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

Closed
leonida/mandy
kotekompotek wants to merge 0 commits from work/d3d12-xs-queue-presentx-slots into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

kotekompotek commented 2026-11-24 07:38:23 +00:00

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

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.

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`.
Sign in to join this conversation.
No description provided.