nvk: Fix missing init of the stages to sync against.
authorEmma Anholt <emma@anholt.net>
Sat, 29 Oct 2022 15:48:19 +0000 (08:48 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:01 +0000 (21:32 +0000)
Fixes: d8a0dcb234cd ("nvk: Events")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_event.c

index 9eda075..009e98f 100644 (file)
@@ -161,7 +161,7 @@ nvk_CmdSetEvent2(VkCommandBuffer commandBuffer,
    VK_FROM_HANDLE(nvk_cmd_buffer, cmd, commandBuffer);
    VK_FROM_HANDLE(nvk_event, event, _event);
 
-   VkPipelineStageFlags2 stages;
+   VkPipelineStageFlags2 stages = 0;
    for (uint32_t i = 0; i < pDependencyInfo->memoryBarrierCount; i++)
       stages |= pDependencyInfo->pMemoryBarriers[i].srcStageMask;
    for (uint32_t i = 0; i < pDependencyInfo->bufferMemoryBarrierCount; i++)