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:
parent
ccbdba7ee2
commit
279b06044c
6 changed files with 62 additions and 51 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue