From b018d343e6a6810afdaf1a73091dd9bc8c1c95bd Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sun, 23 Jan 2011 20:23:49 +0100 Subject: savage: Setup tiled surface registers in SavageEnterVT These registers are cleared after suspend/resume, so set them up again in EnterVT. --- src/savage_driver.c | 1 + src/savage_driver.h | 1 + 2 files changed, 2 insertions(+) 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 ); -- cgit v1.2.3