winsys/amdgpu: reduce wasted memory due to the size tolerance in pb_cache

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26643>
This commit is contained in:
Marek Olšák 2023-12-08 22:34:00 -05:00 committed by Marge Bot
parent 023e78b4d7
commit 5a3bacc376

View file

@ -445,7 +445,7 @@ amdgpu_winsys_create(int fd, const struct pipe_screen_config *config,
/* Create managers. */
pb_cache_init(&aws->bo_cache, RADEON_NUM_HEAPS,
500000, aws->check_vm ? 1.0f : 2.0f, 0,
500000, aws->check_vm ? 1.0f : 1.5f, 0,
((uint64_t)aws->info.vram_size_kb + aws->info.gart_size_kb) * 1024 / 8, aws,
/* Cast to void* because one of the function parameters
* is a struct pointer instead of void*. */