glsl: Add semantic checks for precision qualifiers
authorChad Versace <chad.versace@intel.com>
Mon, 17 Jan 2011 06:38:45 +0000 (22:38 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 17 Jan 2011 17:41:25 +0000 (09:41 -0800)
commit889e1a5b6c6602198d649ea5881e0010dec575e9
treed16e3b686f2d589ff82990603eaa1451d7ea505b
parent33279cd2d33a3f3804e4584f9134f4cc67567a54
glsl: Add semantic checks for precision qualifiers

* Check that precision qualifiers only appear in language versions 1.00,
  1.30, and later.
* Check that precision qualifiers do not apply to bools and structs.

Fixes the following Piglit tests:
* spec/glsl-1.30/precision-qualifiers/precision-bool-01.frag
* spec/glsl-1.30/precision-qualifiers/precision-struct-01.frag
* spec/glsl-1.30/precision-qualifiers/precision-struct-02.frag
src/glsl/ast_to_hir.cpp