summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2011-01-23 20:23:49 +0100
committerAlex Deucher <alexdeucher@gmail.com>2011-01-25 13:27:44 -0500
commitb018d343e6a6810afdaf1a73091dd9bc8c1c95bd (patch)
tree84be50684cde7bb496a99844346889ab38f6d6d8
parentf3cd2946d0f38e89643aa6624e6bf35472828995 (diff)
savage: Setup tiled surface registers in SavageEnterVT
These registers are cleared after suspend/resume, so set them up again in EnterVT.
-rw-r--r--src/savage_driver.c1
-rw-r--r--src/savage_driver.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 38db9f6..1a76c77 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -2219,6 +2219,7 @@ static Bool SavageEnterVT(int scrnIndex, int flags)
pSAREAPriv->ctxOwner = DRIGetContext(pScreen);
DRIUnlock(pScreen);
psav->LockHeld = 0;
+ SAVAGEDRISetupTiledSurfaceRegs ( psav );
}
#endif
if (!SAVPTR(pScrn)->IsSecondary)
diff --git a/src/savage_driver.h b/src/savage_driver.h
index 9c0ba58..64587fc 100644
--- a/src/savage_driver.h
+++ b/src/savage_driver.h
@@ -559,6 +559,7 @@ Bool SAVAGEDRIScreenInit( ScreenPtr pScreen );
Bool SAVAGEInitMC(ScreenPtr pScreen);
void SAVAGEDRICloseScreen( ScreenPtr pScreen );
Bool SAVAGEDRIFinishScreenInit( ScreenPtr pScreen );
+void SAVAGEDRISetupTiledSurfaceRegs ( SavagePtr psav );
Bool SAVAGELockUpdate( ScrnInfoPtr pScrn, drmLockFlags flags );