glsl: Semantically check the RHS of `&&' even when short-circuiting.
authorEric Anholt <eric@anholt.net>
Sat, 9 Apr 2011 20:27:02 +0000 (10:27 -1000)
committerEric Anholt <eric@anholt.net>
Wed, 13 Apr 2011 22:48:25 +0000 (15:48 -0700)
commit7ec0c9789669ac88fcdd66c562e6d58281b477ce
tree7a3f4611eeac4ae5d35a66f3b359f0295a5051a9
parent01822706ec2c2501a2cd2431a90c56b334b79a5c
glsl: Semantically check the RHS of `&&' even when short-circuiting.

We just do the AST-to-HIR processing, and only push the instructions
if needed in the constant true case.

Fixes glslparsertest/glsl2/logic-01.frag

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp