[Mesa-dev] [PATCH 3/8] radv: remove useless initializations in radv_create_cmd_buffer()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Nov 10 08:18:00 UTC 2017


There is a memset() above.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 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 563a54be52..1131cf6d89 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.15.0



More information about the mesa-dev mailing list