mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
4937172534
commit
90dabe5a18
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue