From dfbaf9aab80cf33d47148f087fa747eacd508b05 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 11 May 2010 14:54:15 +0100 Subject: [PATCH] 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 --- src/i830_uxa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;