radv/cmd_buffer: Fix warning by initializing instance count.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10806>
This commit is contained in:
Timur Kristóf 2021-05-20 12:43:00 +02:00 committed by Marge Bot
parent 438510a7f5
commit 2bb1bf78f0

View file

@ -5708,6 +5708,7 @@ radv_CmdDrawIndirect(VkCommandBuffer commandBuffer, VkBuffer _buffer, VkDeviceSi
info.strmout_buffer = NULL;
info.count_buffer = NULL;
info.indexed = false;
info.instance_count = 0;
if (!radv_before_draw(cmd_buffer, &info, 0))
return;
@ -5730,6 +5731,7 @@ radv_CmdDrawIndexedIndirect(VkCommandBuffer commandBuffer, VkBuffer _buffer, VkD
info.stride = stride;
info.count_buffer = NULL;
info.strmout_buffer = NULL;
info.instance_count = 0;
if (!radv_before_draw(cmd_buffer, &info, 0))
return;
@ -5755,6 +5757,7 @@ radv_CmdDrawIndirectCount(VkCommandBuffer commandBuffer, VkBuffer _buffer, VkDev
info.stride = stride;
info.strmout_buffer = NULL;
info.indexed = false;
info.instance_count = 0;
if (!radv_before_draw(cmd_buffer, &info, 0))
return;
@ -5781,6 +5784,7 @@ radv_CmdDrawIndexedIndirectCount(VkCommandBuffer commandBuffer, VkBuffer _buffer
info.count_buffer_offset = countBufferOffset;
info.stride = stride;
info.strmout_buffer = NULL;
info.instance_count = 0;
if (!radv_before_draw(cmd_buffer, &info, 0))
return;