1 This patch by Adam J. Richter.
3 --- XFree86-4.1.0/xc/programs/Xserver/hw/xfree86/drivers/s3virge/s3v_driver.c Tue May 29 15:51:52 2001
4 +++ XFree86-4.1.0/xc/programs/Xserver/hw/xfree86/drivers/s3virge/s3v_driver.c Tue Jul 17 03:50:27 2001
6 VGAOUT8(vgaCRReg, cr66 | 0x80);
7 VGAOUT8(vgaCRIndex, 0x3a);
8 cr3a = VGAIN8(vgaCRReg);
10 VGAOUT8(vgaCRReg, cr3a | 0x80);
12 /* VGA_SR_MODE saves mode info only, no fonts, no colormap */
14 VGAOUT8(vgaCRIndex, 0x36);
15 save->CR36 = VGAIN8(vgaCRReg);
16 VGAOUT8(vgaCRIndex, 0x3a);
17 - save->CR3A = VGAIN8(vgaCRReg);
18 if (!S3_TRIO_3D_SERIES(ps3v->Chipset)) {
19 VGAOUT8(vgaCRIndex, 0x40);
20 save->CR40 = VGAIN8(vgaCRReg);
22 cr66 = VGAIN8(vgaCRReg);
23 VGAOUT8(vgaCRReg, cr66 | 0x80);
24 VGAOUT8(vgaCRIndex, 0x3a);
25 - cr3a = VGAIN8(vgaCRReg);
26 - VGAOUT8(vgaCRReg, cr3a | 0x80);
27 + VGAOUT8(vgaCRReg, restore->CR3A | 0x80);
29 /* And finally, we init the STREAMS processor if we have CR67 indicate 24bpp
30 * We also restore FIFO and TIMEOUT memory controller registers. (later...)
32 VGAOUT8(vgaCRIndex, 0x66);
33 VGAOUT8(vgaCRReg, cr66);
34 VGAOUT8(vgaCRIndex, 0x3a);
35 - VGAOUT8(vgaCRReg, cr3a);
36 + VGAOUT8(vgaCRReg, restore->CR3A);
38 if (xf86GetVerbosity() > 1) {
39 xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, VERBLEV,