pan/bi: Add bifrost_fma_2src generic
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 28 Mar 2020 00:07:43 +0000 (20:07 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 31 Mar 2020 01:12:26 +0000 (01:12 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4382>

src/panfrost/bifrost/bifrost.h

index 1c06968d70a26dafbce1625af3366de7a3000a09..045295b69658fd0281fe6c08dee2d5e52e04816f 100644 (file)
@@ -103,6 +103,12 @@ struct bifrost_fma_inst {
         unsigned op   : 20;
 } __attribute__((packed));
 
+struct bifrost_fma_2src {
+        unsigned src0 : 3;
+        unsigned src1 : 3;
+        unsigned op   : 17;
+} __attribute__((packed));
+
 #define BIFROST_ADD_OP_BLEND (0x1952c)
 
 struct bifrost_add_inst {