mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-17 23:58:21 +02:00
zink/bo: reduce wasted memory due to the size tolerance in pb_cache
ref 5a3bacc376
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41936>
This commit is contained in:
parent
fce97b7f44
commit
4e000c1d98
1 changed files with 1 additions and 1 deletions
|
|
@ -1395,7 +1395,7 @@ zink_bo_init(struct zink_screen *screen)
|
|||
total_mem += screen->info.mem_props.memoryHeaps[i].size;
|
||||
/* Create managers. */
|
||||
pb_cache_init(&screen->pb.bo_cache, screen->info.mem_props.memoryTypeCount,
|
||||
500000, 2.0f, 0,
|
||||
500000, 1.5f, 0,
|
||||
total_mem / 8, offsetof(struct zink_bo, cache_entry), screen,
|
||||
(void*)bo_destroy, (void*)bo_can_reclaim);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue