Skip to content

backends/drm: ensure commits are done before vblank

Xaver Hugl requested to merge work/cherry-pick-7007599b into Plasma/6.0

If a commit is applied during vblank, the kernel delays it to the next vblank, for X11 reasons. To ensure that doesn't happen with KWin, read how long vblank is for the current mode and adjust the safety margin accordingly.

CCBUG: 477959

(cherry picked from commit 7007599b)

Merge request reports