glamor: Remove one extra area copy in glamor_glyph.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
61e1ad3972
commit
2eb40a3792
|
@ -375,6 +375,7 @@ glamor_glyph_cache_upload_glyph(ScreenPtr screen,
|
||||||
ValidateGC(&cache_pixmap->drawable, gc);
|
ValidateGC(&cache_pixmap->drawable, gc);
|
||||||
|
|
||||||
/* Create a temporary bo to stream the updates to the cache */
|
/* Create a temporary bo to stream the updates to the cache */
|
||||||
|
#if 0
|
||||||
scratch = screen->CreatePixmap(screen,
|
scratch = screen->CreatePixmap(screen,
|
||||||
glyph->info.width,
|
glyph->info.width,
|
||||||
glyph->info.height,
|
glyph->info.height,
|
||||||
|
@ -390,7 +391,8 @@ glamor_glyph_cache_upload_glyph(ScreenPtr screen,
|
||||||
} else {
|
} else {
|
||||||
scratch = glyph_pixmap;
|
scratch = glyph_pixmap;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
scratch = glyph_pixmap;
|
||||||
(void)glamor_copy_area(&scratch->drawable,
|
(void)glamor_copy_area(&scratch->drawable,
|
||||||
&cache_pixmap->drawable,
|
&cache_pixmap->drawable,
|
||||||
gc,
|
gc,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user