From 58e797b2caa6effa5455fc1f13dc4c58d0658744 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 3 Jan 2007 00:04:58 -0800 Subject: [PATCH] Sync dspbase/dspsurf registers by re-reading them. This seems to eliminate base/surf value confusion during EnterVT. --- src/i830_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i830_display.c b/src/i830_display.c index 9ec46a45..d124ba0a 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -351,9 +351,12 @@ i830PipeSetBase(xf86CrtcPtr crtc, int x, int y) if (IS_I965G(pI830)) { OUTREG(dspbase, ((y * pScrn->displayWidth + x) * pI830->cpp)); + (void) INREG(dspbase); OUTREG(dspsurf, Start); + (void) INREG(dspsurf); } else { OUTREG(dspbase, Start + ((y * pScrn->displayWidth + x) * pI830->cpp)); + (void) INREG(dspbase); } crtc->x = x;