From: Marek Olšák Date: Mon, 12 Jan 2015 13:35:24 +0000 (+0100) Subject: winsys/radeon: increase the size of buffer cache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ccc5b60b06269a5d847b7fe9ebe08dc61b4d2030;p=mesa.git winsys/radeon: increase the size of buffer cache This should fix this performance regression: https://bugs.freedesktop.org/show_bug.cgi?id=88227 Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index 75fc80feebc..72b7931936a 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;