mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
pan/bi: Structify FMA FCMP
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:
parent
7fe3c145d9
commit
c861292ce2
1 changed files with 21 additions and 0 deletions
|
|
@ -387,6 +387,27 @@ struct bifrost_shift_add {
|
|||
unsigned op : 7;
|
||||
} __attribute__((packed));
|
||||
|
||||
enum bifrost_fcmp_cond {
|
||||
BIFROST_OEQ = 0,
|
||||
BIFROST_OGT = 1,
|
||||
BIFROST_OGE = 2,
|
||||
BIFROST_UNE = 3,
|
||||
BIFROST_OLT = 4,
|
||||
BIFROST_OLE = 5,
|
||||
};
|
||||
|
||||
struct bifrost_fma_fcmp {
|
||||
unsigned src0 : 3;
|
||||
unsigned src1 : 3;
|
||||
unsigned src1_abs : 1;
|
||||
unsigned unk1 : 1;
|
||||
unsigned src1_neg : 1;
|
||||
unsigned src_expand : 3;
|
||||
unsigned src0_abs : 1;
|
||||
enum bifrost_fcmp_cond cond : 3;
|
||||
unsigned op : 7;
|
||||
} __attribute__((packed));
|
||||
|
||||
/* Two sources for vectorization */
|
||||
#define BIFROST_FMA_FLOAT32_TO_16 (0xdd000 >> 3)
|
||||
#define BIFROST_ADD_FLOAT32_TO_16 (0x0EC00 >> 3)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue