diff options
author | Eric Anholt <eric@anholt.net> | 2006-09-22 08:55:55 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-09-22 10:52:00 -0700 |
commit | 2cd28be71472d67956f47c7d49283ebabefa089a (patch) | |
tree | 934a3a86d2d7276257fd0a9198e715be427ba36a /src/i830_driver.c | |
parent | d87d1f5bb0475c6f651fcb7e2cab2a7d46edcc69 (diff) |
Remove empty SAVERESTORE_HWSTATE code.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index d21bf9f2..6000300a 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -3512,9 +3512,6 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) if (!vgaHWMapMem(pScrn)) return FALSE; - /* Clear SavedReg */ - memset(&pI830->SavedReg, 0, sizeof(pI830->SavedReg)); - DPRINTF(PFX, "assert( if(!I830EnterVT(scrnIndex, 0)) )\n"); if (!I830EnterVT(scrnIndex, 0)) @@ -3692,34 +3689,6 @@ I830FreeScreen(int scrnIndex, int flags) vgaHWFreeHWRec(xf86Screens[scrnIndex]); } -#ifndef SAVERESTORE_HWSTATE -#define SAVERESTORE_HWSTATE 0 -#endif - -#if SAVERESTORE_HWSTATE -static void -SaveHWOperatingState(ScrnInfoPtr pScrn) -{ - I830Ptr pI830 = I830PTR(pScrn); - I830RegPtr save = &pI830->SavedReg; - - DPRINTF(PFX, "SaveHWOperatingState\n"); - - return; -} - -static void -RestoreHWOperatingState(ScrnInfoPtr pScrn) -{ - I830Ptr pI830 = I830PTR(pScrn); - I830RegPtr save = &pI830->SavedReg; - - DPRINTF(PFX, "RestoreHWOperatingState\n"); - - return; -} -#endif - static void I830LeaveVT(int scrnIndex, int flags) { @@ -3760,11 +3729,6 @@ I830LeaveVT(int scrnIndex, int flags) } #endif -#if SAVERESTORE_HWSTATE - if (!pI830->closing) - SaveHWOperatingState(pScrn); -#endif - if (pI830->CursorInfoRec && pI830->CursorInfoRec->HideCursor) pI830->CursorInfoRec->HideCursor(pScrn); @@ -3982,10 +3946,6 @@ I830EnterVT(int scrnIndex, int flags) pScrn->AdjustFrame(scrnIndex, pScrn->frameX0, pScrn->frameY0, 0); -#if SAVERESTORE_HWSTATE - RestoreHWOperatingState(pScrn); -#endif - #ifdef XF86DRI if (pI830->directRenderingEnabled) { if (!pI830->starting) { |