mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
glamor: Don't map the vbo to system memory.
Access mapped vbo address is too slow. And by use system memory directly, rgb10text/aa10text increases from 980K/1160K to 117K/140K. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
c303949aab
commit
8890b38857
2 changed files with 21 additions and 12 deletions
|
|
@ -399,6 +399,8 @@ glamor_close_screen(int idx, ScreenPtr screen)
|
|||
ps->CreatePicture = glamor_priv->saved_create_picture;
|
||||
}
|
||||
#endif
|
||||
if (glamor_priv->vb)
|
||||
free(glamor_priv->vb);
|
||||
free(glamor_priv);
|
||||
return screen->CloseScreen(idx, screen);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue