Module: Mesa
Branch: main
Commit: c69ca8c5c1ff2b19f520e4313ae6682887884ae2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c69ca8c5c1ff2b19f520e4313ae6682887884ae2

Author: Jesse Natalie <[email protected]>
Date:   Mon Nov 20 09:55:47 2023 -0800

nir_lower_mem_access_bit_sizes: Fix assert (bit -> byte size)

Reviewed-By: Sil Vilerino <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26293>

---

 src/compiler/nir/nir_lower_mem_access_bit_sizes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 c0b693a8b56..63f755a55c9 100644
--- a/src/compiler/nir/nir_lower_mem_access_bit_sizes.c
+++ b/src/compiler/nir/nir_lower_mem_access_bit_sizes.c
@@ -294,7 +294,7 @@ lower_mem_store(nir_builder *b, nir_intrinsic_instr *intrin,
       if (chunk_align < requested.align ||
           chunk_bytes > max_chunk_bytes) {
          /* Otherwise the caller made a mistake with their return values. */
-         assert(chunk_bytes <= 32);
+         assert(chunk_bytes <= 4);
          assert(allow_unaligned_stores_as_atomics);
 
          /* We'll turn this into a pair of 32-bit atomics to modify only the 
right

Reply via email to