mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
pan/bi: Structify FMA ICMP 16
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
3d41468e7d
commit
ddcefefa7d
1 changed files with 8 additions and 0 deletions
|
|
@ -465,6 +465,14 @@ struct bifrost_fma_icmp32 {
|
||||||
unsigned op : 12;
|
unsigned op : 12;
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
struct bifrost_fma_icmp16 {
|
||||||
|
unsigned src0 : 3;
|
||||||
|
unsigned src1 : 3;
|
||||||
|
unsigned unk : 5; /* 11010 */
|
||||||
|
enum bifrost_icmp_cond cond : 3;
|
||||||
|
unsigned op : 9;
|
||||||
|
} __attribute__((packed));
|
||||||
|
|
||||||
/* Two sources for vectorization */
|
/* Two sources for vectorization */
|
||||||
#define BIFROST_FMA_FLOAT32_TO_16 (0xdd000 >> 3)
|
#define BIFROST_FMA_FLOAT32_TO_16 (0xdd000 >> 3)
|
||||||
#define BIFROST_ADD_FLOAT32_TO_16 (0x0EC00 >> 3)
|
#define BIFROST_ADD_FLOAT32_TO_16 (0x0EC00 >> 3)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue