r600/sfn: simplify ALU scheduling failure handling

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945>
This commit is contained in:
Gert Wollny 2026-04-23 13:45:28 +02:00 committed by Marge Bot
parent 033dd489de
commit 81d359de55

View file

@ -627,12 +627,9 @@ BlockScheduler::fill_alu_group(Shader::ShaderBlocks& out_blocks,
return result;
}
auto failure = handle_alu_group_fill_failure(out_blocks, group, alu_ctx);
if (failure != AluGroupFillResult::failed)
return AluGroupFillResult::failed;
if (failure == AluGroupFillResult::scheduled)
return AluGroupFillResult::scheduled;
auto failure_type = handle_alu_group_fill_failure(out_blocks, group, alu_ctx);
if (failure_type != AluGroupFillResult::retry)
return failure_type;
free_slots = group.free_slot_mask();
}