tu: Check for DEVICE_LOST in vkGetEventStatus()
Required by maintenance5. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25001>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user