From 7acbe895618837305cf4050731ccd1cd3bc11589 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Thu, 21 Jun 2012 19:27:07 +0800 Subject: [PATCH] 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 --- glamor/glamor.c | 1 + 1 file changed, 1 insertion(+) 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 &&