summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_builder.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-09-03 16:37:39 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-09-09 11:52:22 -0700
commiteff2ca1ac3f77da81a698b08c46f245b28930ede (patch)
tree44b016fe7775a7dc0583fc1647dee3ea21647e78 /src/glsl/ir_builder.h
parent7f0f60cd840fc88f01b8f6e46cad36c36709d813 (diff)
downloadexternal_mesa3d-eff2ca1ac3f77da81a698b08c46f245b28930ede.zip
external_mesa3d-eff2ca1ac3f77da81a698b08c46f245b28930ede.tar.gz
external_mesa3d-eff2ca1ac3f77da81a698b08c46f245b28930ede.tar.bz2
glsl: Add IR builder support for triops.
Now that we have the ir_expression constructor that does type inference, this is trivial to do. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r--src/glsl/ir_builder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h
index 7049476..6c0b5a1 100644
--- a/src/glsl/ir_builder.h
+++ b/src/glsl/ir_builder.h
@@ -125,6 +125,7 @@ ir_assignment *assign(deref lhs, operand rhs, int writemask);
ir_expression *expr(ir_expression_operation op, operand a);
ir_expression *expr(ir_expression_operation op, operand a, operand b);
+ir_expression *expr(ir_expression_operation op, operand a, operand b, operand c);
ir_expression *add(operand a, operand b);
ir_expression *sub(operand a, operand b);
ir_expression *mul(operand a, operand b);