diff options
| author | Logan <Logan@cattn.dev> | 2026-11-23 12:16:11 -0500 |
|---|---|---|
| committer | Mumogg <104529023+Mumogg@users.noreply.github.com> | 2026-11-24 03:52:42 -0600 |
| commit | af8c42bb1aa19db773a3fee2607ec0f4218f864b (patch) | |
| tree | 7d833455cca28a021d8ff9f0d0107ebf1cee35d7 /runtime/src/vulkan_aftermath.cpp | |
| parent | 8ba15dd44960a21167f975affb04370c721a103d (diff) | |
PresentX: device-side WaitFrameEventX and the frame pacer share one token source
Device slot 80 (WaitFrameEventX, from #6935) numbered its tokens with a
counter of its own, while XboxPresentation's pacer refuses any token above
the ones it issued itself. A title that waits through the device and
presents through the device's XboxPresentation therefore had every
PresentX refused with E_INVALIDARG once its tokens ran ahead of the
pacer's.
leonida::FrameTokenSource is now the counter both use: a pacer takes an
optional shared source (a standalone pacer still owns its own and numbers
as before), the device proxy owns one and exposes it through
rt::d3d12_xs::device_frame_tokens, and XboxPresentation passes a given
source to its pacer. A token that was never issued is still refused.
Reported by rafaelpssz in #7496.
(cherry picked from commit afb14d56c6a1683fae4345702c874a62d9234e71)
Adapted to main by Mumogg: main's uncapped pacer path issues its token from the shared source too, the device
proxy keeps the PresentX state next to the token source, and the queue's PresentX hands the device's source to
its XboxPresentation, which is what makes the title's tokens valid there.
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions