[Mesa-dev] [PATCH] winsys/radeon: increase the size of buffer cache

Marek Olšák maraeo at gmail.com
Mon Jan 12 07:00:49 PST 2015


From: Marek Olšák <marek.olsak at amd.com>

This should fix this performance regression:
https://bugs.freedesktop.org/show_bug.cgi?id=88227
---
 src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
index 75fc80f..72b7931 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
@@ -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;
 
-- 
2.1.0



More information about the mesa-dev mailing list