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:26 +0000 (15:48 -0700)
commit9e04b190b5f59c5b375645f5756a6edd98a7f90c
tree343a56dd34c02dd352d97f8ce56693c74313e164
parent7ec0c9789669ac88fcdd66c562e6d58281b477ce
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 false case.

Fixes glslparsertest/glsl2/logic-02.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