nir/glsl: Fix copy-n-paste mistakes from commit 213f864.
authorMatt Turner <mattst88@gmail.com>
Sun, 15 Nov 2015 01:47:33 +0000 (17:47 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 16 Nov 2015 17:05:53 +0000 (09:05 -0800)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/glsl_to_nir.cpp

index 38b8390ad36c4202023791f91972477933282ac5..6d24341ce01854381c208904ac1456691cfe65f3 100644 (file)
@@ -1533,9 +1533,9 @@ nir_visitor::visit(ir_expression *ir)
       result = supports_ints ? nir_ior(&b, srcs[0], srcs[1])
                              : nir_for(&b, srcs[0], srcs[1]);
       break;
-   case ir_binop_logic_xor: result = nir_ixor(&b, srcs[0], srcs[1]); break;
-      result = supports_ints ? nir_ior(&b, srcs[0], srcs[1])
-                             : nir_for(&b, srcs[0], srcs[1]);
+   case ir_binop_logic_xor:
+      result = supports_ints ? nir_ixor(&b, srcs[0], srcs[1])
+                             : nir_fxor(&b, srcs[0], srcs[1]);
       break;
    case ir_binop_lshift: result = nir_ishl(&b, srcs[0], srcs[1]); break;
    case ir_binop_rshift: