From: Gert Wollny Date: Mon, 18 May 2020 18:34:06 +0000 (+0200) Subject: r600/sfn: Fix printing ALU op without dest X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff98b1b51a6133282ac9a8ee5b3538418999992e;p=mesa.git r600/sfn: Fix printing ALU op without dest e.g. GROUP_BARRIER doesn't have a dest. Signed-off-by: Gert Wollny Reviewed-by: Reviewed-by: Dave Airlie Part-of: --- diff --git a/src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp b/src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp index c059749afd0..9569c31a668 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp @@ -156,7 +156,8 @@ void AluInstruction::do_print(std::ostream& os) const os << "ALU " << alu_ops.at(m_opcode).name; if (m_flags.test(alu_dst_clamp)) os << "_CLAMP"; - os << ' ' << *m_dest << " : " ; + if (m_dest) + os << ' ' << *m_dest << " : " ; for (unsigned i = 0; i < m_src.size(); ++i) { int pflags = 0;