From c78e88e8a60fdc44cd5f95177a00aae480616559 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Tue, 10 Mar 2020 01:11:11 -0700 Subject: [PATCH] lima/gpir: print acc ops even if we have only one source floor and sign have only one source, so we need to print acc ops even if src1 is unused. Reviewed-by: Andreas Baierl Signed-off-by: Vasily Khoruzhick Tested-by: Marge Bot Part-of: --- src/gallium/drivers/lima/ir/gp/disasm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/lima/ir/gp/disasm.c b/src/gallium/drivers/lima/ir/gp/disasm.c index 87fdded3f2d..bc0ce3bec4d 100644 --- a/src/gallium/drivers/lima/ir/gp/disasm.c +++ b/src/gallium/drivers/lima/ir/gp/disasm.c @@ -398,8 +398,7 @@ print_acc(gpir_codegen_instr *instr, gpir_codegen_instr *prev_instr, bool printed = false; const acc_op_info op = acc_op_infos[instr->acc_op]; - if (instr->acc0_src0 != gpir_codegen_src_unused && - instr->acc0_src1 != gpir_codegen_src_unused) { + if (instr->acc0_src0 != gpir_codegen_src_unused) { printed = true; printf("\t"); acc_op_info acc0_op = op; @@ -432,8 +431,7 @@ print_acc(gpir_codegen_instr *instr, gpir_codegen_instr *prev_instr, printf("\n"); } - if (instr->acc1_src0 != gpir_codegen_src_unused && - instr->acc1_src1 != gpir_codegen_src_unused) { + if (instr->acc1_src0 != gpir_codegen_src_unused) { printed = true; printf("\t"); acc_op_info acc1_op = op; -- 2.30.2