Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21347>
uint8_t allowed_src_chan_mask() const override;
uint8_t allowed_dest_chan_mask() const {return m_allowed_desk_mask;}
+ void inc_ar_uses() { ++m_num_ar_uses;}
+ auto num_ar_uses() const {return m_num_ar_uses;}
+
private:
friend class AluGroup;
std::set<PRegister, std::less<PRegister>, Allocator<PRegister>> m_extra_dependencies;
AluGroup *m_parent_group{nullptr};
unsigned m_allowed_desk_mask{0xf};
+ unsigned m_num_ar_uses{0};
};
class AluInstrVisitor : public InstrVisitor {