pan/bi: Add modifiers to bi_instruction
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 3 Mar 2020 01:40:52 +0000 (20:40 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Mar 2020 14:35:38 +0000 (14:35 +0000)
Now that we can check if we support them via the class.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>

src/panfrost/bifrost/compiler.h

index 8e66eb07e02c1217398b7048f9630ef3104397fc..6956a99665c8c64735402ecfaf469c485f81a6b6 100644 (file)
@@ -27,6 +27,7 @@
 #ifndef __BIFROST_COMPILER_H
 #define __BIFROST_COMPILER_H
 
+#include "bifrost.h"
 #include "compiler/nir/nir.h"
 
 /* Bifrost opcodes are tricky -- the same op may exist on both FMA and
@@ -88,6 +89,12 @@ typedef struct {
          * to "no argument" */
         unsigned dest;
         unsigned src[BIR_SRC_COUNT];
+
+        /* Floating-point modifiers, type/class permitting. If not
+         * allowed for the type/class, these are ignored. */
+        enum bifrost_outmod outmod;
+        bool src_abs[BIR_SRC_COUNT];
+        bool src_neg[BIR_SRC_COUNT];
 } bi_instruction;
 
 typedef struct {