mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
pan/bi: Add log_frexpe op to IR
As part of BI_FREXP Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4615>
This commit is contained in:
parent
40befaa965
commit
e067fd7b00
3 changed files with 17 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ const char * bi_cond_name(enum bi_cond cond);
|
|||
const char * bi_special_op_name(enum bi_special_op op);
|
||||
const char * bi_table_op_name(enum bi_table_op op);
|
||||
const char * bi_reduce_op_name(enum bi_reduce_op op);
|
||||
const char * bi_frexp_op_name(enum bi_frexp_op op);
|
||||
|
||||
void bi_print_instruction(bi_instruction *ins, FILE *fp);
|
||||
void bi_print_bundle(bi_bundle *bundle, FILE *fp);
|
||||
|
|
|
|||
|
|
@ -200,6 +200,10 @@ enum bi_reduce_op {
|
|||
BI_REDUCE_ADD_FREXPM,
|
||||
};
|
||||
|
||||
enum bi_frexp_op {
|
||||
BI_FREXPE_LOG,
|
||||
};
|
||||
|
||||
enum bi_special_op {
|
||||
BI_SPECIAL_FRCP,
|
||||
BI_SPECIAL_FRSQ,
|
||||
|
|
@ -269,6 +273,7 @@ typedef struct {
|
|||
enum bi_special_op special;
|
||||
enum bi_reduce_op reduce;
|
||||
enum bi_table_op table;
|
||||
enum bi_frexp_op frexp;
|
||||
enum bi_cond compare;
|
||||
} op;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue