Home
last modified time | relevance | path

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

/external/chromium_org/third_party/mesa/src/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 …]
/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 …]