pan/bi: Add CSEL condition
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 5 Mar 2020 12:46:00 +0000 (07:46 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Mar 2020 14:35:38 +0000 (14:35 +0000)
Along with src_types, this is enough to represent CSEL.

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 5da5b6d20a4dc2227512bd04d5538f2ecae6d6f8..4d9ab0789b8859b8d26bf24cb717c3ee51c3712e 100644 (file)
@@ -234,6 +234,10 @@ typedef struct {
                 struct bi_load load;
                 struct bi_load_vary load_vary;
                 struct bi_branch branch;
+
+                /* For CSEL, the comparison op. BI_COND_ALWAYS doesn't make
+                 * sense here but you can always just use a move for that */
+                enum bi_cond csel_cond;
         };
 } bi_instruction;