&bufmgr->cache_bucket[index] : NULL;
}
-static enum iris_memory_zone
-memzone_for_address(uint64_t address)
+enum iris_memory_zone
+iris_memzone_for_address(uint64_t address)
{
STATIC_ASSERT(IRIS_MEMZONE_OTHER_START > IRIS_MEMZONE_DYNAMIC_START);
STATIC_ASSERT(IRIS_MEMZONE_DYNAMIC_START > IRIS_MEMZONE_SURFACE_START);
static void
bucket_vma_free(struct bo_cache_bucket *bucket, uint64_t address)
{
- enum iris_memory_zone memzone = memzone_for_address(address);
+ enum iris_memory_zone memzone = iris_memzone_for_address(address);
struct util_dynarray *vma_list = &bucket->vma_list[memzone];
const uint64_t node_bytes = 64ull * bucket->size;
struct vma_bucket_node *node = NULL;
if (address == 0ull)
return;
- enum iris_memory_zone memzone = memzone_for_address(address);
+ enum iris_memory_zone memzone = iris_memzone_for_address(address);
/* The binder handles its own allocations. */
if (memzone == IRIS_MEMZONE_BINDER)
/* If the cached BO isn't in the right memory zone, free the old
* memory and assign it a new address.
*/
- if (memzone != memzone_for_address(bo->gtt_offset)) {
+ if (memzone != iris_memzone_for_address(bo->gtt_offset)) {
vma_free(bufmgr, bo->gtt_offset, bo->size);
bo->gtt_offset = 0ull;
}