From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 12:47:29 +0000 (-0500) Subject: pan/bi: Add constant field to bi_instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5bdd894443507964cad63b40c0c598d115c7333;p=mesa.git pan/bi: Add constant field to bi_instruction Now that we can index it. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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;