From 66da4c75bcd0b1f4fad8ec7d7debf1f431f9c915 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 10 Nov 2017 09:18:00 +0100 Subject: [PATCH] radv: remove useless initializations in radv_create_cmd_buffer() There is a memset() above. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_cmd_buffer.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.30.2