From 7fe3c145d9728480106e8c5b4e97b289104e50e8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 27 Apr 2020 14:18:41 -0400 Subject: [PATCH] pan/bi: Remove bi_round_op No purpose. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_print.c | 2 -- src/panfrost/bifrost/bifrost_compile.c | 4 ---- src/panfrost/bifrost/compiler.h | 6 ------ 3 files changed, 12 deletions(-) diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index b1ecc662ada..e67a1485780 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -352,8 +352,6 @@ bi_print_instruction(bi_instruction *ins, FILE *fp) fprintf(fp, "%s", ins->op.minmax == BI_MINMAX_MIN ? "min" : "max"); else if (ins->type == BI_BITWISE) fprintf(fp, "%s", bi_bitwise_op_name(ins->op.bitwise)); - else if (ins->type == BI_ROUND) - fprintf(fp, ins->op.round == BI_ROUND_MODE ? "roundMode": "round"); else if (ins->type == BI_SPECIAL) fprintf(fp, "%s", bi_special_op_name(ins->op.special)); else if (ins->type == BI_TABLE) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index a23a6121cce..c051b169af2 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -639,19 +639,15 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr) alu.cond = bi_cond_for_nir(instr->op, false); break; case nir_op_fround_even: - alu.op.round = BI_ROUND_MODE; alu.roundmode = BIFROST_RTE; break; case nir_op_fceil: - alu.op.round = BI_ROUND_MODE; alu.roundmode = BIFROST_RTP; break; case nir_op_ffloor: - alu.op.round = BI_ROUND_MODE; alu.roundmode = BIFROST_RTN; break; case nir_op_ftrunc: - alu.op.round = BI_ROUND_MODE; alu.roundmode = BIFROST_RTZ; break; default: diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 4b3d1c68e51..4178352f3a8 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -178,11 +178,6 @@ enum bi_bitwise_op { BI_BITWISE_XOR }; -enum bi_round_op { - BI_ROUND_MODE, /* use round mode */ - BI_ROUND_ROUND /* i.e.: fround() */ -}; - enum bi_table_op { /* fp32 log2() with low precision, suitable for GL or half_log2() in * CL. In the first argument, takes x. Letting u be such that x = @@ -273,7 +268,6 @@ typedef struct { union { enum bi_minmax_op minmax; enum bi_bitwise_op bitwise; - enum bi_round_op round; enum bi_special_op special; enum bi_reduce_op reduce; enum bi_table_op table; -- 2.30.2