After receiving the 964 manual from Rainer Canavan today (Thanks Rainer!)
I have been able to determine the cause of corruption in any mode requiring
more than 2MB of video memory on my #9 Motion 771.  One snippet of code
was forcing the LAW to be 2MB rather than the 8MB window previously
determined
by the driver.  The following patch allows the correct window setting to
flow through in the update of CR58 and continues the practice of always
setting the SAM to 256 words.  Although some adapters may have VRAM that
can support a SAM of 512, I haven't seen an indication in the manual that
this can be dynamically detected so providing an option for this may be
a worthy future enhancement.

--
Justin

Index: s3_driver.c
===================================================================
RCS file:
/a/xf86-cvs/xc/programs/Xserver/hw/xfree86/drivers/s3/s3_driver.c,v
retrieving revision 1.11
diff -u -r1.11 s3_driver.c
--- s3_driver.c 11 Dec 2002 17:30:48 -0000      1.11
+++ s3_driver.c 13 Feb 2003 05:04:33 -0000
@@ -1605,10 +1605,9 @@
        else
                new->cr58 = 0x17;
 
-       if (pS3->Chipset == PCI_CHIP_968)
-               new->cr58 = 0x52;
-       else if ((pS3->Chipset == PCI_CHIP_964_0) ||
-                (pS3->Chipset == PCI_CHIP_964_1))
+       if ((pS3->Chipset == PCI_CHIP_968) ||
+           (pS3->Chipset == PCI_CHIP_964_0) ||
+           (pS3->Chipset == PCI_CHIP_964_1))
                new->cr58 |= 0x40;
 
        outb(vgaCRIndex, 0x59);

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to