summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-10-15 16:10:08 -0400
committerAlyssa Rosenzweig <[email protected]>2019-10-15 21:41:12 -0400
commit7db36d94affabd69aaafb2e5f5cdcc12afd1ea74 (patch)
tree579c9f34ac593c56be797a63d24224e64884689c /src
parent9c0915ba4ac3c813056124ca59c87be9c89ef1c6 (diff)
pan/midgard: Don't try to propagate swizzles to branches
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/midgard/midgard_opt_copy_prop.c4
1 files 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. */