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:
Alyssa Rosenzweig
2020-04-28 11:40:22 -04:00
committed by Marge Bot
parent 3d41468e7d
commit ddcefefa7d
+8
View File
@@ -465,6 +465,14 @@ struct bifrost_fma_icmp32 {
unsigned op : 12;
} __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 */
#define BIFROST_FMA_FLOAT32_TO_16 (0xdd000 >> 3)
#define BIFROST_ADD_FLOAT32_TO_16 (0x0EC00 >> 3)