From: Samuel Pitoiset Date: Fri, 10 Nov 2017 08:18:00 +0000 (+0100) Subject: radv: remove useless initializations in radv_create_cmd_buffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66da4c75bcd0b1f4fad8ec7d7debf1f431f9c915;p=mesa.git radv: remove useless initializations in radv_create_cmd_buffer() There is a memset() above. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 17d8352e0e0..5f518f04aca 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -231,8 +231,6 @@ static VkResult radv_create_cmd_buffer( *pCommandBuffer = radv_cmd_buffer_to_handle(cmd_buffer); - cmd_buffer->upload.offset = 0; - cmd_buffer->upload.size = 0; list_inithead(&cmd_buffer->upload.list); return VK_SUCCESS;