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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user