diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-02 20:40:52 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-05 14:35:38 +0000 |
commit | 29acd7bd8e50ac83aeeb68471f516ed6525aae99 (patch) | |
tree | f573688e8a8a15e47312ca877b07137692af38a6 | |
parent | 7ac62121e037f3d9fbd3612d936ff736835e0b1f (diff) |
pan/bi: Add modifiers to bi_instruction
Now that we can check if we support them via the class.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
-rw-r--r-- | src/panfrost/bifrost/compiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 { |