monitor: Optimize direct scanout damage (#9653)

This commit is contained in:
Lee Bousfield 2025-03-17 16:05:44 -05:00 committed by GitHub
parent 011d7ccb91
commit c4f46473df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1384,7 +1384,7 @@ bool CMonitor::attemptDirectScanout() {
clock_gettime(CLOCK_MONOTONIC, &now);
PSURFACE->presentFeedback(&now, self.lock());
output->state->addDamage(CBox{{}, vecPixelSize});
output->state->addDamage(PSURFACE->accumulateCurrentBufferDamage());
output->state->resetExplicitFences();
auto cleanup = CScopeGuard([this]() { output->state->resetExplicitFences(); });