glsl: Make is_zero and is_one virtual methods of ir_rvalue
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 19 Nov 2010 01:11:17 +0000 (17:11 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 19 Nov 2010 02:19:45 +0000 (18:19 -0800)
commitad87f2ddc7e6b95e3dd5bbe4d2b19703d305c74e
treeb218028a8a70a77b0e35a73edf5f605a7771f773
parent83e93b6008213ad86607027e8434ecaccc8b1a2c
glsl: Make is_zero and is_one virtual methods of ir_rvalue

This eliminates the need in some cames to validate that an rvalue is
an ir_constant before checking to see if it's 0 or 1.
src/glsl/ir.cpp
src/glsl/ir.h