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:
parent
67238f95b5
commit
3d9ffdcc72
|
@ -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));
|
index = nir_i2i(b, index, nir_dest_bit_size(parent->dest));
|
||||||
assert(parent->deref_type == nir_deref_type_cast);
|
assert(parent->deref_type == nir_deref_type_cast);
|
||||||
deref = nir_build_deref_ptr_as_array(b, parent, index);
|
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
|
static void
|
||||||
|
|
Loading…
Reference in New Issue