diff options
author | Vasily Khoruzhick <[email protected]> | 2019-09-07 19:33:07 -0700 |
---|---|---|
committer | Vasily Khoruzhick <[email protected]> | 2019-09-22 19:20:59 -0700 |
commit | d2147787534de87cd11015266293211b5188442f (patch) | |
tree | 823202fabe8f330fc6360a2a02dbc881e2280181 /src/gallium/meson.build | |
parent | 9f897a2b4cf2c0e222487470053a69de843f2084 (diff) |
lima: implement BO cache
Allocating BOs is expensive, so we should avoid doing that by caching
freed BOs.
BO cache is modelled after one in v3d driver and works as follows:
- in lima_bo_create() check if we have matching BO in cache and return
it if there's one, allocate new BO otherwise.
- in lima_bo_unreference() (renamed from lima_bo_free()): put BO in
cache instead of freeing it and remove all stale BOs from cache
Reviewed-by: Qiang Yu <[email protected]>
Signed-off-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium/meson.build')
0 files changed, 0 insertions, 0 deletions