nir/vtn: Use return type rather than image type for tex ops
[mesa.git] / src / compiler / glsl / ir_builder.cpp
index 0cee8565e4e087535d434d90a9c950416c657111..416d8c71ed1cad3aed19054469d2fe42c1792ffe 100644 (file)
@@ -314,6 +314,12 @@ exp(operand a)
    return expr(ir_unop_exp, a);
 }
 
+ir_expression *
+rcp(operand a)
+{
+   return expr(ir_unop_rcp, a);
+}
+
 ir_expression *
 rsq(operand a)
 {
@@ -365,13 +371,13 @@ less(operand a, operand b)
 ir_expression*
 greater(operand a, operand b)
 {
-   return expr(ir_binop_greater, a, b);
+   return expr(ir_binop_less, b, a);
 }
 
 ir_expression*
 lequal(operand a, operand b)
 {
-   return expr(ir_binop_lequal, a, b);
+   return expr(ir_binop_gequal, b, a);
 }
 
 ir_expression*