util/vma: Add a function to allocate a particular address range
[mesa.git] / src / util / vma.h
index ed69914e4cb4750461e69f2b4dc3c64cc6c4f4f6..91c7ee6e66a40fc76cd49e337a0de0841c986145 100644 (file)
@@ -43,6 +43,9 @@ void util_vma_heap_finish(struct util_vma_heap *heap);
 uint64_t util_vma_heap_alloc(struct util_vma_heap *heap,
                              uint64_t size, uint64_t alignment);
 
+bool util_vma_heap_alloc_addr(struct util_vma_heap *heap,
+                              uint64_t addr, uint64_t size);
+
 void util_vma_heap_free(struct util_vma_heap *heap,
                         uint64_t offset, uint64_t size);