sna: Make sure we recompute the vblank interval after reconfiguring the CRTC

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-05 15:49:03 +01:00
parent 51909f37ed
commit 9e02fe269d
1 changed files with 2 additions and 3 deletions

View File

@ -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);