diff options
author | Matt Turner <[email protected]> | 2013-09-19 12:56:10 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-10-07 10:41:16 -0700 |
commit | 499d7a7f6e47403a4a3da448eddaf15bdf56395c (patch) | |
tree | 2fa4bb92dd8d52622ead91fb7c2880c069cc7144 /src/mesa/state_tracker | |
parent | ae514416b20e0117d58822253069f594b4a3ee57 (diff) |
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index f11305b590a..f33bea6eb02 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -1978,6 +1978,8 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir) case ir_binop_vector_extract: case ir_triop_vector_insert: case ir_binop_ldexp: + case ir_binop_carry: + case ir_binop_borrow: /* This operation is not supported, or should have already been handled. */ assert(!"Invalid ir opcode in glsl_to_tgsi_visitor::visit()"); |