pb_cache: let drivers choose the number of buckets
[mesa.git] / src / gallium / winsys / amdgpu / drm / amdgpu_winsys.c
index ab91faf7cbce7df4896603440f9d1845c1d0e658..707ebf927305b79bc71b1341d8b98ca817a307d0 100644 (file)
@@ -285,7 +285,8 @@ amdgpu_winsys_create(int fd, const struct pipe_screen_config *config,
       goto fail_alloc;
 
    /* Create managers. */
-   pb_cache_init(&ws->bo_cache, 500000, ws->check_vm ? 1.0f : 2.0f, 0,
+   pb_cache_init(&ws->bo_cache, 4,
+                 500000, ws->check_vm ? 1.0f : 2.0f, 0,
                  (ws->info.vram_size + ws->info.gart_size) / 8,
                  amdgpu_bo_destroy, amdgpu_bo_can_reclaim);