From 9b126f45db27496c1ad16db65a61fe641a018983 Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Mon, 20 Nov 2006 20:38:59 +0200 Subject: We always use the accelerator CRTC within the xserver. - cull (pATI->NewHW.crtc != ATI_CRTC_MACH64). --- src/ativalid.c | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'src/ativalid.c') diff --git a/src/ativalid.c b/src/ativalid.c index 74ffe05..8a92e82 100644 --- a/src/ativalid.c +++ b/src/ativalid.c @@ -25,7 +25,6 @@ #endif #include "atichip.h" -#include "aticrtc.h" #include "atistruct.h" #include "ativalid.h" @@ -49,12 +48,6 @@ ATIValidMode ATIPtr pATI = ATIPTR(pScreenInfo); int HBlankWidth, HAdjust, VScan, VInterlace; -#ifndef AVOID_CPIO - - int VDisplay, VTotal; - -#endif /* AVOID_CPIO */ - if (flags & MODECHECK_FINAL) { return MODE_OK; @@ -159,46 +152,9 @@ ATIValidMode if (!HBlankWidth) return MODE_HBLANK_NARROW; - switch (pATI->NewHW.crtc) { - -#ifndef AVOID_CPIO - - case ATI_CRTC_VGA: - /* Prevent overscans */ - if (HBlankWidth > 63) - return MODE_HBLANK_WIDE; - - if (pMode->HDisplay > 2048) - return MODE_BAD_HVALUE; - - if (VScan > 64) - return MODE_BAD_VSCAN; - - VDisplay = pMode->VDisplay * VScan; - VTotal = pMode->VTotal * VScan; - - if ((pMode->Flags & V_INTERLACE) && (pATI->Chip < ATI_CHIP_264CT)) - { - VDisplay >>= 1; - VTotal >>= 1; - } - - if ((VDisplay > 2048) || (VTotal > 2050)) - return MODE_BAD_VVALUE; - - break; - -#endif /* AVOID_CPIO */ - - case ATI_CRTC_MACH64: if (VScan > 2) return MODE_NO_VSCAN; - - break; - - default: - break; } return MODE_OK; -- cgit v1.2.3