summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2007-09-27 22:36:52 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2007-09-27 22:36:52 +0200
commitcfe549d1ba28396c44af94133d8c1d323e3c7086 (patch)
treec79b51ab6f54ed201be7a3974d2ec57999f5126b /exa
parentc11a27ef85674f1e77ffa7f083646b848e1dc0b8 (diff)
EXA: Added back the maxPitchPixels initialization code.
This doesn't add real value yet, but it will be useful once I add code that splits large render operations into smaller parts if necessary.
Diffstat (limited to 'exa')
-rw-r--r--exa/exa.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/exa/exa.c b/exa/exa.c
index 8d70558e3..518a5f1e9 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -726,6 +726,21 @@ 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.
+ *
+ * We want maxPitchPixels or maxPitchBytes to be set so we can check
+ * pixmaps against the max pitch in exaCreatePixmap() -- it matters
+ * whether a pixmap is rejected because of its pitch or
+ * because of its width.
+ */
+ if (!pScreenInfo->maxPitchPixels && !pScreenInfo->maxPitchBytes)
+ {
+ pScreenInfo->maxPitchPixels = pScreenInfo->maxX;
+ }
+
#ifdef RENDER
ps = GetPictureScreenIfSet(pScreen);
#endif