rusticl/event: return execution errors when doing a blocking enqueue
Cc: mesa-stable Reviewed-by: @LingMan Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30215>
This commit is contained in:
@@ -176,6 +176,11 @@ pub fn create_and_queue(
|
||||
if e.deps.iter().any(|dep| dep.is_error()) {
|
||||
return Err(CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST);
|
||||
}
|
||||
// return any execution errors when blocking
|
||||
let err = e.status();
|
||||
if err < 0 {
|
||||
return Err(err);
|
||||
}
|
||||
} else {
|
||||
q.queue(e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user