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: a3177cca99 "nir: Add a lowering pass to lower memcpy"
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7305>
This commit is contained in:
Jason Ekstrand 2020-10-25 06:28:52 -05:00 committed by Marge Bot
parent 67238f95b5
commit 3d9ffdcc72
1 changed files with 1 additions and 1 deletions

View File

@ -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