aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-19 23:35:23 +0100
committeremersion <contact@emersion.fr>2018-01-19 23:35:23 +0100
commitf0f97280a0364f58c1b5fc3f95818c6969058010 (patch)
tree08ea325f977a7f177bfd72846ee18e4f3e99213c /backend
parentd6c74d8a16ea38fccfd47dcd068a3c4f2423bfe4 (diff)
backend/drm: fix retry pageflip
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 0d32605a..267cafc3 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -199,14 +199,13 @@ static void wlr_drm_connector_swap_buffers(struct wlr_output *output) {
if (drm->parent) {
bo = wlr_drm_surface_mgpu_copy(&plane->mgpu_surf, bo);
}
-
uint32_t fb_id = get_fb_for_bo(bo);
if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
conn->pageflip_pending = true;
} else {
wl_event_source_timer_update(conn->retry_pageflip,
- 1000.0f / conn->output.current_mode->refresh);
+ 1000000.0f / conn->output.current_mode->refresh);
}
}
@@ -241,7 +240,7 @@ void wlr_drm_connector_start_renderer(struct wlr_drm_connector *conn) {
conn->pageflip_pending = true;
} else {
wl_event_source_timer_update(conn->retry_pageflip,
- 1000.0f / conn->output.current_mode->refresh);
+ 1000000.0f / conn->output.current_mode->refresh);
}
}