From 9e02fe269dc79ff867d1d2cb3a8673ee2861bd56 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 5 Jun 2014 15:49:03 +0100 Subject: sna: Make sure we recompute the vblank interval after reconfiguring the CRTC Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 4006efe6..b0edd06c 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -1785,10 +1785,8 @@ sna_crtc_dpms(xf86CrtcPtr crtc, int mode) } else sna_crtc_disable(crtc); - if (priv->bo != NULL) { + if (priv->bo != NULL) priv->dpms_mode = mode; - update_flush_interval(to_sna(crtc->scrn)); - } } void sna_mode_adjust_frame(struct sna *sna, int x, int y) @@ -4670,6 +4668,7 @@ sna_crtc_config_notify(ScreenPtr screen) return; probe_capabilities(sna); + update_flush_interval(sna); sna_cursors_reload(sna); -- cgit v1.2.3