radv: remove useless initializations in radv_create_cmd_buffer()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 10 Nov 2017 08:18:00 +0000 (09:18 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Nov 2017 10:05:30 +0000 (11:05 +0100)
There is a memset() above.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index 17d8352e0e0bfe783bd2d7a03696c77191c5ddfd..5f518f04aca994fcc9bc80115b163f72466aac73 100644 (file)
@@ -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;