Sync dspbase/dspsurf registers by re-reading them.

This seems to eliminate base/surf value confusion during EnterVT.
This commit is contained in:
Keith Packard 2007-01-03 00:04:58 -08:00
parent 5057769d3a
commit 58e797b2ca
1 changed files with 3 additions and 0 deletions

View File

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