From: Vasily Khoruzhick Date: Tue, 10 Mar 2020 08:11:11 +0000 (-0700) Subject: lima/gpir: print acc ops even if we have only one source X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c78e88e8a60fdc44cd5f95177a00aae480616559;p=mesa.git 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: --- 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;