nir/vtn: Use return type rather than image type for tex ops
[mesa.git] / src / compiler / glsl / ir_builder.cpp
index 8d61533efcfad9a833381acaaf6443a860a6d6bd..416d8c71ed1cad3aed19054469d2fe42c1792ffe 100644 (file)
@@ -371,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*