aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-28 23:33:38 +0100
committeremersion <contact@emersion.fr>2018-01-28 23:33:38 +0100
commitb47e8c4a1d745c0eb7904079a9d45f201937247b (patch)
tree8c06d4b92cd0a9ff6e0ba38df24e620eb91c53fc
parent20e6861021ddce3c12f896aa2a961a4da23f98ad (diff)
backend/drm: do not retry pageflip when swapping buffers
-rw-r--r--backend/drm/drm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index a9cfa276..a1227d15 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -213,13 +213,11 @@ static bool wlr_drm_connector_swap_buffers(struct wlr_output *output) {
return false;
}
- if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
- conn->pageflip_pending = true;
- } else {
- wl_event_source_timer_update(conn->retry_pageflip,
- 1000000.0f / conn->output.current_mode->refresh);
+ if (!drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
+ return false;
}
+ conn->pageflip_pending = true;
return true;
}