mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
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:
parent
6cc25b15a1
commit
fbded04e3b
2 changed files with 13 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue