Home
last modified time | relevance | path

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

/external/mesa3d/src/drm-shim/
Ddevice.c108 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()
Ddrm_shim.h56 struct util_vma_heap mem_heap; member
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.h86 struct util_vma_heap mem_heap; member
Dlp_screen.c841 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()
Dlp_texture.c1323 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/
Danv_device.c1408 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/
Dtu_device.cc2938 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/
Danv_device.c2991 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()