diff options
author | Jason Ekstrand <[email protected]> | 2020-03-30 12:14:48 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-31 00:18:05 +0000 |
commit | 9468f0729b1f826a8b8e84e4dea58d4a3bfe46af (patch) | |
tree | 678b71c35f57989d176c7f6d5577426cc0fed939 | |
parent | c26bf848ba7c5474ac99ffbe942021d8841e53ed (diff) |
nir: Handle vec8/16 in nir_shrink_array_vars
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>
-rw-r--r-- | src/compiler/nir/nir_split_vars.c | 4 |
1 files changed, 1 insertions, 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. */ |