glsl/ir_builder: Add more helpers for constructing expressions
authorChad Versace <chad.versace@linux.intel.com>
Fri, 11 Jan 2013 17:53:21 +0000 (09:53 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:24:10 +0000 (21:24 -0800)
commit5790174e376e2b3543b902ae14c790c6eed2dd88
treecee3ead8674bdccf721f58057932b179f9be005d
parentfafcbf52b7a45494e11488eb37d1e0b036ac8e4b
glsl/ir_builder: Add more helpers for constructing expressions

Add the following functions, each of which construct the similarly named
ir expression:
    div, round_even, clamp

    equal, less, greater, lequal, gequal

    logic_not, logic_and, logic_or

    bit_not, bit_or, bit_and, lshift, rshift

    f2i, i2f, f2u, u2f, i2u, u2i

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/glsl/ir_builder.cpp
src/glsl/ir_builder.h