From: Alyssa Rosenzweig Date: Tue, 28 Apr 2020 15:37:42 +0000 (-0400) Subject: pan/bi: Structify FMA ICMP 32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d41468e7df4486a4666e93439f52e0fab467438;p=mesa.git pan/bi: Structify FMA ICMP 32 Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index 38cd173a80c..40147e71b1b 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -448,6 +448,23 @@ struct bifrost_add_fcmp16 { unsigned op : 6; } __attribute__((packed)); +enum bifrost_icmp_cond { + BIFROST_ICMP_IGT = 0, + BIFROST_ICMP_IGE = 1, + BIFROST_ICMP_UGT = 2, + BIFROST_ICMP_UGE = 3, + BIFROST_ICMP_EQ = 4, +}; + +struct bifrost_fma_icmp32 { + unsigned src0 : 3; + unsigned src1 : 3; + enum bifrost_icmp_cond cond : 3; + unsigned unk1 : 1; /* set */ + unsigned d3d : 1; + unsigned op : 12; +} __attribute__((packed)); + /* Two sources for vectorization */ #define BIFROST_FMA_FLOAT32_TO_16 (0xdd000 >> 3) #define BIFROST_ADD_FLOAT32_TO_16 (0x0EC00 >> 3)