diff options
author | Kenneth Graunke <[email protected]> | 2012-07-08 22:27:25 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-07-12 10:20:18 -0700 |
commit | 0bb3d4ba54f98f4d45abe598dabc905f08055cd5 (patch) | |
tree | 14a604cd1798e09e4379712206d7b9f2639666ce /src/glsl/ir_builder.h | |
parent | b656df990f8c1d7468e11afa2079511d8b1febf4 (diff) |
glsl/ir_builder: Add a generic constructor for unary expressions.
I needed to compute logs and square roots in a patch I was working on,
and wanted to use the convenient interface. We already have a similar
constructor for binops; adding one for unops seems reasonable.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r-- | src/glsl/ir_builder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h index 0ebcbab95c2..410b08cd052 100644 --- a/src/glsl/ir_builder.h +++ b/src/glsl/ir_builder.h @@ -83,6 +83,7 @@ public: ir_assignment *assign(deref lhs, operand rhs); 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 *add(operand a, operand b); ir_expression *sub(operand a, operand b); |