diff options
author | Maxence Le Doré <[email protected]> | 2014-01-03 00:09:50 +0100 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-01-06 14:28:07 -0800 |
commit | 61c450fc81900131621e57fdd78a40e82239daf3 (patch) | |
tree | 09b6f5551261746f3bbdf23854aa763bc3ea1bbb /src/glsl/ir_builder.cpp | |
parent | cf70d2a7c0b8752001b7ed3a533aedb8c45759be (diff) |
glsl: add min() and max() functions to builder.cpp
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.cpp')
-rw-r--r-- | src/glsl/ir_builder.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.cpp b/src/glsl/ir_builder.cpp index 6c49734bef8..31ed1916cc9 100644 --- a/src/glsl/ir_builder.cpp +++ b/src/glsl/ir_builder.cpp @@ -211,6 +211,16 @@ ir_expression *sub(operand a, operand b) return expr(ir_binop_sub, a, b); } +ir_expression *min(operand a, operand b) +{ + return expr(ir_binop_min, a, b); +} + +ir_expression *max(operand a, operand b) +{ + return expr(ir_binop_max, a, b); +} + ir_expression *mul(operand a, operand b) { return expr(ir_binop_mul, a, b); |