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

Closed
github-bot wants to merge 1 commit from gh-pr/551/head into gh-pr/551/base
Owner

@⁠kotekompotek on GitHub · 2026-11-24 07:38 UTC · original
kotekompotek:work/d3d12-xs-queue-presentx-slots → main · +114 −8 · 2 files · 1 commits · closed without merging

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** on GitHub · 2026-11-24 07:38 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/551) `kotekompotek:work/d3d12-xs-queue-presentx-slots` → `main` · +114 −8 · 2 files · 1 commits · closed without merging 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`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:07:59 +00:00
github-bot closed this pull request 2026-11-26 09:07:59 +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/551#issuecomment-7136223546) 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.