From 64ec757688c53fc1d850822657a3bcfa4202c86f Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 15 Oct 2025 15:31:34 +0100 Subject: [PATCH] nir/lower_mem_access_bit_sizes: increase chunk limit Not sure about creating u64vec16 loads, but creating unaligned loads is possible with opt_if_rewrite_uniform_uses. Signed-off-by: Rhys Perry Reviewed-by: Georg Lehmann Part-of: --- src/compiler/nir/nir_lower_mem_access_bit_sizes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_lower_mem_access_bit_sizes.c b/src/compiler/nir/nir_lower_mem_access_bit_sizes.c index a0b3940c8e9..d02add6287c 100644 --- a/src/compiler/nir/nir_lower_mem_access_bit_sizes.c +++ b/src/compiler/nir/nir_lower_mem_access_bit_sizes.c @@ -181,9 +181,9 @@ lower_mem_load(nir_builder *b, nir_intrinsic_instr *intrin, return false; /* Otherwise, we have to break it into chunks. We could end up with as - * many as 32 chunks if we're loading a u64vec16 as individual dwords. + * many as 128 chunks if we're loading a u64vec16 as individual bytes. */ - nir_def *chunks[32]; + nir_def *chunks[128]; unsigned num_chunks = 0; unsigned chunk_start = 0; while (chunk_start < bytes_read) {