[Mesa-dev] [PATCH 41/47] glsl: Add a lowering pass for 64-bit float nequal()

Elie Tournier tournier.elie at gmail.com
Wed Aug 23 11:08:11 UTC 2017


Signed-off-by: Elie Tournier <elie.tournier at collabora.com>
---
 src/compiler/glsl/lower_64bit.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/compiler/glsl/lower_64bit.cpp b/src/compiler/glsl/lower_64bit.cpp
index f9e565600b..441440d729 100644
--- a/src/compiler/glsl/lower_64bit.cpp
+++ b/src/compiler/glsl/lower_64bit.cpp
@@ -419,7 +419,8 @@ lower_64bit::lower_op_to_function_call(ir_instruction *base_ir,
 
       if (ir->operation == ir_unop_d2b ||
           ir->operation == ir_binop_gequal ||
-          ir->operation == ir_binop_greater)
+          ir->operation == ir_binop_greater ||
+          ir->operation == ir_binop_nequal)
          body.emit(assign(dst[i], logic_not(dst[i])));
    }
 
@@ -612,6 +613,7 @@ lower_64bit_visitor::handle_rvalue(ir_rvalue **rvalue)
       }
       break;
 
+   case ir_binop_nequal:
    case ir_binop_equal:
       if (lowering(EQ64)) {
          if (ir->operands[0]->type->base_type == GLSL_TYPE_DOUBLE)
-- 
2.14.1



More information about the mesa-dev mailing list