From 584f06ad2fb45cfc57fc1a0cdd59deec0c2d18c1 Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 19 Jan 2018 23:46:40 +0100 Subject: backend/drm: do not try a pageflip is another one is in pending --- backend/drm/drm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 267cafc3..e6bfee8c 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -201,6 +201,11 @@ static void wlr_drm_connector_swap_buffers(struct wlr_output *output) { } uint32_t fb_id = get_fb_for_bo(bo); + if (conn->pageflip_pending) { + wlr_log(L_ERROR, "Skipping pageflip"); + return; + } + if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) { conn->pageflip_pending = true; } else { -- cgit v1.2.3