glsl: Refactor is_vec_{zero,one} to be methods of ir_constant
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 12 Nov 2010 18:19:08 +0000 (10:19 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 16 Nov 2010 20:11:02 +0000 (12:11 -0800)
commit38e55153af031e48125b1cd0a5d939bb92379ddc
tree386166b2f5265da45ca02a12d5034bf3d5cc6aa1
parent4f84a3aa32b06c99e65a4bf91452671075f8204c
glsl: Refactor is_vec_{zero,one} to be methods of ir_constant

These predicates will be used in other places soon.
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/opt_algebraic.cpp