summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-11 14:54:15 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-11 15:01:00 +0100
commitdfbaf9aab80cf33d47148f087fa747eacd508b05 (patch)
treea8ab0b52b0ecc39d8a4c70264b853504fbd48a0a
parent5b7efe375ae951ffcdb2c81e2ad8a2ed86ffbdf2 (diff)
i830: Never create a bo for depth=1 pixmaps.
As we can not accelerate these either as a destination or a source, don't bother allocating a buffer object for them. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/i830_uxa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/i830_uxa.c b/src/i830_uxa.c
index 8255fb74..b5fc6b88 100644
--- a/src/i830_uxa.c
+++ b/src/i830_uxa.c
@@ -914,6 +914,8 @@ i830_uxa_create_pixmap(ScreenPtr screen, int w, int h, int depth,
if (w > 32767 || h > 32767)
return NullPixmap;
+ if (depth == 1)
+ return fbCreatePixmap(screen, w, h, depth, usage);
if (usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE && w <= 32 && h <= 32)
return fbCreatePixmap(screen, w, h, depth, usage);
@@ -956,7 +958,7 @@ i830_uxa_create_pixmap(ScreenPtr screen, int w, int h, int depth,
return NullPixmap;
}
- /* Perform a premilinary search for an in-flight bo */
+ /* Perform a preliminary search for an in-flight bo */
if (usage != UXA_CREATE_PIXMAP_FOR_MAP) {
int aligned_h;