diff options
| author | Lee Bousfield <ljbousfield@gmail.com> | 2025-03-22 11:01:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-22 17:01:14 +0100 |
| commit | 279b06044c583bfaa207d6fbd373c752967a4a2e (patch) | |
| tree | d4d8757269b9d04d1ebe570ace2cf6fbfdb8e439 /src/helpers | |
| parent | ccbdba7ee2ccb835306de89a6023134fa6b8006f (diff) | |
screencopy, render: Use explicit sync for screencopy (#9697)
* screencopy, render: Use explicit sync for screencopy
* screencopy: Check if explicit sync is enabled
* screencopy: Don't require explicit KMS enabled
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/Monitor.cpp | 5 | ||||
| -rw-r--r-- | src/helpers/Monitor.hpp | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 30c15e4e..fe8ab9df 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -57,8 +57,7 @@ void CMonitor::onConnect(bool noRule) { g_pEventLoopManager->doLater([] { g_pConfigManager->ensurePersistentWorkspacesPresent(); }); if (output->supportsExplicit) { - inTimeline = CSyncTimeline::create(output->getBackend()->drmFD()); - outTimeline = CSyncTimeline::create(output->getBackend()->drmFD()); + inTimeline = CSyncTimeline::create(output->getBackend()->drmFD()); } listeners.frame = output->events.frame.registerListener([this](std::any d) { onMonitorFrame(); }); @@ -1421,8 +1420,6 @@ bool CMonitor::attemptDirectScanout() { } } - commitSeq++; - bool ok = output->commit(); if (!ok && DOEXPLICIT) { diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp index b55f0116..a7d97c8d 100644 --- a/src/helpers/Monitor.hpp +++ b/src/helpers/Monitor.hpp @@ -140,10 +140,9 @@ class CMonitor { // explicit sync SP<CSyncTimeline> inTimeline; - SP<CSyncTimeline> outTimeline; Hyprutils::OS::CFileDescriptor inFence; SP<CEGLSync> eglSync; - uint64_t commitSeq = 0; + uint64_t inTimelinePoint = 0; PHLMONITORREF self; |
