nir/lower_phis_to_scalar: Fix some logic in is_phi_scalarizable
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 9 Feb 2015 22:22:14 +0000 (14:22 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 14 Feb 2015 21:46:59 +0000 (13:46 -0800)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir_lower_phis_to_scalar.c

index 3bb5cc7ce34657987ea2a262e53fedaab1d182ef..7cd93ea0a538fb5e45444f44e53d92d0967d7ab6 100644 (file)
@@ -65,9 +65,9 @@ is_phi_src_scalarizable(nir_phi_src *src,
        * are ok too.
        */
       return nir_op_infos[src_alu->op].output_size == 0 ||
-             src_alu->op != nir_op_vec2 ||
-             src_alu->op != nir_op_vec3 ||
-             src_alu->op != nir_op_vec4;
+             src_alu->op == nir_op_vec2 ||
+             src_alu->op == nir_op_vec3 ||
+             src_alu->op == nir_op_vec4;
    }
 
    case nir_instr_type_phi: