diff options
author | Jason Ekstrand <[email protected]> | 2015-02-09 14:22:14 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-02-14 13:46:59 -0800 |
commit | 929f43851e669742081a17f85025efcb91189fbe (patch) | |
tree | b18e7b1ce090efeab34b3e1b2d14360560f4eefe /src/glsl/nir | |
parent | 7df256add2ae9fb916c3e0f80c879e42d1c8a7a0 (diff) |
nir/lower_phis_to_scalar: Fix some logic in is_phi_scalarizable
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/nir_lower_phis_to_scalar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/nir/nir_lower_phis_to_scalar.c b/src/glsl/nir/nir_lower_phis_to_scalar.c index 3bb5cc7ce34..7cd93ea0a53 100644 --- a/src/glsl/nir/nir_lower_phis_to_scalar.c +++ b/src/glsl/nir/nir_lower_phis_to_scalar.c @@ -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: |