Home
last modified time | relevance | path

Searched refs:mem_heap (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/drm-shim/
Ddevice.c91 util_vma_heap_init(&shim_device.mem_heap, 4096, SHIM_MEM_SIZE - 4096); in drm_shim_device_init()
272 bo->mem_addr = util_vma_heap_alloc(&shim_device.mem_heap, size, 4096); in drm_shim_bo_init()
313 util_vma_heap_free(&shim_device.mem_heap, bo->mem_addr, bo->size); in drm_shim_bo_put()
Ddrm_shim.h46 struct util_vma_heap mem_heap; member
/external/mesa3d/src/intel/vulkan/
Danv_device.c3462 struct anv_memory_heap *mem_heap = in anv_AllocateMemory() local
3465 uint64_t mem_heap_used = p_atomic_read(&mem_heap->used); in anv_AllocateMemory()
3466 if (mem_heap_used + aligned_alloc_size > mem_heap->size) in anv_AllocateMemory()
3681 mem_heap_used = p_atomic_add_return(&mem_heap->used, mem->bo->size); in anv_AllocateMemory()
3682 if (mem_heap_used > mem_heap->size) { in anv_AllocateMemory()
3683 p_atomic_add(&mem_heap->used, -mem->bo->size); in anv_AllocateMemory()