summaryrefslogtreecommitdiff
path: root/glamor/glamor.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-06-21 19:27:07 +0800
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:52 -0800
commit7acbe895618837305cf4050731ccd1cd3bc11589 (patch)
tree7bdbb1b29d5c67d050306e2fcd779641f8c71a5c /glamor/glamor.c
parent1e4fc85a71cc6498a7e11872026062fceb5bbdf1 (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>
Diffstat (limited to 'glamor/glamor.c')
-rw-r--r--glamor/glamor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c
index e4917836d..d087b8275 100644
--- a/glamor/glamor.c
+++ b/glamor/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 &&