summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_builder.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-09-03 16:37:39 -0700
committerKenneth Graunke <[email protected]>2013-09-09 11:52:22 -0700
commiteff2ca1ac3f77da81a698b08c46f245b28930ede (patch)
tree44b016fe7775a7dc0583fc1647dee3ea21647e78 /src/glsl/ir_builder.h
parent7f0f60cd840fc88f01b8f6e46cad36c36709d813 (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Paul Berry <[email protected]>
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 7049476a1cf..6c0b5a189bd 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);