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>
(cherry picked from commit 8a77488c9c)
This commit is contained in:
Karol Herbst 2024-07-16 18:42:19 +02:00 committed by Eric Engestrom
parent 555bc9b964
commit 82b08a3f04
2 changed files with 6 additions and 1 deletions

View file

@ -184,7 +184,7 @@
"description": "rusticl/event: return execution errors when doing a blocking enqueue",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -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);
}