return expr(ir_binop_sub, a, b);
}
-ir_expression *min(operand a, operand b)
+ir_expression *min2(operand a, operand b)
{
return expr(ir_binop_min, a, b);
}
-ir_expression *max(operand a, operand b)
+ir_expression *max2(operand a, operand b)
{
return expr(ir_binop_max, a, b);
}
return expr(ir_unop_round_even, a);
}
-ir_expression *dot(operand a, operand b)
-{
- return expr(ir_binop_dot, a, b);
-}
-
/* dot for vectors, mul for scalars */
-ir_expression *dotlike(operand a, operand b)
+ir_expression *dot(operand a, operand b)
{
assert(a.val->type == b.val->type);
return expr(ir_unop_b2f, a);
}
+ir_expression *
+interpolate_at_centroid(operand a)
+{
+ return expr(ir_unop_interpolate_at_centroid, a);
+}
+
+ir_expression *
+interpolate_at_offset(operand a, operand b)
+{
+ return expr(ir_binop_interpolate_at_offset, a, b);
+}
+
+ir_expression *
+interpolate_at_sample(operand a, operand b)
+{
+ return expr(ir_binop_interpolate_at_sample, a, b);
+}
+
ir_expression *
fma(operand a, operand b, operand c)
{