mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-25 21:02:21 +00:00
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>
This commit is contained in:
parent
1e4fc85a71
commit
7acbe89561
1 changed files with 1 additions and 0 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue