glsl: Copy _mesa_shader_type_to_index() to standalone scaffolding.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Apr 2013 00:30:20 +0000 (17:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 12 May 2013 16:36:18 +0000 (09:36 -0700)
commit1c95cea40b518166bfa8d6925d58adf4e73d74fa
tree2a73f148bb14d213ff6ab38e546bd5da006dabe4
parenta67b18e5a7c47fd38d526bac409c04daedec9f8c
glsl: Copy _mesa_shader_type_to_index() to standalone scaffolding.

We can't include shaderobj.h from the standalone utilities, so we
unfortunately have to copy this function.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/standalone_scaffolding.h