From ccc5b60b06269a5d847b7fe9ebe08dc61b4d2030 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 12 Jan 2015 14:35:24 +0100 Subject: winsys/radeon: increase the size of buffer cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should fix this performance regression: https://bugs.freedesktop.org/show_bug.cgi?id=88227 Reviewed-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/winsys/radeon/drm') 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; -- cgit v1.2.3