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.
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
--- a/src/Backends/WaylandBackend.cpp
|
|
+++ b/src/Backends/WaylandBackend.cpp
|
|
@@ -2309,7 +2309,10 @@
|
|
|
|
bool CWaylandBackend::SupportsExplicitSync() const
|
|
{
|
|
- return true;
|
|
+ // GAMESCOPE_DISABLE_EXPLICIT_SYNC=1: a kernel without DRM_IOCTL_SYNCOBJ_EVENTFD (before
|
|
+ // Linux 6.6) cannot signal the timelines, so clients use implicit sync instead.
|
|
+ const char *pszDisable = getenv( "GAMESCOPE_DISABLE_EXPLICIT_SYNC" );
|
|
+ return !( pszDisable && *pszDisable == '1' );
|
|
}
|
|
|
|
bool CWaylandBackend::IsPaused() const
|
|
--- a/src/Backends/SDLBackend.cpp
|
|
+++ b/src/Backends/SDLBackend.cpp
|
|
@@ -506,8 +506,10 @@
|
|
|
|
bool CSDLBackend::SupportsExplicitSync() const
|
|
{
|
|
- // We use a Vulkan swapchain, so yes.
|
|
- return true;
|
|
+ // We use a Vulkan swapchain, so yes - unless the kernel cannot signal the timelines
|
|
+ // (no DRM_IOCTL_SYNCOBJ_EVENTFD before Linux 6.6): GAMESCOPE_DISABLE_EXPLICIT_SYNC=1.
|
|
+ const char *pszDisable = getenv( "GAMESCOPE_DISABLE_EXPLICIT_SYNC" );
|
|
+ return !( pszDisable && *pszDisable == '1' );
|
|
}
|
|
|
|
bool CSDLBackend::IsPaused() const
|