[Intel-gfx] [patch] avoid duplicate SaveHWState
Shaohua Li
shaohua.li at intel.com
Fri Aug 15 08:10:36 CEST 2008
i830PreInit already call SaveHWState(). When i830ScreenInit() calls into
i830EnterVT(), we call SaveHWState() again. It appears there is no
register change between the two SaveHWState(), so we can remove the
second SaveHWState() call. This can save time a little bit.
Index: intel-video/src/i830_driver.c
===================================================================
--- intel-video.orig/src/i830_driver.c
+++ intel-video/src/i830_driver.c
@@ -1398,7 +1398,7 @@ I830PreInit(ScrnInfoPtr pScrn, int flags
return FALSE;
pI830 = I830PTR(pScrn);
- pI830->SaveGeneration = -1;
+ pI830->SaveGeneration = serverGeneration;
pI830->pEnt = pEnt;
pScrn->displayWidth = 640; /* default it */
More information about the Intel-gfx
mailing list