Searched refs:surf_size (Results 1 – 2 of 2) sorted by relevance
120 unsigned surf_size; in svga_screen_cache_lookup() local134 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() local217 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 …]