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

Marek Olšák maraeo at gmail.com
Thu Apr 28 18:05:05 UTC 2016


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
---
 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



More information about the mesa-dev mailing list