diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-04-14 12:37:29 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-04-17 16:25:34 -0400 |
commit | e067fd7b00c5a9b4ab4b60c98315344d673f5239 (patch) | |
tree | 0535ee7f187c279c9d1eee4d2cbf32d11cf88056 /src/panfrost/bifrost/bi_print.c | |
parent | 40befaa96590bb8ce93af6c6db50f054dd021ebe (diff) |
pan/bi: Add log_frexpe op to IR
As part of BI_FREXP
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4615>
Diffstat (limited to 'src/panfrost/bifrost/bi_print.c')
-rw-r--r-- | src/panfrost/bifrost/bi_print.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index 2ce6e7c7158..5dc5947882e 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -281,6 +281,15 @@ bi_reduce_op_name(enum bi_reduce_op op) } } +const char * +bi_frexp_op_name(enum bi_frexp_op op) +{ + switch (op) { + case BI_FREXPE_LOG: return "frexpe_log"; + default: return "invalid"; + } +} + static void bi_print_load_vary(struct bi_load_vary *load, FILE *fp) { @@ -350,6 +359,8 @@ bi_print_instruction(bi_instruction *ins, FILE *fp) fprintf(fp, "%s", bi_table_op_name(ins->op.table)); else if (ins->type == BI_REDUCE_FMA) fprintf(fp, "%s", bi_reduce_op_name(ins->op.reduce)); + else if (ins->type == BI_FREXP) + fprintf(fp, "%s", bi_frexp_op_name(ins->op.frexp)); else if (ins->type == BI_CMP) fprintf(fp, "%s", bi_cond_name(ins->op.compare)); else |