mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
555bc9b964
commit
82b08a3f04
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue