Skip to content

wlr_scene: Funnel all damage operations through scene_output_damage

Alexander Orzechowski requested to merge Nefsen402/wlroots:scene-damage into master
wlr_scene: Immediately apply pending output commit damage

There were two problems with the old implementation:
1. wlr_scene_output_commit would bail early if a frame wasn't requested
and there was no commit damage, however commit damage could never accumulate
until rendering happens. The check was subtly wrong as a result.
2. Previously, we would fill the pending commit damage based on the
current state of the damage ring. However, during direct scanout, the
damage would accumulate which would mean we would submit damage from
previous frames even if we didn't need to.

Merge request reports

Loading