glsl: Drop the round-trip through ast_type_specifier for many builtin types.
authorEric Anholt <eric@anholt.net>
Fri, 30 Mar 2012 06:17:32 +0000 (23:17 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Apr 2012 21:30:46 +0000 (14:30 -0700)
commiteb7a71dea78152142b456f29e4881c4d3aeb56b6
treebb14cc5f6d794bebf98c7a7cd4eff53cc7a85acf
parentb2c0df2b60a77b043d461f265c85d8b5b066a008
glsl: Drop the round-trip through ast_type_specifier for many builtin types.

We have lexer recognition of a bunch of our types based on the
handling.  This code was mapping those recognized tokens to an enum
and then to a string of their name.  Just drop the enums and provide
the string directly in the parser.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast.h
src/glsl/ast_to_hir.cpp
src/glsl/ast_type.cpp
src/glsl/glsl_parser.yy