Skip to content

d3d12_xs: bridge device/queue Xbox present slots (78-81, 23, 24, 32) to XboxPresentation - #553

Closed
kotekompotek wants to merge 2 commits into
ProjectLeonida:mainfrom
kotekompotek:work/d3d12-xs-xbox-presentation-bridge
Closed

kotekompotek wants to merge 2 commits into
ProjectLeonida:mainfrom
kotekompotek:work/d3d12-xs-xbox-presentation-bridge

Conversation

@kotekompotek

Copy link
Copy Markdown
Contributor

Bridges the Xbox D3D12 device/queue vtable proxy directly to rt::d3d12::XboxPresentation without adding a hard link dependency for targets that compile d3d12_xs_device.cpp without xbox_present.cpp:

  • Add rt::d3d12_xs::XboxPresentationOps and set_device_presentation() in runtime/shims/d3d12_xs_device.h & d3d12_xs_device.cpp, forwarding device slots 78-81 (SetFrameIntervalX, ScheduleFrameEventX, WaitFrameEventX, GetFrameStatisticsX) and queue slots 23/24/32 (SuspendX, ResumeX, PresentX) to the bound presentation backend (while preserving the headless HLE fallback when unbound).
  • Add rt::d3d12::bind_device_presentation() in runtime/shims/xbox_present.h & xbox_present.cpp.
  • Add unit tests in runtime/test/device_proxy_test.cpp verifying full 7-slot dispatch and unbind (device_proxy, device_proxy_trace, xbox_present: 3/3 Passed via ctest).

@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