Skip to content

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

Closed
kotekompotek wants to merge 1 commit into
ProjectLeonida:mainfrom
kotekompotek:work/d3d12-xs-queue-presentx-slots
Closed

kotekompotek wants to merge 1 commit into
ProjectLeonida:mainfrom
kotekompotek:work/d3d12-xs-queue-presentx-slots

Conversation

@kotekompotek

Copy link
Copy Markdown
Contributor

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

…/32) and device GetFrameStatisticsX (81) slots
@kotekompotek

Copy link
Copy Markdown
Contributor Author

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant