glsl: Add ir_binop_carry and ir_binop_borrow.
authorMatt Turner <mattst88@gmail.com>
Thu, 19 Sep 2013 19:56:10 +0000 (12:56 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 7 Oct 2013 17:41:16 +0000 (10:41 -0700)
commit499d7a7f6e47403a4a3da448eddaf15bdf56395c
tree2fa4bb92dd8d52622ead91fb7c2880c069cc7144
parentae514416b20e0117d58822253069f594b4a3ee57
glsl: Add ir_binop_carry and ir_binop_borrow.

Calculates the carry out of the addition of two values and the
borrow from subtraction respectively. Will be used in uaddCarry() and
usubBorrow() built-in implementations.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_builder.cpp
src/glsl/ir_builder.h
src/glsl/ir_validate.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp