From ddcefefa7d5ad9fc111ca17495c002a6802dcd95 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 28 Apr 2020 11:40:22 -0400 Subject: [PATCH] pan/bi: Structify FMA ICMP 16 Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index 40147e71b1b..5331da67835 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -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) -- 2.30.2