From: Jason Ekstrand Date: Mon, 30 Mar 2020 17:14:48 +0000 (-0500) Subject: nir: Handle vec8/16 in nir_shrink_array_vars X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9468f0729b1f826a8b8e84e4dea58d4a3bfe46af;p=mesa.git nir: Handle vec8/16 in nir_shrink_array_vars Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Tested-by: Marge Bot Part-of: --- diff --git a/src/compiler/nir/nir_split_vars.c b/src/compiler/nir/nir_split_vars.c index 80536ac543a..5b46d072a7a 100644 --- a/src/compiler/nir/nir_split_vars.c +++ b/src/compiler/nir/nir_split_vars.c @@ -1166,9 +1166,7 @@ get_non_self_referential_store_comps(nir_intrinsic_instr *store) comps &= ~(1u << i); } } - } else if (src_alu->op == nir_op_vec2 || - src_alu->op == nir_op_vec3 || - src_alu->op == nir_op_vec4) { + } else if (nir_op_is_vec(src_alu->op)) { /* If it's a vec, discount any channels that are just loads from the * same deref put in the same spot. */