summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_builder.h
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2013-11-10 19:13:54 +1300
committerChris Forbes <chrisf@ijw.co.nz>2014-07-12 11:20:00 +1200
commit1d5b06664fdd31a9447a1d10ec0615245aa46563 (patch)
treead81df42b513412a254283f18df9c065d10f4e6b /src/glsl/ir_builder.h
parent8b7a323596992a2a2127f40d2d4cae1e9fb0a94d (diff)
downloadexternal_mesa3d-1d5b06664fdd31a9447a1d10ec0615245aa46563.zip
external_mesa3d-1d5b06664fdd31a9447a1d10ec0615245aa46563.tar.gz
external_mesa3d-1d5b06664fdd31a9447a1d10ec0615245aa46563.tar.bz2
glsl: add new expression types for interpolateAt*
Will be used to implement interpolateAt*() from ARB_gpu_shader5 Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r--src/glsl/ir_builder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h
index 108b53a..573596c 100644
--- a/src/glsl/ir_builder.h
+++ b/src/glsl/ir_builder.h
@@ -186,6 +186,10 @@ ir_expression *b2f(operand a);
ir_expression *min2(operand a, operand b);
ir_expression *max2(operand a, operand b);
+ir_expression *interpolate_at_centroid(operand a);
+ir_expression *interpolate_at_offset(operand a, operand b);
+ir_expression *interpolate_at_sample(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);