winsys/radeon: increase the size of buffer cache
authorMarek Olšák <marek.olsak@amd.com>
Mon, 12 Jan 2015 13:35:24 +0000 (14:35 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 19 Jan 2015 19:15:27 +0000 (20:15 +0100)
This should fix this performance regression:
https://bugs.freedesktop.org/show_bug.cgi?id=88227

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c

index 75fc80feebc0ad22bfeb7d00d45f0165427fc5e9..72b7931936a7b1766c9139ccca29bae976f1bdd7 100644 (file)
@@ -673,7 +673,7 @@ radeon_drm_winsys_create(int fd, radeon_screen_create_t screen_create)
         goto fail;
 
     ws->cman = pb_cache_manager_create(ws->kman, 1000000, 2.0f, 0,
-                                       (ws->info.vram_size + ws->info.gart_size) / 8);
+                                       MIN2(ws->info.vram_size, ws->info.gart_size));
     if (!ws->cman)
         goto fail;