aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2020-05-18 20:34:06 +0200
committerMarge Bot <[email protected]>2020-05-19 07:52:14 +0000
commitff98b1b51a6133282ac9a8ee5b3538418999992e (patch)
tree3e70f4c764bd0c6d8d50921bd55c966b29a9358f /src/gallium/drivers/r600
parent1124c3f1b629d3fa0d31dea8601aadd72a3339e0 (diff)
r600/sfn: Fix printing ALU op without dest
e.g. GROUP_BARRIER doesn't have a dest. Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp3
1 files changed, 2 insertions, 1 deletions
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;