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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user