diff options
author | Luc Verhaegen <libv@skynet.be> | 2005-07-24 11:11:23 +0000 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2005-07-24 11:11:23 +0000 |
commit | 9ea0aae8dbd414fae0052321e37a4b1abcb3f887 (patch) | |
tree | bb5fb0c27aeb429a12ef75f3c95d1a43a0fcbeb2 | |
parent | ad91b7e51aa7d6c6c58cc2f872bd35abadd069a6 (diff) |
Fix two typos in mode setting rework (still in unichrome.sf.net CVS).XORG-6_8_99_900XORG-6_8_99_16
- Wrong KM400A version when checking bandwidth. (first reported by Tom
Huckstep on #xorg - closes #3858)
- Cut-n-paste error when checking mode->Flags for sync polarity.
-rw-r--r-- | src/via_mode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/via_mode.c b/src/via_mode.c index eeafa1b..65016c0 100644 --- a/src/via_mode.c +++ b/src/via_mode.c @@ -764,7 +764,8 @@ ViaGetMemoryBandwidth(ScrnInfoPtr pScrn) else return ViaBandwidthTable[VIA_BW_CLE266C].Bandwidth[pVia->MemClk]; case VIA_KM400: - if (pVia->ChipRev < 0x8F) + /* 0x84 is earliest public device, 0x80 is more likely though */ + if (pVia->ChipRev < 0x84) return ViaBandwidthTable[VIA_BW_KM400].Bandwidth[pVia->MemClk]; else return ViaBandwidthTable[VIA_BW_KM400A].Bandwidth[pVia->MemClk]; @@ -1299,7 +1300,7 @@ ViaModePrimaryVGA(ScrnInfoPtr pScrn, DisplayModePtr mode) temp = 0x23; if (mode->Flags & V_NHSYNC) temp |= 0x40; - if (mode->Flags & V_NHSYNC) + if (mode->Flags & V_NVSYNC) temp |= 0x80; temp |= 0x0C; /* Undefined/external clock */ hwp->writeMiscOut(hwp, temp); |