[Mesa-dev] [PATCH] radv/winsys: bump the buffer hash table size to 4096

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Oct 18 12:47:23 UTC 2017


This reduces the number of conflicts when a bunch of buffers
are added to the CS list. It improves the benchmark #3 (from
GL_vs_VK) by +3/4%.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
index 53d428681c..4adbe27b2e 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
@@ -59,7 +59,7 @@ struct radv_amdgpu_cs {
 	bool                        failed;
 	bool                        is_chained;
 
-	int                         buffer_hash_table[1024];
+	int                         buffer_hash_table[4096];
 	unsigned                    hw_ip;
 
 	unsigned                    num_virtual_buffers;
-- 
2.14.2



More information about the mesa-dev mailing list