From 7db36d94affabd69aaafb2e5f5cdcc12afd1ea74 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 15 Oct 2019 16:10:08 -0400 Subject: [PATCH] pan/midgard: Don't try to propagate swizzles to branches Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/midgard_opt_copy_prop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/midgard/midgard_opt_copy_prop.c b/src/panfrost/midgard/midgard_opt_copy_prop.c index 8f6ff2ac7db..ad3a96d3c5d 100644 --- a/src/panfrost/midgard/midgard_opt_copy_prop.c +++ b/src/panfrost/midgard/midgard_opt_copy_prop.c @@ -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. */ -- 2.30.2