r600/sfn: Fix printing ALU op without dest

e.g. GROUP_BARRIER doesn't have a dest.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
This commit is contained in:
Gert Wollny 2020-05-18 20:34:06 +02:00 committed by Marge Bot
parent 1124c3f1b6
commit ff98b1b51a

View file

@ -156,7 +156,8 @@ void AluInstruction::do_print(std::ostream& os) const
os << "ALU " << alu_ops.at(m_opcode).name; os << "ALU " << alu_ops.at(m_opcode).name;
if (m_flags.test(alu_dst_clamp)) if (m_flags.test(alu_dst_clamp))
os << "_CLAMP"; os << "_CLAMP";
os << ' ' << *m_dest << " : " ; if (m_dest)
os << ' ' << *m_dest << " : " ;
for (unsigned i = 0; i < m_src.size(); ++i) { for (unsigned i = 0; i < m_src.size(); ++i) {
int pflags = 0; int pflags = 0;