pan/bi: Add constant field to bi_instruction

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>
This commit is contained in:
Alyssa Rosenzweig 2020-03-03 07:47:29 -05:00 committed by Marge Bot
parent a2c1265dd3
commit b5bdd89444
1 changed files with 8 additions and 0 deletions

View 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;