commit | eb7a71dea78152142b456f29e4881c4d3aeb56b6 | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Thu Mar 29 23:17:32 2012 -0700 |
committer | Eric Anholt <eric@anholt.net> | Mon Apr 09 14:30:46 2012 -0700 |
tree | bb14cc5f6d794bebf98c7a7cd4eff53cc7a85acf | |
parent | b2c0df2b60a77b043d461f265c85d8b5b066a008 [diff] |
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>