diff options
author | Connor Abbott <cwabbott0@gmail.com> | 2023-02-21 16:56:39 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-26 12:55:13 +0000 |
commit | 90dabe5a1831af92a7fce2b9f5a0253b68b3ab3f (patch) | |
tree | 2a0e0f40981cee083cbf41aead75cae0d82f581a | |
parent | 4937172534a71382cfc437b74ae80376ef65985c (diff) |
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>
-rw-r--r-- | src/freedreno/ir3/ir3_lower_parallelcopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3_lower_parallelcopy.c b/src/freedreno/ir3/ir3_lower_parallelcopy.c index 433f6442832..08d257cd7e0 100644 --- a/src/freedreno/ir3/ir3_lower_parallelcopy.c +++ b/src/freedreno/ir3/ir3_lower_parallelcopy.c @@ -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( |