From b5bdd894443507964cad63b40c0c598d115c7333 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 07:47:29 -0500 Subject: [PATCH] pan/bi: Add constant field to bi_instruction Now that we can index it. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/compiler.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 12a30dc9782..299cff5b017 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -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;