From ff98b1b51a6133282ac9a8ee5b3538418999992e Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 18 May 2020 20:34:06 +0200 Subject: [PATCH] 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: --- src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2