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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user