pan/bi: Implement nir_op_bcsel
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 10 Mar 2020 12:32:56 +0000 (08:32 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 19:25:59 +0000 (19:25 +0000)
No condition fusing yet.

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

src/panfrost/bifrost/bifrost_compile.c

index 0825e55caf646584caa9c131b208439175e3fe3a..f2529e52a09919e01997265e99ee3b0389eefc50 100644 (file)
@@ -237,6 +237,9 @@ bi_class_for_nir_alu(nir_op op)
         case nir_op_isub:
                 return BI_ISUB;
 
+        case nir_op_bcsel:
+                return BI_CSEL;
+
         case nir_op_i2i8:
         case nir_op_i2i16:
         case nir_op_i2i32: