glsl: Add support for `precise` redeclarations
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 27 Apr 2014 04:03:54 +0000 (16:03 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Wed, 4 Jun 2014 06:56:05 +0000 (18:56 +1200)
commit5ecffe5a3a41cac5fe28d8136095a0c2acf385a8
tree0c63558b0000aae323abfbaff2b693bd1e3e228d
parent4b756b20c446bbaf0911d1b66c5a405ab3b133ef
glsl: Add support for `precise` redeclarations

This works like glsl-1.20+'s invariant redeclarations, but with fewer
restrictions, since `precise` is allowed on pretty much anything.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/ast.h
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp