diff --git a/src/compiler/nir/nir_lower_memcpy.c b/src/compiler/nir/nir_lower_memcpy.c index ab2914485f6..9ffb3bfa1d5 100644 --- a/src/compiler/nir/nir_lower_memcpy.c +++ b/src/compiler/nir/nir_lower_memcpy.c @@ -74,7 +74,7 @@ memcpy_store_deref_elem(nir_builder *b, nir_deref_instr *parent, index = nir_i2i(b, index, nir_dest_bit_size(parent->dest)); assert(parent->deref_type == nir_deref_type_cast); deref = nir_build_deref_ptr_as_array(b, parent, index); - nir_store_deref(b, deref, value, 1); + nir_store_deref(b, deref, value, ~0); } static void