[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#226973: xserver-xfree86: [glint] second card at wrong resolution



This patch helps, though the second head is still a bit fuzzy.
One other thing I've noticed is that the clock range is detected
by X as 16.25 to 110.00 MHz, though the board specs claim a max of
250MHz.

diff -ruN xc-old/programs/Xserver/hw/xfree86/drivers/glint/glint_regs.h xc/programs/Xserver/hw/xfree86/drivers/glint/glint_regs.h
--- xc-old/programs/Xserver/hw/xfree86/drivers/glint/glint_regs.h	2003-01-11 22:55:47.000000000 -0500
+++ xc/programs/Xserver/hw/xfree86/drivers/glint/glint_regs.h	2004-03-30 10:24:35.000000000 -0500
@@ -75,6 +75,10 @@
 			 ((pGlint->PciInfo->subsysCard == 0x0100) ||  \
 			  (pGlint->PciInfo->subsysCard == 0x0002)))
 
+/* Tech-Source Raptor GFX 8P (Permedia 2V) */
+#define IS_TSGFX8P	((pGlint->PciInfo->subsysVendor == 0x1227) && \
+                         (pGlint->PciInfo->subsysCard   == 0x0006))
+
 /**********************************************
 *  GLINT 500TX Configuration Region Registers *
 ***********************************************/
diff -ruN xc-old/programs/Xserver/hw/xfree86/drivers/glint/pm2v_dac.c xc/programs/Xserver/hw/xfree86/drivers/glint/pm2v_dac.c
--- xc-old/programs/Xserver/hw/xfree86/drivers/glint/pm2v_dac.c	2002-05-07 19:15:59.000000000 -0400
+++ xc/programs/Xserver/hw/xfree86/drivers/glint/pm2v_dac.c	2004-03-30 10:25:19.000000000 -0500
@@ -113,21 +113,21 @@
 	Permedia2VPreInitSecondary(pScrn);
     }
 
-#if defined(__alpha__)
+#if defined(__alpha__) || defined(__sparc__)
     /*
      * On Alpha, we have to init secondary PM2V cards, since
      * int10 cannot be run on the OEMed cards with VGA disable
      * jumpers.
      */
     if (!xf86IsPrimaryPci(pGlint->PciInfo)) {
-	if ( IS_QPM2V ) {
+	if ( (IS_QPM2V) || (IS_TSGFX8P) ) {
 
 	    xf86DrvMsg(pScrn->scrnIndex, X_INFO,
 		       "PM2V secondary: initializing\n");
 	    Permedia2VPreInitSecondary(pScrn);
 	}
     }
-#endif /* __alpha__ */
+#endif /* __alpha__ || __sparc__ */
 }
 
 Bool



Reply to: