summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-05 15:49:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-05 16:00:20 +0100
commit9e02fe269dc79ff867d1d2cb3a8673ee2861bd56 (patch)
treea78554deddfb5e3d6a687affb38b102992789612
parent51909f37ed6405c38f1c46a4012952be79031994 (diff)
sna: Make sure we recompute the vblank interval after reconfiguring the CRTC
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c5
1 files 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);