From 197bc1ee07bb7dd6b6a7d95f44b631aa76fdbc2f Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 17 Jul 2023 17:21:00 +0200 Subject: [PATCH] r600/sfn: Increase LDS fetch schedule priority Otherwise we may end up scheduling the value read before the value fetch. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_scheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/r600/sfn/sfn_scheduler.cpp b/src/gallium/drivers/r600/sfn/sfn_scheduler.cpp index ef42d7813db..f2093fc69d6 100644 --- a/src/gallium/drivers/r600/sfn/sfn_scheduler.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_scheduler.cpp @@ -1001,6 +1001,8 @@ BlockScheduler::collect_ready_alu_vec(std::list& ready, if ((*i)->has_lds_access()) { priority = 100000; + if ((*i)->has_alu_flag(alu_is_lds)) + priority += 100000; } else if (addr) { priority = 10000; } else if (AluGroup::has_t()) {