From 6d5c1e0d896666bcb2b3c1de7bfa424f140be364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 27 Sep 2007 13:04:41 +0200 Subject: [PATCH] EXA: Remove bogus pitch checks. exaCreatePixmap should handle all cases correctly. --- exa/exa.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/exa/exa.c b/exa/exa.c index ae6b70f23..8d70558e3 100644 --- a/exa/exa.c +++ b/exa/exa.c @@ -726,40 +726,6 @@ exaDriverInit (ScreenPtr pScreen, "non-NULL\n", pScreen->myNum); return FALSE; } - - /* If the driver doesn't set any max pitch values, we'll just assume - * that there's a limitation by pixels, and that it's the same as - * maxX. - */ - if (!pScreenInfo->maxPitchPixels && !pScreenInfo->maxPitchBytes) - { - pScreenInfo->maxPitchPixels = pScreenInfo->maxX; - } - - /* If set, maxPitchPixels must not be smaller than maxX. */ - if (pScreenInfo->maxPitchPixels && - pScreenInfo->maxPitchPixels < pScreenInfo->maxX) - { - LogMessage(X_ERROR, "EXA(%d): ExaDriverRec::maxPitchPixels " - "is smaller than ExaDriverRec::maxX\n", - pScreen->myNum); - return FALSE; - } - - /* If set, maxPitchBytes must not be smaller than maxX * 4. - * This is to ensure that a 32bpp pixmap with the maximum width - * can be handled wrt the pitch. - */ - if (pScreenInfo->maxPitchBytes && - pScreenInfo->maxPitchBytes < (pScreenInfo->maxX * 4)) - { - LogMessage(X_ERROR, "EXA(%d): ExaDriverRec::maxPitchBytes " - "doesn't allow a 32bpp pixmap with width equal to " - "ExaDriverRec::maxX\n", - pScreen->myNum); - return FALSE; - } - #ifdef RENDER ps = GetPictureScreenIfSet(pScreen); #endif