pan/midgard: Don't try to propagate swizzles to branches
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 15 Oct 2019 20:10:08 +0000 (16:10 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 16 Oct 2019 01:41:12 +0000 (21:41 -0400)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_opt_copy_prop.c

index 8f6ff2ac7db494b7053a4b6f9ec00577688dfc6f..ad3a96d3c5da4514fdeabb07baebc9283e77262f 100644 (file)
@@ -62,9 +62,9 @@ midgard_opt_copy_prop(compiler_context *ctx, midgard_block *block)
                 mir_foreach_instr_global(ctx, q) {
                         bool is_tex = q->type == TAG_TEXTURE_4;
                         bool is_ldst = q->type == TAG_LOAD_STORE_4;
-                        bool is_writeout = q->compact_branch && q->writeout;
+                        bool is_branch = q->compact_branch;
 
-                        if (!(is_tex || is_ldst || is_writeout)) continue;
+                        if (!(is_tex || is_ldst || is_branch)) continue;
 
                         /* For textures, we get one real swizzle. For stores,
                          * we also get one. For loads, we get none. */