diff --git a/src/vulkan/runtime/vk_acceleration_structure.c b/src/vulkan/runtime/vk_acceleration_structure.c index 2e8da8d656f..df9ed851ad7 100644 --- a/src/vulkan/runtime/vk_acceleration_structure.c +++ b/src/vulkan/runtime/vk_acceleration_structure.c @@ -1165,7 +1165,7 @@ vk_cmd_build_acceleration_structures(VkCommandBuffer commandBuffer, progress = false; bool update; - uint32_t encode_key; + uint32_t encode_key = 0; for (uint32_t i = 0; i < infoCount; ++i) { if (bvh_states[i].last_encode_pass == pass + 1) continue;