Searched refs:mem_heap (Results 1 – 8 of 8) sorted by relevance
/external/mesa3d/src/drm-shim/ |
D | device.c | 108 util_vma_heap_init(&shim_device.mem_heap, shim_page_size, in drm_shim_device_init() 336 bo->mem_addr = util_vma_heap_alloc(&shim_device.mem_heap, size, shim_page_size); in drm_shim_bo_init() 381 util_vma_heap_free(&shim_device.mem_heap, bo->mem_addr, bo->size); in drm_shim_bo_put()
|
D | drm_shim.h | 56 struct util_vma_heap mem_heap; member
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_screen.h | 86 struct util_vma_heap mem_heap; member
|
D | lp_screen.c | 841 util_vma_heap_finish(&screen->mem_heap); in llvmpipe_destroy_screen() 1093 util_vma_heap_init(&screen->mem_heap, alignment, UINT64_MAX - alignment); in llvmpipe_create_screen() 1094 screen->mem_heap.alloc_high = false; in llvmpipe_create_screen()
|
D | lp_texture.c | 1323 mem->offset = util_vma_heap_alloc(&screen->mem_heap, mem->size, alignment); in llvmpipe_allocate_memory() 1356 util_vma_heap_free(&screen->mem_heap, mem->offset, mem->size); in llvmpipe_free_memory()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_device.c | 1408 struct anv_memory_heap *mem_heap = in anv_AllocateMemory() local 1411 if (aligned_alloc_size > mem_heap->size) in anv_AllocateMemory() 1414 uint64_t mem_heap_used = p_atomic_read(&mem_heap->used); in anv_AllocateMemory() 1415 if (mem_heap_used + aligned_alloc_size > mem_heap->size) in anv_AllocateMemory() 1483 if (!mem_heap->is_local_mem) in anv_AllocateMemory() 1675 mem_heap_used = p_atomic_add_return(&mem_heap->used, mem->bo->size); in anv_AllocateMemory() 1676 if (mem_heap_used > mem_heap->size) { in anv_AllocateMemory() 1677 p_atomic_add(&mem_heap->used, -mem->bo->size); in anv_AllocateMemory()
|
/external/mesa3d/src/freedreno/vulkan/ |
D | tu_device.cc | 2938 struct tu_memory_heap *mem_heap = &device->physical_device->heap; in tu_AllocateMemory() local 2939 uint64_t mem_heap_used = p_atomic_read(&mem_heap->used); in tu_AllocateMemory() 2940 if (mem_heap_used > mem_heap->size) in tu_AllocateMemory() 3024 mem_heap_used = p_atomic_add_return(&mem_heap->used, mem->bo->size); in tu_AllocateMemory() 3025 if (mem_heap_used > mem_heap->size) { in tu_AllocateMemory() 3026 p_atomic_add(&mem_heap->used, -mem->bo->size); in tu_AllocateMemory()
|
/external/mesa3d/src/intel/vulkan_hasvk/ |
D | anv_device.c | 2991 struct anv_memory_heap *mem_heap = in anv_AllocateMemory() local 2994 uint64_t mem_heap_used = p_atomic_read(&mem_heap->used); in anv_AllocateMemory() 2995 if (mem_heap_used + aligned_alloc_size > mem_heap->size) in anv_AllocateMemory() 3192 mem_heap_used = p_atomic_add_return(&mem_heap->used, mem->bo->size); in anv_AllocateMemory() 3193 if (mem_heap_used > mem_heap->size) { in anv_AllocateMemory() 3194 p_atomic_add(&mem_heap->used, -mem->bo->size); in anv_AllocateMemory()
|