radv: fix the size of the dynamic_buffers array
authorFredrik Höglund <fredrik@kde.org>
Tue, 7 Mar 2017 00:53:21 +0000 (01:53 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 7 Mar 2017 19:23:26 +0000 (20:23 +0100)
A buffer descriptor is 16 bytes, not 16 dwords.

Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_private.h

index ab3e881579535fa134c595b8e6a0be4e82140caf..890e6b82e303c8183b43cef4a2a1af510ec33392 100644 (file)
@@ -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;