Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21684>
return visitor2.success;
}
+void AluReadportReservation::print(std::ostream& os) const
+{
+ os << "AluReadportReservation\n";
+ for (int i = 0; i < max_chan_channels; ++i) {
+ os << " chan " << i << ":";
+ for (int j = 0; j < max_gpr_readports; ++j) {
+ os << m_hw_gpr[j][i] << " ";
+ }
+ os << "\n";
+ }
+ os << "\n";
+
+}
+
AluReadportReservation::AluReadportReservation()
{
for (int i = 0; i < max_chan_channels; ++i) {
static int cycle_vec(AluBankSwizzle swz, int src);
static int cycle_trans(AluBankSwizzle swz, int src);
+ void print(std::ostream& os) const;
+
static const int max_chan_channels = 4;
static const int max_gpr_readports = 3;
uint32_t m_nliterals{0};
};
+inline std::ostream&
+operator << (std::ostream& os, const AluReadportReservation& arp) {
+ arp.print(os);
+ return os;
+}
+
} // namespace r600
#endif // ALUREADPORTVALIDATION_H