mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 17:30:37 +02:00
r600/sfn: Take source uses into account when switching channels
When we switch the channels by re-creating vec4 values we have to
take into account that the source values may be used in an ALU op,
and with that we have to take read-port limitations into account.
Fixes: 18a8d148d8
r600/sfn: Cleanup copy-prop into vec4 source values
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24519>
This commit is contained in:
parent
bcfa71a6d0
commit
807c0d6bb7
1 changed files with 6 additions and 0 deletions
|
|
@ -592,6 +592,12 @@ CopyPropFwdVisitor::propagate_to(RegisterVec4& value, Instr *instr)
|
|||
allowed_mask &= alu->allowed_dest_chan_mask();
|
||||
}
|
||||
|
||||
for (auto u : src->uses()) {
|
||||
auto alu = u->as_alu();
|
||||
if (alu)
|
||||
allowed_mask &= alu->allowed_src_chan_mask();
|
||||
}
|
||||
|
||||
if (!allowed_mask)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue