From: Matt Turner Date: Sun, 15 Nov 2015 01:47:33 +0000 (-0800) Subject: nir/glsl: Fix copy-n-paste mistakes from commit 213f864. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d564b5b58e8955f807e330364ff534ce57c99d8c;p=mesa.git nir/glsl: Fix copy-n-paste mistakes from commit 213f864. Reviewed-by: Connor Abbott --- diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index 38b8390ad36..6d24341ce01 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -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: