[Mesa-dev] [PATCH] winsys/radeon: increase the size of buffer cache
Dieter Nützel
Dieter at nuetzel-hh.de
Mon Jan 19 07:14:02 PST 2015
Am 12.01.2015 16:00, schrieb Marek Olšák:
> 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;
Marek will you commit?
Works here so far on RV730 (AGP).
Dieter
More information about the mesa-dev
mailing list