diff options
author | Eric Anholt <eric@anholt.net> | 2015-11-06 11:07:25 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-11-09 19:17:36 -0800 |
commit | eb8fb0064dbde7a363c2f99466a51b346b09a029 (patch) | |
tree | a3eea902bf49f8e932c6f946f69e6dec8c231712 /src/gallium/drivers/vc4/vc4_bufmgr.c | |
parent | 84608e07e7f45b14a77e4f771484f0091a6e7c14 (diff) |
vc4: Return GL_OUT_OF_MEMORY when buffer allocation fails.
I was afraid our callers weren't prepared for this, but it looks like
at least for resource creation, mesa/st throws an error appropriately.
Cc: "11.0" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_bufmgr.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_bufmgr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index 2f822f04c21..21e3bde2ee2 100644 --- a/src/gallium/drivers/vc4/vc4_bufmgr.c +++ b/src/gallium/drivers/vc4/vc4_bufmgr.c @@ -168,8 +168,9 @@ retry: vc4_bo_cache_free_all(&screen->bo_cache); goto retry; } - fprintf(stderr, "create ioctl failure\n"); - abort(); + + free(bo); + return NULL; } screen->bo_count++; |