mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +01:00
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:
parent
d9b388af27
commit
7de75bafc6
1 changed files with 7 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue