diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c index d485aeeb51a..714267ac2c3 100644 --- a/src/intel/vulkan/anv_queue.c +++ b/src/intel/vulkan/anv_queue.c @@ -896,13 +896,15 @@ anv_queue_submit_add_in_semaphore(struct anv_queue *queue, const uint64_t value) { ANV_FROM_HANDLE(anv_semaphore, semaphore, _semaphore); - struct anv_semaphore_impl *impl; + struct anv_semaphore_impl *impl = NULL; VkResult result; result = maybe_transfer_temporary_semaphore(queue, submit, semaphore, &impl); if (result != VK_SUCCESS) return result; + assert(impl); + switch (impl->type) { case ANV_SEMAPHORE_TYPE_WSI_BO: /* When using a window-system buffer as a semaphore, always enable