diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-04-27 14:38:18 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-28 17:17:48 +0000 |
commit | c861292ce20a202d0c18b04257ce55472a89767d (patch) | |
tree | 4d07f07e5220982de87c975812f4303d2a3c1ac7 /src | |
parent | 7fe3c145d9728480106e8c5b4e97b289104e50e8 (diff) |
pan/bi: Structify FMA FCMP
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4789>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/bifrost/bifrost.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index 4262e0e90d4..43da29431d4 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -387,6 +387,27 @@ struct bifrost_shift_add { unsigned op : 7; } __attribute__((packed)); +enum bifrost_fcmp_cond { + BIFROST_OEQ = 0, + BIFROST_OGT = 1, + BIFROST_OGE = 2, + BIFROST_UNE = 3, + BIFROST_OLT = 4, + BIFROST_OLE = 5, +}; + +struct bifrost_fma_fcmp { + unsigned src0 : 3; + unsigned src1 : 3; + unsigned src1_abs : 1; + unsigned unk1 : 1; + unsigned src1_neg : 1; + unsigned src_expand : 3; + unsigned src0_abs : 1; + 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) |