mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
Main now has its own 0121-0125 (window override walk, host-event wake, commit fences, done at import, HUD frame times), which sorted in between this branch's 0120-0135. The branch's sixteen patches move to 0920-0935 with the same last two digits, so they apply after main's set and stay clear of its next numbers. Applying all 38 to gamescope 3.16.29 in the old order and the new one gives the same tree (checked with patch -p1, as build-in-arch.sh does). PATCHES.md and the one code comment that named 0130 follow the new numbers.
24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
diff --git a/src/Backends/SDLBackend.cpp b/src/Backends/SDLBackend.cpp
|
|
--- a/src/Backends/SDLBackend.cpp
|
|
+++ b/src/Backends/SDLBackend.cpp
|
|
@@ -351,14 +351,15 @@ namespace gamescope
|
|
std::optional oCompositeResult = vulkan_composite( (FrameInfo_t *)pFrameInfo, nullptr, false );
|
|
if ( !oCompositeResult )
|
|
return -EINVAL;
|
|
|
|
+ // Present has no render-finished semaphore, so wait before the native consumer can read
|
|
+ // the old contents. This serializes composition and present; a future pipelined path must
|
|
+ // signal a binary render-finished semaphore and make vkQueuePresentKHR wait on it.
|
|
+ vulkan_wait( *oCompositeResult, true );
|
|
+
|
|
vulkan_present_to_window();
|
|
|
|
// TODO: Hook up PresentationFeedback.
|
|
-
|
|
- // Wait for the composite result on our side *after* we
|
|
- // commit the buffer to the compositor to avoid a bubble.
|
|
- vulkan_wait( *oCompositeResult, true );
|
|
|
|
GetVBlankTimer().UpdateWasCompositing( true );
|
|
GetVBlankTimer().UpdateLastDrawTime( get_time_in_nanos() - g_SteamCompMgrVBlankTime.ulWakeupTime );
|