diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2013-09-03 16:41:42 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2013-09-09 11:52:22 -0700 |
commit | f72a8498e7e2c2d3233cdfd58de3b1124a247d39 (patch) | |
tree | be0eccff93bfd952aea470bf0d9343b90aba9d12 /src/glsl/ir_builder.h | |
parent | eff2ca1ac3f77da81a698b08c46f245b28930ede (diff) | |
download | external_mesa3d-f72a8498e7e2c2d3233cdfd58de3b1124a247d39.zip external_mesa3d-f72a8498e7e2c2d3233cdfd58de3b1124a247d39.tar.gz external_mesa3d-f72a8498e7e2c2d3233cdfd58de3b1124a247d39.tar.bz2 |
glsl: Add IR builder support for conditional assignments.
This adds two new signatures:
assign(lhs, rhs, condition, writemask);
assign(lhs, rhs, condition);
All the other existing APIs still exist.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h index 6c0b5a1..c852849 100644 --- a/src/glsl/ir_builder.h +++ b/src/glsl/ir_builder.h @@ -122,6 +122,8 @@ public: ir_assignment *assign(deref lhs, operand rhs); ir_assignment *assign(deref lhs, operand rhs, int writemask); +ir_assignment *assign(deref lhs, operand rhs, operand condition); +ir_assignment *assign(deref lhs, operand rhs, operand condition, int writemask); ir_expression *expr(ir_expression_operation op, operand a); ir_expression *expr(ir_expression_operation op, operand a, operand b); |