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

s3virge/gx2



Hey, all. I just wrote a patch based on the suggestion from Kevin
Brosius. This is an attempt to help account for differences in the FIFO
registers with the virge/GX2 and the other virge chipsets.  So far,  this
patch has worked quite well. No lock ups from the moire2 screensaver. I'm
using the following options now:

        Option "XaaNoCPUToScreenColorExpandFill" 
        Option "pci_burst"
        Option "pci_retry"
        Option "fifo_aggressive"

Later for now.

**  Derek J Witt                                                **
*   Email: mailto:djw@flinthills.com                             *
*   Home Page: http://www.flinthills.com/~djw/                   *
*** "Houston, the Eagle has landed and laid an egg!" -- Unknown **
--- xc/programs/Xserver/hw/xfree86/drivers/s3virge/s3v_macros.h	Fri Mar 31 14:13:33 2000
+++ xc/programs/Xserver/hw/xfree86/drivers/s3virge/s3v_macros-new.h	Mon Nov 13 12:05:16 2000
@@ -97,7 +97,11 @@
 
 
 #define WAITFIFO(n) if(ps3v->NoPCIRetry) \
-	 while(((INREG(SUBSYS_STAT_REG) >> 8) & 0x1f) < n){}
+  if (S3_ViRGE_GX2_SERIES(ps3v->Chipset)) { \
+	 while(((INREG(SUBSYS_STAT_REG) >> 9) & 0x60) < n){} \
+  } else { \
+	 while(((INREG(SUBSYS_STAT_REG) >> 8) & 0x1f) < n){} \
+  }
 
 #define WAITIDLE()\
   do { int loop=0; mem_barrier(); \

Reply to: