From 74795dd3284772b8491683e66de83839880a964d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 28 Apr 2020 10:23:46 -0400 Subject: [PATCH] pan/bi: Structify FMA FCMP16 Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index da278124751..ec575fa856e 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -419,6 +419,21 @@ struct bifrost_add_fcmp { unsigned op : 6; } __attribute__((packed)); +struct bifrost_fma_fcmp16 { + unsigned src0 : 3; + unsigned src1 : 3; + + /* abs2 inferred */ + unsigned abs1 : 1; + unsigned unk : 2; + + unsigned src0_swizzle : 2; + unsigned src1_swizzle : 2; + + 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) -- 2.30.2