ir3/merge_regs: Set wrmask for pcopy destinations

This was wrong, and with spilling we can now create vector phi's in rare
circumstances.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12033>
This commit is contained in:
Connor Abbott
2021-07-23 11:47:49 +02:00
committed by Marge Bot
parent f59816b815
commit 4b0eba9cb1
+2 -1
View File
@@ -429,7 +429,8 @@ create_parallel_copy(struct ir3_block *block)
for (j = 0; j < phi_count; j++) {
struct ir3_register *reg = __ssa_dst(pcopy);
reg->flags |= src[j]->flags & (IR3_REG_HALF | IR3_REG_ARRAY);
reg->size = reg_elems(src[j]);
reg->size = src[j]->size;
reg->wrmask = src[j]->wrmask;
}
for (j = 0; j < phi_count; j++) {