Home
last modified time | relevance | path

Searched refs:bo_cache (Results 1 – 25 of 40) sorted by relevance

12

/external/mesa3d/src/broadcom/vulkan/
Dv3dv_bo.c48 struct v3dv_bo_cache *cache = &device->bo_cache; in bo_dump_stats()
97 struct v3dv_bo_cache *cache = &device->bo_cache; in bo_from_cache()
164 struct v3dv_bo_cache *cache = &device->bo_cache; in bo_cache_free_all()
238 if (!list_is_empty(&device->bo_cache.time_list) && in v3dv_bo_alloc()
384 list_inithead(&device->bo_cache.time_list); in v3dv_bo_cache_init()
388 device->bo_cache.size_list_size = 0; in v3dv_bo_cache_init()
392 device->bo_cache.max_cache_size = DEFAULT_MAX_BO_CACHE_SIZE; in v3dv_bo_cache_init()
394 device->bo_cache.max_cache_size = atoll(max_cache_size_str); in v3dv_bo_cache_init()
397 fprintf(stderr, "MAX BO CACHE SIZE: %iMB\n", device->bo_cache.max_cache_size); in v3dv_bo_cache_init()
400 device->bo_cache.max_cache_size *= 1024 * 1024; in v3dv_bo_cache_init()
[all …]
/external/mesa3d/src/panfrost/lib/
Dpan_bo.c181 return &dev->bo_cache.buckets[pan_bucket_index(size)]; in pan_bucket()
193 pthread_mutex_lock(&dev->bo_cache.lock); in panfrost_bo_cache_fetch()
226 pthread_mutex_unlock(&dev->bo_cache.lock); in panfrost_bo_cache_fetch()
238 &dev->bo_cache.lru, lru_link) { in panfrost_bo_cache_evict_stale_bos()
267 pthread_mutex_lock(&dev->bo_cache.lock); in panfrost_bo_cache_put()
282 list_addtail(&bo->lru_link, &dev->bo_cache.lru); in panfrost_bo_cache_put()
290 pthread_mutex_unlock(&dev->bo_cache.lock); in panfrost_bo_cache_put()
305 pthread_mutex_lock(&dev->bo_cache.lock); in panfrost_bo_cache_evict_all()
306 for (unsigned i = 0; i < ARRAY_SIZE(dev->bo_cache.buckets); ++i) { in panfrost_bo_cache_evict_all()
307 struct list_head *bucket = &dev->bo_cache.buckets[i]; in panfrost_bo_cache_evict_all()
[all …]
Dpan_props.c221 pthread_mutex_init(&dev->bo_cache.lock, NULL); in panfrost_open_device()
222 list_inithead(&dev->bo_cache.lru); in panfrost_open_device()
224 for (unsigned i = 0; i < ARRAY_SIZE(dev->bo_cache.buckets); ++i) in panfrost_open_device()
225 list_inithead(&dev->bo_cache.buckets[i]); in panfrost_open_device()
241 pthread_mutex_destroy(&dev->bo_cache.lock); in panfrost_close_device()
Dpan_device.h143 } bo_cache; member
/external/mesa3d/src/gallium/drivers/v3d/
Dv3d_bufmgr.c46 struct v3d_bo_cache *cache = &screen->bo_cache; in v3d_bo_dump_stats()
90 struct v3d_bo_cache *cache = &screen->bo_cache; in v3d_bo_from_cache()
165 if (!list_is_empty(&screen->bo_cache.time_list) && in v3d_bo_alloc()
168 v3d_bo_cache_free_all(&screen->bo_cache); in v3d_bo_alloc()
193 mtx_lock(&screen->bo_cache.lock); in v3d_bo_last_unreference()
195 mtx_unlock(&screen->bo_cache.lock); in v3d_bo_last_unreference()
237 struct v3d_bo_cache *cache = &screen->bo_cache; in free_stale_bos()
278 struct v3d_bo_cache *cache = &screen->bo_cache; in v3d_bo_last_unreference_locked_timed()
543 struct v3d_bo_cache *cache = &screen->bo_cache; in v3d_bufmgr_destroy()
Dv3d_screen.h70 } bo_cache; member
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_bufmgr.c80 struct vc4_bo_cache *cache = &screen->bo_cache; in vc4_bo_dump_stats()
182 struct vc4_bo_cache *cache = &screen->bo_cache; in vc4_bo_from_cache()
258 if (!list_is_empty(&screen->bo_cache.time_list) && in vc4_bo_alloc()
261 vc4_bo_cache_free_all(&screen->bo_cache); in vc4_bo_alloc()
288 mtx_lock(&screen->bo_cache.lock); in vc4_bo_last_unreference()
290 mtx_unlock(&screen->bo_cache.lock); in vc4_bo_last_unreference()
296 struct vc4_bo_cache *cache = &screen->bo_cache; in free_stale_bos()
338 struct vc4_bo_cache *cache = &screen->bo_cache; in vc4_bo_last_unreference_locked_timed()
662 struct vc4_bo_cache *cache = &screen->bo_cache; in vc4_bufmgr_destroy()
Dvc4_screen.h88 } bo_cache; member
/external/libdrm/etnaviv/
Detnaviv_device.c55 etna_bo_cache_init(&dev->bo_cache); in etna_device_new()
84 etna_bo_cache_cleanup(&dev->bo_cache, 0); in etna_device_del_impl()
Detnaviv_bo.c116 bo = etna_bo_cache_alloc(&dev->bo_cache, &size, flags); in etna_bo_new()
247 if (bo->reuse && (etna_bo_cache_free(&dev->bo_cache, bo) == 0)) in etna_bo_del()
Detnaviv_priv.h76 struct etna_bo_cache bo_cache; member
/external/mesa3d/src/etnaviv/drm/
Detnaviv_device.c48 etna_bo_cache_init(&dev->bo_cache); in etna_device_new()
85 etna_bo_cache_cleanup(&dev->bo_cache, 0); in etna_device_del_impl()
Detnaviv_bo.c128 bo = etna_bo_cache_alloc(&dev->bo_cache, &size, flags); in etna_bo_new()
269 if (bo->reuse && (etna_bo_cache_free(&dev->bo_cache, bo) == 0)) in etna_bo_del()
/external/libdrm/freedreno/
Dfreedreno_device.c84 fd_bo_cache_init(&dev->bo_cache, FALSE); in fd_device_new()
113 fd_bo_cache_cleanup(&dev->bo_cache, 0); in fd_device_del_impl()
Dfreedreno_bo.c109 struct fd_bo *bo = bo_new(dev, size, flags, &dev->bo_cache); in fd_bo_new()
242 if ((bo->bo_reuse == BO_CACHE) && (fd_bo_cache_free(&dev->bo_cache, bo) == 0)) in fd_bo_del()
/external/mesa3d/src/freedreno/drm/
Dfreedreno_device.c84 fd_bo_cache_init(&dev->bo_cache, false); in fd_device_new()
113 fd_bo_cache_cleanup(&dev->bo_cache, 0); in fd_device_del_impl()
Dfreedreno_bo.c113 struct fd_bo *bo = bo_new(dev, size, flags, &dev->bo_cache); in _fd_bo_new()
259 if ((bo->bo_reuse == BO_CACHE) && (fd_bo_cache_free(&dev->bo_cache, bo) == 0)) in fd_bo_del()
/external/mesa3d/src/intel/vulkan/tests/
Dstate_pool.c45 anv_bo_cache_init(&device.bo_cache); in main()
Dstate_pool_free_list_only.c44 anv_bo_cache_init(&device.bo_cache); in main()
Dblock_pool_grow_first.c44 anv_bo_cache_init(&device.bo_cache); in main()
Dstate_pool_padding.c38 anv_bo_cache_init(&device.bo_cache); in main()
Dstate_pool_no_free.c65 anv_bo_cache_init(&device.bo_cache); in run_test()
Dblock_pool_no_free.c120 anv_bo_cache_init(&device.bo_cache); in run_test()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_winsys.h48 struct pb_cache bo_cache; member
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_winsys.h58 struct pb_cache bo_cache; member

12