From: Alyssa Rosenzweig Date: Tue, 15 Oct 2019 20:10:08 +0000 (-0400) Subject: pan/midgard: Don't try to propagate swizzles to branches X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7db36d94affabd69aaafb2e5f5cdcc12afd1ea74;p=mesa.git pan/midgard: Don't try to propagate swizzles to branches Signed-off-by: Alyssa Rosenzweig --- 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. */