From fa30ec6d5cd9bf4eb1a960592ca7311175219e4b Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Tue, 13 Feb 2007 15:35:32 +0200 Subject: [mach64] PreInit: maxPitch, minor cosmetic. --- src/atipreinit.c | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) (limited to 'src/atipreinit.c') diff --git a/src/atipreinit.c b/src/atipreinit.c index 9ba66764..e18e27ac 100644 --- a/src/atipreinit.c +++ b/src/atipreinit.c @@ -2241,29 +2241,25 @@ ATIPreInit pitchInc = minPitch * pATI->bitsPerPixel; - { - pScreenInfo->maxHValue = (MaxBits(CRTC_H_TOTAL) + 1) << 3; - - if (pATI->Chip < ATI_CHIP_264VT) - { - /* - * ATI finally fixed accelerated doublescanning in the 264VT - * and later. On 88800's, the bit is documented to exist, but - * only doubles the vertical timings. On the 264CT and 264ET, - * the bit is ignored. - */ - ATIClockRange.doubleScanAllowed = FALSE; - - /* CRTC_H_TOTAL is one bit narrower */ - pScreenInfo->maxHValue >>= 1; - } + pScreenInfo->maxHValue = (MaxBits(CRTC_H_TOTAL) + 1) << 3; - pScreenInfo->maxVValue = MaxBits(CRTC_V_TOTAL) + 1; + if (pATI->Chip < ATI_CHIP_264VT) + { + /* + * ATI finally fixed accelerated doublescanning in the 264VT + * and later. On 88800's, the bit is documented to exist, but + * only doubles the vertical timings. On the 264CT and 264ET, + * the bit is ignored. + */ + ATIClockRange.doubleScanAllowed = FALSE; - maxPitch = MaxBits(CRTC_PITCH); + /* CRTC_H_TOTAL is one bit narrower */ + pScreenInfo->maxHValue >>= 1; } - maxPitch *= minPitch; + pScreenInfo->maxVValue = MaxBits(CRTC_V_TOTAL) + 1; + + maxPitch = minPitch * MaxBits(CRTC_PITCH); if (pATI->OptionAccel) { @@ -2273,6 +2269,7 @@ ATIPreInit */ if (maxPitch > (ATIMach64MaxX / pATI->XModifier)) maxPitch = ATIMach64MaxX / pATI->XModifier; + maxHeight = ATIMach64MaxY; /* -- cgit v1.2.3