vulkan: silence an unused variable warning

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32810>
This commit is contained in:
Marek Olšák
2024-12-27 16:52:48 -05:00
committed by Marge Bot
parent 3474978d52
commit 03d24e56a2

View File

@@ -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;