/third_party/mesa3d/src/panfrost/vulkan/ |
H A D | panvk_mempool.c | 49 if (pool->bo_pool && bo_sz == pool->base.slab_size && in panvk_pool_alloc_backing() 64 if (bo->size == pool->base.slab_size) in panvk_pool_alloc_backing() 84 if (unlikely(bo == NULL || (offset + sz) >= pool->base.slab_size)) { in panvk_pool_alloc_aligned() 86 ALIGN_POT(MAX2(pool->base.slab_size, sz), in panvk_pool_alloc_aligned() 105 unsigned create_flags, size_t slab_size, const char *label, in panvk_pool_init() 109 pan_pool_init(&pool->base, dev, create_flags, slab_size, label); in panvk_pool_init() 116 panvk_pool_alloc_backing(pool, pool->base.slab_size); in panvk_pool_init() 103 panvk_pool_init(struct panvk_pool *pool, struct panfrost_device *dev, struct panvk_bo_pool *bo_pool, unsigned create_flags, size_t slab_size, const char *label, bool prealloc) panvk_pool_init() argument
|
H A D | panvk_mempool.h | 78 size_t slab_size, const char *label, bool prealloc);
|
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
H A D | pan_mempool.c | 72 unsigned create_flags, size_t slab_size, const char *label, in panfrost_pool_init() 76 pan_pool_init(&pool->base, dev, create_flags, slab_size, label); in panfrost_pool_init() 83 panfrost_pool_alloc_backing(pool, pool->base.slab_size); in panfrost_pool_init() 154 if (unlikely(bo == NULL || (offset + sz) >= pool->base.slab_size)) { in panfrost_pool_alloc_aligned() 156 ALIGN_POT(MAX2(pool->base.slab_size, sz), 4096)); in panfrost_pool_alloc_aligned() 70 panfrost_pool_init(struct panfrost_pool *pool, void *memctx, struct panfrost_device *dev, unsigned create_flags, size_t slab_size, const char *label, bool prealloc, bool owned) panfrost_pool_init() argument
|
H A D | pan_mempool.h | 85 size_t slab_size, const char *label, bool prealloc, bool
|
/third_party/mesa3d/src/panfrost/lib/ |
H A D | pan_pool.h | 47 size_t slab_size; member 52 unsigned create_flags, size_t slab_size, const char *label) in pan_pool_init() 56 pool->slab_size = slab_size; in pan_pool_init() 51 pan_pool_init(struct pan_pool *pool, struct panfrost_device *dev, unsigned create_flags, size_t slab_size, const char *label) pan_pool_init() argument
|
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/ |
H A D | amdgpu_bo.c | 714 unsigned slab_size = 0; in amdgpu_bo_slab_alloc() local 725 slab_size = max_entry_size * 2; in amdgpu_bo_slab_alloc() 738 if (entry_size * 5 > slab_size) in amdgpu_bo_slab_alloc() 739 slab_size = util_next_power_of_two(entry_size * 5); in amdgpu_bo_slab_alloc() 746 slab_size < ws->info.pte_fragment_size) in amdgpu_bo_slab_alloc() 747 slab_size = ws->info.pte_fragment_size; in amdgpu_bo_slab_alloc() 751 assert(slab_size != 0); in amdgpu_bo_slab_alloc() 754 slab_size, slab_size, in amdgpu_bo_slab_alloc() 759 slab_size in amdgpu_bo_slab_alloc() 817 unsigned slab_size = slab->buffer->base.size; amdgpu_bo_slab_free() local [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_bo.c | 175 ASSERTED unsigned slab_size = slab->buffer->base.size; in bo_slab_free() local 177 assert(slab->base.num_entries * slab->entry_size <= slab_size); in bo_slab_free() 1169 unsigned slab_size = 0; in bo_slab_alloc() local 1185 slab_size = max_entry_size * 2; in bo_slab_alloc() 1198 if (entry_size * 5 > slab_size) in bo_slab_alloc() 1199 slab_size = util_next_power_of_two(entry_size * 5); in bo_slab_alloc() 1205 assert(slab_size != 0); in bo_slab_alloc() 1207 slab->buffer = zink_bo(zink_bo_create(screen, slab_size, slab_size, heap, 0, NULL)); in bo_slab_alloc() 1211 slab_size in bo_slab_alloc() [all...] |
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_bufmgr.c | 664 unsigned slab_size = 0; in iris_slab_alloc() local 680 slab_size = max_entry_size * 2; in iris_slab_alloc() 696 if (entry_size * 5 > slab_size) in iris_slab_alloc() 697 slab_size = util_next_power_of_two(entry_size * 5); in iris_slab_alloc() 707 if (i == NUM_SLAB_ALLOCATORS - 1 && slab_size < pte_size) in iris_slab_alloc() 708 slab_size = pte_size; in iris_slab_alloc() 713 assert(slab_size != 0); in iris_slab_alloc() 716 iris_bo_alloc(bufmgr, "slab", slab_size, slab_size, memzone, flags); in iris_slab_alloc() 720 slab_size in iris_slab_alloc() [all...] |