From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 01:40:52 +0000 (-0500) Subject: pan/bi: Add modifiers to bi_instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29acd7bd8e50ac83aeeb68471f516ed6525aae99;p=mesa.git pan/bi: Add modifiers to bi_instruction Now that we can check if we support them via the class. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 8e66eb07e02..6956a99665c 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -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 {