summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-06-21 19:27:07 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2012-06-21 19:27:07 +0800
commit029ef43d5fe0148b12d832a638b2c8c8e39fd262 (patch)
tree0de097f67545c28a8fbf24dfc8c3f0f23666f698
parentba625dc12634c50bc8183e64fbfb2827b94d931f (diff)
glamor_create_pixmap: Allocate glyphs pixmap in memory.
As we have glyphs atlas cache, we don't need to hold each glyphs on GPU. And for the subsequent optimization, we need to store the original glyphs pixmap on system memory. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r--src/glamor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glamor.c b/src/glamor.c
index e491783..d087b82 100644
--- a/src/glamor.c
+++ b/src/glamor.c
@@ -142,6 +142,7 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
return NullPixmap;
if ((usage == GLAMOR_CREATE_PIXMAP_CPU
+ || usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE
|| (w == 0 && h == 0)
|| !glamor_check_pixmap_fbo_depth(depth))
|| (!GLAMOR_TEXTURED_LARGE_PIXMAP &&