glsl: Add support for default precision statements
authorChad Versace <chad.versace@intel.com>
Mon, 17 Jan 2011 05:44:57 +0000 (21:44 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 17 Jan 2011 18:20:47 +0000 (10:20 -0800)
commit08a286c9cc8fecb081057e0f551c88a446c47b6f
tree6b8272d30e0d6a8111af47ccf7129c92a543ef0f
parent889e1a5b6c6602198d649ea5881e0010dec575e9
glsl: Add support for default precision statements

* Add new field ast_type_specifier::is_precision_statement.
* Add semantic checks in ast_type_specifier::hir().
* Alter parser rules accordingly.
src/glsl/ast.h
src/glsl/ast_to_hir.cpp
src/glsl/ast_type.cpp
src/glsl/glsl_parser.ypp