summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2020-08-10 20:28:34 -0700
committerMarge Bot <eric+marge@anholt.net>2020-08-11 14:38:34 +0000
commit678cb6d248f567468620079093ae4235c0a138cc (patch)
treeafe998673ae961a70587e71fdc809d63e6f25ec5
parent7b4c24eb679e248894751f30e2ea842dcf3f21f3 (diff)
nir: nir_range_analysis needs to be updated for vec16
Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6275>
-rw-r--r--src/compiler/nir/nir_range_analysis.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_range_analysis.c b/src/compiler/nir/nir_range_analysis.c
index 14f93061040..0793d67a02f 100644
--- a/src/compiler/nir/nir_range_analysis.c
+++ b/src/compiler/nir/nir_range_analysis.c
@@ -87,7 +87,10 @@ static struct ssa_result_range
analyze_constant(const struct nir_alu_instr *instr, unsigned src,
nir_alu_type use_type)
{
- uint8_t swizzle[4] = { 0, 1, 2, 3 };
+ uint8_t swizzle[NIR_MAX_VEC_COMPONENTS] = { 0, 1, 2, 3,
+ 4, 5, 6, 7,
+ 8, 9, 10, 11,
+ 12, 13, 14, 15 };
/* If the source is an explicitly sized source, then we need to reset
* both the number of components and the swizzle.