turnip: Handle the error path for tu/drm's vkResetFences().

OUT_OF_MEMORY is the only valid error code from this function, but this
error is more of a "things went horribly wrong, you can't talk to the GPU"
case.  Set the device to be in error.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7224>
This commit is contained in:
Eric Anholt
2020-10-19 12:14:26 -07:00
committed by Marge Bot
parent 296468ef1a
commit d384f3be4c

View File

@@ -866,7 +866,10 @@ tu_ResetFences(VkDevice _device, uint32_t fenceCount, const VkFence *pFences)
.handles = (uint64_t) (uintptr_t) handles,
.count_handles = fenceCount,
});
assert(!ret);
if (ret) {
tu_device_set_lost(device, "DRM_IOCTL_SYNCOBJ_RESET failure: %s",
strerror(errno));
}
return VK_SUCCESS;
}