summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellström <thomas@shipmail.org>2006-12-07 16:18:00 +0000
committerThomas Hellström <thomas@shipmail.org>2006-12-07 16:18:00 +0000
commitca907dbed28f9e8474da47acca426600a6d7667e (patch)
tree64132849be3d846b1a952a8d5e75440c8704238e
parent159dd4f054f8309dc6239d38cf980d3e53c5a029 (diff)
Initialize the AGP ring buffer before command submission.
-rw-r--r--ChangeLog6
-rw-r--r--unichrome/via_driver.c11
2 files changed, 14 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8328770..81a04e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,12 @@
* unichrome/via_driver.c: (VIAEnterVT):
+ Initialize the AGP ring buffer before command submission.
+
+2006-12-07 Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
+
+ * unichrome/via_driver.c: (VIAEnterVT):
+
Blank and clear screen when entering VT.
2006-12-07 Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
diff --git a/unichrome/via_driver.c b/unichrome/via_driver.c
index 89a8af0..7160c1b 100644
--- a/unichrome/via_driver.c
+++ b/unichrome/via_driver.c
@@ -1649,6 +1649,14 @@ static Bool VIAEnterVT(int scrnIndex, int flags)
if (!pVia->IsSecondary)
viaRestoreVideo(pScrn);
+#ifdef XF86DRI
+ if (pVia->directRenderingEnabled) {
+ kickVblank(pScrn);
+ VIADRIRingBufferInit(pScrn);
+ viaDRIOffscreenRestore(pScrn);
+ }
+#endif
+
if (pVia->NoAccel) {
memset(pVia->FBBase, 0x00, pVia->Bpl * pScrn->virtualY);
} else {
@@ -1659,9 +1667,6 @@ static Bool VIAEnterVT(int scrnIndex, int flags)
#ifdef XF86DRI
if (pVia->directRenderingEnabled) {
- kickVblank(pScrn);
- viaDRIOffscreenRestore(pScrn);
- VIADRIRingBufferInit(pScrn);
DRIUnlock(screenInfo.screens[scrnIndex]);
}
#endif