pan/bi: Add constant field to bi_instruction
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 3 Mar 2020 12:47:29 +0000 (07:47 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Mar 2020 14:35:38 +0000 (14:35 +0000)
Now that we can index it.

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 12a30dc..299cff5 100644 (file)
@@ -127,6 +127,14 @@ typedef struct {
         unsigned dest;
         unsigned src[BIR_SRC_COUNT];
 
+        /* If one of the sources has BIR_INDEX_CONSTANT... */
+        union {
+                uint64_t u64;
+                uint32_t u32;
+                uint16_t u16[2];
+                uint8_t u8[4];
+        } constant;
+
         /* Floating-point modifiers, type/class permitting. If not
          * allowed for the type/class, these are ignored. */
         enum bifrost_outmod outmod;