glsl: Move _mesa_shader_stage_to_string/abbrev to shader_enums.c
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 8 Jan 2016 20:35:48 +0000 (12:35 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 8 Jan 2016 22:26:20 +0000 (14:26 -0800)
commit82ad571abf2fa2d85047451690f6a335f66d25fa
treed0cd2fb79bd55d4946590134cad5ca6eaaca226c
parent1d25ef6ae7717cb9720efc1f3a54591d2ff0e355
glsl: Move _mesa_shader_stage_to_string/abbrev to shader_enums.c

These are used by code that doesn't necessarily link to libglsl.la. Move
them to shader_enums.[ch] where we keep similar helpers.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h
src/glsl/nir/shader_enums.c
src/glsl/nir/shader_enums.h
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/gen6_vs_state.c