core/compositor: Correctly track SHM buffer damage (#9678)

This commit is contained in:
Lee Bousfield
2025-03-22 11:13:44 -05:00
committed by GitHub
parent 4600043a49
commit 6384f4acf4
15 changed files with 103 additions and 82 deletions

View File

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