summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-09-19 12:56:10 -0700
committerMatt Turner <mattst88@gmail.com>2013-10-07 10:41:16 -0700
commit499d7a7f6e47403a4a3da448eddaf15bdf56395c (patch)
tree2fa4bb92dd8d52622ead91fb7c2880c069cc7144 /src/mesa/program
parentae514416b20e0117d58822253069f594b4a3ee57 (diff)
downloadexternal_mesa3d-499d7a7f6e47403a4a3da448eddaf15bdf56395c.zip
external_mesa3d-499d7a7f6e47403a4a3da448eddaf15bdf56395c.tar.gz
external_mesa3d-499d7a7f6e47403a4a3da448eddaf15bdf56395c.tar.bz2
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>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 6b22b50..2f87cfd 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -1497,6 +1497,8 @@ ir_to_mesa_visitor::visit(ir_expression *ir)
case ir_quadop_bitfield_insert:
case ir_binop_ldexp:
case ir_triop_csel:
+ case ir_binop_carry:
+ case ir_binop_borrow:
assert(!"not supported");
break;