winsys/radeon: enlarge buffer_indices_hashlist
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 8 Mar 2016 15:01:47 +0000 (16:01 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 28 Apr 2016 19:06:31 +0000 (21:06 +0200)
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

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_cs.h

index c643b76a9cd556d80781bfe9c4588441a88d7a2e..8056e72fc4181fdd56e9a65f53bf1e2bbddeee2a 100644 (file)
@@ -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;