ir3: Fix lowering shared parallel copies with immed src

We need to look at the destination to determine whether the copy should
be classed as shared, because the source may be an immediate.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22075>
This commit is contained in:
Connor Abbott
2023-02-21 16:56:39 +01:00
committed by Marge Bot
parent 4937172534
commit 90dabe5a18

View File

@@ -528,7 +528,7 @@ ir3_lower_copies(struct ir3_shader_variant *v)
for (unsigned i = 0; i < instr->dsts_count; i++) {
struct ir3_register *dst = instr->dsts[i];
struct ir3_register *src = instr->srcs[i];
unsigned flags = src->flags & (IR3_REG_HALF | IR3_REG_SHARED);
unsigned flags = dst->flags & (IR3_REG_HALF | IR3_REG_SHARED);
unsigned dst_physreg = ra_reg_get_physreg(dst);
for (unsigned j = 0; j < reg_elems(dst); j++) {
array_insert(