From 3d9ffdcc729b77ecf26aa14436105782763be274 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sun, 25 Oct 2020 06:28:52 -0500 Subject: [PATCH] nir/lower_memcpy: Don't mask the store For constant-size memcpys, we can do as much as a vec4 at a time. We were accidentally masking the store to only the .x component. Fixes: a3177cca996145 "nir: Add a lowering pass to lower memcpy" Reviewed-by: Jesse Natalie Part-of: --- src/compiler/nir/nir_lower_memcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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