r600/sfn/tests: Update source pinning when loading from string

Results of TEX and FETCH are pinned to group automatically when
creating instructions from string. With the new scheduling code
the channel pinning might be added and this needs to be handled
when reading the expectation shaders.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36921>
This commit is contained in:
Gert Wollny 2025-08-21 14:38:25 +02:00 committed by Marge Bot
parent d9b388af27
commit 7de75bafc6

View file

@ -778,6 +778,13 @@ ValueFactory::src_from_string(const std::string& s)
}
return array->element(offset, addr, chan - array->frac());
} else {
auto old_pin = ireg->second->pin();
if (old_pin != p) {
if ((old_pin == pin_group && p == pin_chgr) ||
((old_pin == pin_free || old_pin == pin_none) &&
(p == pin_chan || p == pin_group)))
ireg->second->set_pin(p);
}
return ireg->second;
}
} else {