mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
pan/bi: Add _MSCALE flag for FMA/ADD
So we can bias by exponents. 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
d3643cdd81
commit
4570c34fc7
2 changed files with 6 additions and 0 deletions
|
|
@ -366,6 +366,9 @@ bi_print_instruction(bi_instruction *ins, FILE *fp)
|
|||
else
|
||||
fprintf(fp, "%s", bi_class_name(ins->type));
|
||||
|
||||
if ((ins->type == BI_ADD || ins->type == BI_FMA) && ins->op.mscale)
|
||||
fprintf(fp, ".mscale");
|
||||
|
||||
if (ins->type == BI_MINMAX)
|
||||
fprintf(fp, "%s", bi_minmax_mode_name(ins->minmax));
|
||||
else if (ins->type == BI_LOAD_VAR)
|
||||
|
|
|
|||
|
|
@ -275,6 +275,9 @@ typedef struct {
|
|||
enum bi_table_op table;
|
||||
enum bi_frexp_op frexp;
|
||||
enum bi_cond compare;
|
||||
|
||||
/* For FMA/ADD, should we add a biased exponent? */
|
||||
bool mscale;
|
||||
} op;
|
||||
|
||||
/* Union for class-specific information */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue