From 2eb40a37920132d53e3b48830704f92d4c695f4c Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Thu, 30 Jun 2011 16:49:40 +0800 Subject: [PATCH] glamor: Remove one extra area copy in glamor_glyph. Signed-off-by: Zhigang Gong --- glamor/glamor_glyphs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glamor/glamor_glyphs.c b/glamor/glamor_glyphs.c index 26e08470a..63ffd205c 100644 --- a/glamor/glamor_glyphs.c +++ b/glamor/glamor_glyphs.c @@ -375,6 +375,7 @@ glamor_glyph_cache_upload_glyph(ScreenPtr screen, ValidateGC(&cache_pixmap->drawable, gc); /* Create a temporary bo to stream the updates to the cache */ +#if 0 scratch = screen->CreatePixmap(screen, glyph->info.width, glyph->info.height, @@ -390,7 +391,8 @@ glamor_glyph_cache_upload_glyph(ScreenPtr screen, } else { scratch = glyph_pixmap; } - +#endif + scratch = glyph_pixmap; (void)glamor_copy_area(&scratch->drawable, &cache_pixmap->drawable, gc,