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
This commit is contained in:
Lee Bousfield 2025-03-22 11:01:14 -05:00 committed by GitHub
parent ccbdba7ee2
commit 279b06044c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 62 additions and 51 deletions

View file

@ -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) {