[Mesa-dev] [PATCH] winsys/radeon: increase the size of buffer cache
Michel Dänzer
michel at daenzer.net
Mon Jan 12 23:56:06 PST 2015
On 13.01.2015 00:00, Marek Olšák wrote:
> 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;
>
>
I wonder if this couldn't cause trouble for apps which use only VRAM or
GTT (almost) exclusively, but I guess it's worth a try.
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list