pan/bi: Remove bi_round_op

No purpose.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4789>
This commit is contained in:
Alyssa Rosenzweig 2020-04-27 14:18:41 -04:00 committed by Marge Bot
parent 95fc71ece2
commit 7fe3c145d9
3 changed files with 0 additions and 12 deletions

View File

@ -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)

View File

@ -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:

View File

@ -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;