vc4: Return GL_OUT_OF_MEMORY when buffer allocation fails.
authorEric Anholt <eric@anholt.net>
Fri, 6 Nov 2015 19:07:25 +0000 (11:07 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 10 Nov 2015 03:17:36 +0000 (19:17 -0800)
commiteb8fb0064dbde7a363c2f99466a51b346b09a029
treea3eea902bf49f8e932c6f946f69e6dec8c231712
parent84608e07e7f45b14a77e4f771484f0091a6e7c14
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>
src/gallium/drivers/vc4/vc4_bufmgr.c
src/gallium/drivers/vc4/vc4_resource.c