aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-27 14:18:41 -0400
committerMarge Bot <[email protected]>2020-04-28 17:17:48 +0000
commit7fe3c145d9728480106e8c5b4e97b289104e50e8 (patch)
tree305388dbbdf2fe631bdd5aada0b05d7a553f3905 /src
parent95fc71ece29f97b093d5eb7d1146f1b55c61aae5 (diff)
pan/bi: Remove bi_round_op
No purpose. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4789>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/bifrost/bi_print.c2
-rw-r--r--src/panfrost/bifrost/bifrost_compile.c4
-rw-r--r--src/panfrost/bifrost/compiler.h6
3 files changed, 0 insertions, 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;