mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 01:00:10 +01:00
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:
parent
438510a7f5
commit
2bb1bf78f0
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue