[Mesa-dev] [PATCH 1/2] winsys/radeon: enlarge buffer_indices_hashlist

Alex Deucher alexdeucher at gmail.com
Thu Apr 28 18:08:08 UTC 2016


On Thu, Apr 28, 2016 at 2:05 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
>
> Enlarge the buffer hashlist to prevent large numbers of misses
> due to adding more buffers than can be cached in the hashlist.
>
> Ported from winsys/amdgpu: 6373845d985d65c00f7c62b793e67ae5106eabff

Series is:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/gallium/winsys/radeon/drm/radeon_drm_cs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.h b/src/gallium/winsys/radeon/drm/radeon_drm_cs.h
> index c643b76..8056e72 100644
> --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.h
> +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.h
> @@ -51,7 +51,7 @@ struct radeon_cs_context {
>      struct drm_radeon_cs_reloc  *relocs;
>      uint64_t                    *priority_usage;
>
> -    int                         reloc_indices_hashlist[512];
> +    int                         reloc_indices_hashlist[4096];
>
>      uint64_t                    used_vram;
>      uint64_t                    used_gart;
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list