glsl: Make a function to express a GLSL version ir human-readable form.
authorPaul Berry <stereotype441@gmail.com>
Thu, 2 Aug 2012 01:36:57 +0000 (18:36 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 6 Dec 2012 20:13:21 +0000 (12:13 -0800)
commitd9bfaa104ed4debeff6c7d69daf4d9cc85cadb8d
tree0b66292a5b90fc357089ba57d7f290d3a92f2911
parent53e572f15cb394a8d4f2cd5856dd2a06b6ccd3f0
glsl: Make a function to express a GLSL version ir human-readable form.

This will be useful in generating more helpful error messages,
especially with the addition of GLSL 3.00 ES support.

[v2, idr]: Rename ctx parameter to mem_ctx

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Carl Worth <cworth@cworth.org>
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h