summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-09-27 13:04:41 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-09-27 13:35:23 +0200
commit6d5c1e0d896666bcb2b3c1de7bfa424f140be364 (patch)
treee025d9ffbc8e82e72bdfe681d2855d46ec16a198 /exa
parent598698678b07cb3a9406a9ee98bd3186366949e7 (diff)
EXA: Remove bogus pitch checks.
exaCreatePixmap should handle all cases correctly.
Diffstat (limited to 'exa')
-rw-r--r--exa/exa.c34
1 files changed, 0 insertions, 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