upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/vulkan_aftermath.cpp
diff options
context:
space:
mode:
authorandretuta <andreviniciusmerlia@gmail.com>2026-11-24 03:11:24 -0300
committerandretuta <andreviniciusmerlia@gmail.com>2026-11-24 03:11:24 -0300
commit2a3e7a23ea7f27594d12153186b8e04446a686ae (patch)
tree395de0db74032c144556240738fd2e8a29ec5252 /runtime/src/vulkan_aftermath.cpp
parent7aa5d60ae39d565780c540335cb1f91f62321220 (diff)
d3d12_xs: route presentation slots safely, hold the handler across calls
- Queue routes: PresentX defaults to slot 30 (XCL's older layout; 32 is the newer one, set with LEONIDA_XS_PRESENT_X_SLOT). SuspendX/ResumeX slots are unmeasured, so they are routed only when their variables are set; two routes on one slot are refused with a log instead of shadowing each other. - One env_slot() parser for device and queue slots (no duplicated copy). - GetFrameStatisticsX is a route like 78-80 (LEONIDA_XS_FRAME_STATISTICS_SLOT, default 81). Without a presenter it answers S_FALSE with a zero count instead of reaching PC slot 81 (ID3D12Device13::OpenExistingHeapFromAddress1). - The presentation handler is called with its lock held shared, so a detach cannot destroy the presenter under an in-flight call. - frame_pacer.h: the new event/flag constants are marked provisional again. - xbox_present.h: attach_xbox_presentation is documented as the seam the presenter will use; gta6rt does not create an XboxPresentation yet. AI-assisted. Tested with clang 23 / mingw x64: xs_proxy_mock_test (all checks but the pre-existing kLong allocation-injection ones, which also fail on main under mingw), --env-slots, --env-slots-invalid, frame_pacer_test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions