Skip to content

backends/drm: fix an edge case for DrmGpu::waitIdle

Xaver Hugl requested to merge work/cherry-pick-33ad107f into Plasma/6.2

Polling for drm events works for waiting on pageflip events, but if there's commits scheduled for future submission, and that fails, no pageflip will ever arrive. To fix that, this commit ensures at least one commit is actually submitted to the kernel before polling for pageflip events.

BUG: 492167

(cherry picked from commit 33ad107f)

Co-authored-by: Xaver Hugl xaver.hugl@gmail.com

Merge request reports