pan/bi: Add bifrost_minmax_mode field
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 3 Mar 2020 01:53:47 +0000 (20:53 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Mar 2020 14:35:38 +0000 (14:35 +0000)
We'll open up a union for class specific data, since this is interesting
only to BI_MINMAX. (And even then...)

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>

src/panfrost/bifrost/compiler.h

index 421db9afb7f844c5deb88ea6ae3f5626d83d914e..97c6d062bde8a80dec384f9a8882ced2e0467438 100644 (file)
@@ -106,6 +106,11 @@ typedef struct {
 
         /* Round mode (requires BI_ROUNDMODE) */
         enum bifrost_roundmode roundmode;
+
+        /* Union for class-specific information */
+        union {
+                enum bifrost_minmax_mode minmax;
+        };
 } bi_instruction;
 
 typedef struct {