mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
i965: Explicitly abort instead of exiting on batch failure
This avoids a deadlock condition when registered atexit handlers attempt to acquire a mutex, but the program was going to exit with an error anyway Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Rohan Garg <rohan.garg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11813>
This commit is contained in:
parent
9375f62a54
commit
b077301a22
1 changed files with 1 additions and 1 deletions
|
|
@ -862,7 +862,7 @@ submit_batch(struct brw_context *brw, int in_fence_fd, int *out_fence_fd)
|
|||
if (ret != 0) {
|
||||
fprintf(stderr, "i965: Failed to submit batchbuffer: %s\n",
|
||||
strerror(-ret));
|
||||
exit(1);
|
||||
abort();
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue