r600/sfn: Don't override a chgr pinning during copy propagation

Fixes: c0b6c59e0 (r600/sfn: Copy propagate into TEX source)
Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9998

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25741>
This commit is contained in:
Gert Wollny 2023-10-15 21:56:04 +02:00 committed by Marge Bot
parent 7fb561eff2
commit e9c21952aa

View file

@ -640,7 +640,8 @@ CopyPropFwdVisitor::propagate_to(RegisterVec4& value, Instr *instr)
value.set_value(i, new_src[i]);
if (new_src[i]->pin() != pin_fully) {
if (new_src[i]->pin() != pin_fully &&
new_src[i]->pin() != pin_chgr) {
if (new_src[i]->pin() == pin_chan)
new_src[i]->set_pin(pin_chgr);
else