Reviewed-by: Marek Olšák <marek.olsak@amd.com>
uint64_t gart_size;
uint64_t vram_size;
uint64_t max_alloc_size;
+ uint32_t min_alloc_size;
bool has_dedicated_vram;
bool has_virtual_memory;
bool gfx_ib_pad_with_type2;
amdgpu_bo_slab_free))
goto fail_cache;
+ ws->info.min_alloc_size = 1 << AMDGPU_SLAB_MIN_SIZE_LOG2;
+
/* init reference */
pipe_reference_init(&ws->reference, 1);
radeon_bo_slab_alloc,
radeon_bo_slab_free))
goto fail_cache;
+
+ ws->info.min_alloc_size = 1 << RADEON_SLAB_MIN_SIZE_LOG2;
+ } else {
+ ws->info.min_alloc_size = ws->info.gart_page_size;
}
if (ws->gen >= DRV_R600) {