Home
last modified time | relevance | path

Searched refs:surf_size (Results 1 – 1 of 1) sorted by relevance

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_screen_cache.c120 unsigned surf_size; in svga_screen_cache_lookup() local
134 surf_size = surface_size(&entry->key); in svga_screen_cache_lookup()
135 assert(surf_size <= cache->total_size); in svga_screen_cache_lookup()
136 if (surf_size > cache->total_size) in svga_screen_cache_lookup()
139 cache->total_size -= surf_size; in svga_screen_cache_lookup()
209 unsigned surf_size; in svga_screen_cache_add() local
217 surf_size = surface_size(key); in svga_screen_cache_add()
222 if (surf_size >= SVGA_HOST_SURFACE_CACHE_BYTES) { in svga_screen_cache_add()
229 if (cache->total_size + surf_size > SVGA_HOST_SURFACE_CACHE_BYTES) { in svga_screen_cache_add()
234 unsigned target_size = SVGA_HOST_SURFACE_CACHE_BYTES - surf_size; in svga_screen_cache_add()
[all …]