Revert "iris: Avoid abort() if kernel can't allocate memory"

This reverts commit f9d8d9acbb.

Now ENOMEM is handled in submit_batch(), we don't need to check it for
resetting anymore.

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20449>
This commit is contained in:
Kai-Heng Feng
2022-12-29 14:01:31 +08:00
committed by Marge Bot
parent 5aae8a0526
commit 646cff13bc
+1 -2
View File
@@ -1098,9 +1098,8 @@ _iris_batch_flush(struct iris_batch *batch, const char *file, int line)
* with a new logical context, and inform iris_context that all state
* has been lost and needs to be re-initialized. If this succeeds,
* dubiously claim success...
* Also handle ENOMEM here.
*/
if (ret == -EIO || ret == -ENOMEM) {
if (ret == -EIO) {
enum pipe_reset_status status = iris_batch_check_for_reset(batch);
if (batch->reset->reset) {
/* Tell gallium frontends the device is lost and it was our fault. */