From a61b658d5fa5007113ce2c9dae030a6d00ebfc54 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sun, 14 Apr 2024 20:32:10 +0200 Subject: [PATCH] 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: ddb167e81a18c09bd3a4c519e8728e2842d827f1 r600/sfn: Handle indirect array load/store dependencies better Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_virtualvalues.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r600/sfn/sfn_virtualvalues.cpp b/src/gallium/drivers/r600/sfn/sfn_virtualvalues.cpp index 8f58f6ad269..173690c10fe 100644 --- a/src/gallium/drivers/r600/sfn/sfn_virtualvalues.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_virtualvalues.cpp @@ -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); }