r600/sfn: Add method to query whether an ALU group sets the predicate

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37096>
This commit is contained in:
Gert Wollny 2025-08-28 23:56:39 +02:00 committed by Marge Bot
parent 6cc25b15a1
commit fbded04e3b
2 changed files with 13 additions and 0 deletions

View file

@ -135,6 +135,17 @@ AluGroup::add_trans_instructions(AluInstr *instr)
return false;
}
bool
AluGroup::require_push() const
{
for (auto& i : m_slots) {
if (i)
if (i->cf_type() == cf_alu_push_before)
return true;
}
return false;
}
bool
AluGroup::add_vec_instructions(AluInstr *instr)
{

View file

@ -87,6 +87,8 @@ public:
AluGroup *as_alu_group() override { return this;}
bool require_push() const;
private:
bool update_readport_reserver_vec(int i, AluReadportReservation& readports_evaluator);
bool update_readport_reserver_trans(AluReadportReservation& readports_evaluator);