diff --git a/src/freedreno/vulkan/tu_device.cc b/src/freedreno/vulkan/tu_device.cc index f7051a39d10..2b152b8d90a 100644 --- a/src/freedreno/vulkan/tu_device.cc +++ b/src/freedreno/vulkan/tu_device.cc @@ -2885,8 +2885,12 @@ tu_DestroyEvent(VkDevice _device, VKAPI_ATTR VkResult VKAPI_CALL tu_GetEventStatus(VkDevice _device, VkEvent _event) { + TU_FROM_HANDLE(tu_device, device, _device); TU_FROM_HANDLE(tu_event, event, _event); + if (vk_device_is_lost(&device->vk)) + return VK_ERROR_DEVICE_LOST; + if (*(uint64_t*) event->bo->map == 1) return VK_EVENT_SET; return VK_EVENT_RESET;