diff options
author | Paul Berry <stereotype441@gmail.com> | 2012-08-01 18:36:57 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2012-12-06 12:13:21 -0800 |
commit | d9bfaa104ed4debeff6c7d69daf4d9cc85cadb8d (patch) | |
tree | 0b66292a5b90fc357089ba57d7f290d3a92f2911 /src/glsl/glsl_parser_extras.h | |
parent | 53e572f15cb394a8d4f2cd5856dd2a06b6ccd3f0 (diff) | |
download | external_mesa3d-d9bfaa104ed4debeff6c7d69daf4d9cc85cadb8d.zip external_mesa3d-d9bfaa104ed4debeff6c7d69daf4d9cc85cadb8d.tar.gz external_mesa3d-d9bfaa104ed4debeff6c7d69daf4d9cc85cadb8d.tar.bz2 |
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>
Diffstat (limited to 'src/glsl/glsl_parser_extras.h')
-rw-r--r-- | src/glsl/glsl_parser_extras.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index 0b208f6..5bad5a9 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -56,6 +56,9 @@ struct glsl_switch_state { bool is_switch_innermost; // if switch stmt is closest to break, ... }; +const char * +glsl_compute_version_string(void *mem_ctx, bool is_es, unsigned version); + struct _mesa_glsl_parse_state { _mesa_glsl_parse_state(struct gl_context *_ctx, GLenum target, void *mem_ctx); |