summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_builder.h
diff options
context:
space:
mode:
authorMaxence Le DorĂ© <[email protected]>2014-01-03 00:09:50 +0100
committerKenneth Graunke <[email protected]>2014-01-06 14:28:07 -0800
commit61c450fc81900131621e57fdd78a40e82239daf3 (patch)
tree09b6f5551261746f3bbdf23854aa763bc3ea1bbb /src/glsl/ir_builder.h
parentcf70d2a7c0b8752001b7ed3a533aedb8c45759be (diff)
glsl: add min() and max() functions to builder.cpp
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r--src/glsl/ir_builder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h
index 1f0778870e3..4b85ea13958 100644
--- a/src/glsl/ir_builder.h
+++ b/src/glsl/ir_builder.h
@@ -184,6 +184,9 @@ ir_expression *i2b(operand a);
ir_expression *f2b(operand a);
ir_expression *b2f(operand a);
+ir_expression *min(operand a, operand b);
+ir_expression *max(operand a, operand b);
+
ir_expression *fma(operand a, operand b, operand c);
ir_expression *lrp(operand x, operand y, operand a);
ir_expression *csel(operand a, operand b, operand c);