From 16f51977d49e52079754b62f4a13754e56da1c9c Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Mon, 19 Mar 2007 12:00:36 -0700 Subject: NVSync hangs in EnterVT, so don't call it there. --- src/nv_driver.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/nv_driver.c') diff --git a/src/nv_driver.c b/src/nv_driver.c index 4b07505..8ab76f6 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -816,7 +816,10 @@ NVProbe(DriverPtr drv, int flags) Bool NVSwitchMode(int scrnIndex, DisplayModePtr mode, int flags) { - return NVModeInit(xf86Screens[scrnIndex], mode); + ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; + + NVSync(pScrn); + return NVModeInit(pScrn, mode); } /* @@ -1736,8 +1739,6 @@ NVModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode) NVPtr pNv = NVPTR(pScrn); NVRegPtr nvReg; - NVSync(pScrn); - /* Initialise the ModeReg values */ if (!vgaHWInit(pScrn, mode)) return FALSE; -- cgit v1.2.3