pan/bi: Add bitwise modifiers
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4790>
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index 4178352..0716cf3 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -214,6 +214,11 @@
BI_TEX_DUAL
};
+struct bi_bitwise {
+ bool src_invert[2];
+ bool rshift; /* false for lshift */
+};
+
typedef struct {
struct list_head link; /* Must be first */
enum bi_class type;
@@ -290,6 +295,8 @@
/* For BLEND -- the location 0-7 */
unsigned blend_location;
+
+ struct bi_bitwise bitwise;
};
} bi_instruction;