diff options
author | Paul Berry <[email protected]> | 2014-01-07 10:58:56 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2014-01-08 07:30:48 -0800 |
commit | 72a995d30721246476c94f95c7df10838fe7f69a (patch) | |
tree | 1da53c7d68e1631210d561a37da30320e6892539 /src/glsl | |
parent | 665b8d7b6d8eae03c9dc0ef1a744fe59d9cc6cb6 (diff) |
glsl: make _mesa_shader_stage_to_string() available to non-C++ code.
Reviewed-by: Brian Paul <[email protected]>
v2: Split from patch "mesa: Store gl_shader_stage enum in gl_shader objects."
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/glsl_parser_extras.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index 8e0ae3bd7e0..197f337529e 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -423,14 +423,6 @@ extern bool _mesa_glsl_process_extension(const char *name, YYLTYPE *name_locp, YYLTYPE *behavior_locp, _mesa_glsl_parse_state *state); -/** - * Get the textual name of the specified shader stage (which is a - * gl_shader_stage). - */ -extern const char * -_mesa_shader_stage_to_string(unsigned stage); - - #endif /* __cplusplus */ @@ -441,6 +433,13 @@ _mesa_shader_stage_to_string(unsigned stage); extern "C" { #endif +/** + * Get the textual name of the specified shader stage (which is a + * gl_shader_stage). + */ +extern const char * +_mesa_shader_stage_to_string(unsigned stage); + extern const char * _mesa_progshader_enum_to_string(GLenum type); |