r600/sfn: Add array element parent also to array

This is probably overdoing debendencies in many cases,
but it fixes a bug where scheduling goes wrong.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10984

Fixes: ddb167e81a
  r600/sfn: Handle indirect array load/store dependencies better

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28840>
This commit is contained in:
Gert Wollny 2024-04-14 20:32:10 +02:00 committed by Marge Bot
parent 04f232ed99
commit a61b658d5f
1 changed files with 1 additions and 0 deletions

View File

@ -1056,6 +1056,7 @@ LocalArrayValue::accept(ConstRegisterVisitor& vistor) const
void
LocalArrayValue::add_parent_to_array(Instr *instr)
{
m_array.add_parent(instr);
if (m_addr)
m_array.add_parent_to_elements(chan(), instr);
}