aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Khoruzhick <[email protected]>2020-03-10 01:11:11 -0700
committerMarge Bot <[email protected]>2020-03-11 07:36:45 +0000
commitc78e88e8a60fdc44cd5f95177a00aae480616559 (patch)
treed9aadd66cbe31e3f43d68f6cb8f148e15880f6ec
parent492ef353fb3e48e77469d7787d3fd2d3d8d9202d (diff)
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 <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4110> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4110>
-rw-r--r--src/gallium/drivers/lima/ir/gp/disasm.c6
1 files 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;