pan/bi: Don't lower FAU for phis
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 13 May 2022 21:56:02 +0000 (17:56 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:03:23 +0000 (16:03 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>

src/panfrost/bifrost/bi_schedule.c

index 1c79ff5..05c7f24 100644 (file)
@@ -2055,6 +2055,10 @@ bi_lower_fau(bi_context *ctx)
                         constants[cwords++] = ins->src[3].value;
                 }
 
+                /* Phis get split up into moves so are unrestricted */
+                if (ins->op == BI_OPCODE_PHI)
+                        continue;
+
                 bi_foreach_src(ins, s) {
                         if (bi_check_fau_src(ins, s, constants, &cwords, &fau)) continue;