mesa: Add _mesa_error_no_memory for logging out-of-memory messages
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 4 Mar 2014 13:39:37 +0000 (15:39 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 May 2014 18:58:36 +0000 (11:58 -0700)
commit59ad2e6696c51dc9b3514770abb550df663ecc7b
tree13337e5cea8865b2c544bec4e5f108c68ad07f8b
parent267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7
mesa: Add _mesa_error_no_memory for logging out-of-memory messages

This can be called from locations that don't have a context pointer
handy.  This patch also adds enough infrastructure so that the unit
tests for the GLSL compiler and the stand-alone compiler will build and
function.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/glsl/Makefile.am
src/glsl/main.cpp
src/glsl/tests/common.c [new file with mode: 0644]
src/mesa/main/errors.c
src/mesa/main/errors.h