summaryrefslogtreecommitdiff
path: root/src/nv_dac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nv_dac.c')
-rw-r--r--src/nv_dac.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nv_dac.c b/src/nv_dac.c
index f62db58..463fde5 100644
--- a/src/nv_dac.c
+++ b/src/nv_dac.c
@@ -37,7 +37,7 @@
|* *|
\***************************************************************************/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_dac.c,v 1.44 2004/12/09 00:21:04 mvojkovi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_dac.c,v 1.45 2005/07/09 00:53:00 mvojkovi Exp $ */
#include "nv_include.h"
@@ -92,7 +92,9 @@ NVDACInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
vgaRegPtr pVga;
/*
- * This will initialize all of the generic VGA registers.
+ * Initialize all of the generic VGA registers. Don't bother with
+ * VGA_FIX_SYNC_PULSES, given the relevant CRTC settings are overridden
+ * below. Ditto for the KGA workaround.
*/
if (!vgaHWInit(pScrn, mode))
return(FALSE);
@@ -310,7 +312,7 @@ NVDACSave(ScrnInfoPtr pScrn, vgaRegPtr vgaReg, NVRegPtr nvReg,
/* can't read this reliably on NV11 */
if((pNv->Chipset & 0x0ff0) == 0x0110)
- nvReg->crtcOwner = ((pNv->Chipset & 0x0fff) == 0x0112) ? 3 : 0;
+ nvReg->crtcOwner = pNv->CRTCnumber;
}
#define DEPTH_SHIFT(val, w) ((val << (8 - w)) | (val >> ((w << 1) - 8)))