[Mesa-dev] [PATCH 2/3] radv: fix the size of the dynamic_buffers array

Fredrik Höglund fredrik at kde.org
Tue Mar 7 00:53:21 UTC 2017


A buffer descriptor is 16 bytes, not 16 dwords.

Signed-off-by: Fredrik Höglund <fredrik at kde.org>
---
 src/amd/vulkan/radv_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 30201a67e7..ab7db88e8d 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -728,7 +728,7 @@ struct radv_cmd_buffer {
 	uint32_t queue_family_index;
 
 	uint8_t push_constants[MAX_PUSH_CONSTANTS_SIZE];
-	uint32_t dynamic_buffers[16 * MAX_DYNAMIC_BUFFERS];
+	uint32_t dynamic_buffers[4 * MAX_DYNAMIC_BUFFERS];
 	VkShaderStageFlags push_constant_stages;
 
 	struct radv_cmd_buffer_upload upload;
-- 
2.11.0



More information about the mesa-dev mailing list