From 9468f0729b1f826a8b8e84e4dea58d4a3bfe46af Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 30 Mar 2020 12:14:48 -0500 Subject: [PATCH] nir: Handle vec8/16 in nir_shrink_array_vars Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Tested-by: Marge Bot Part-of: --- src/compiler/nir/nir_split_vars.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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. */ -- 2.30.2