From 5377d702925a8a48d93d324c1a05313afad2e70a Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 30 Aug 2019 10:45:08 -0700 Subject: [PATCH] pan/midgard: Extend mir_special_index to writeout The branch has the writeout specified in its source list, making this special even if it's not explicitly part of r0. Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/mir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c index ff552397bf8..9ecd2b7bab1 100644 --- a/src/panfrost/midgard/mir.c +++ b/src/panfrost/midgard/mir.c @@ -318,8 +318,9 @@ mir_special_index(compiler_context *ctx, unsigned idx) mir_foreach_instr_global(ctx, ins) { bool is_ldst = ins->type == TAG_LOAD_STORE_4; bool is_tex = ins->type == TAG_TEXTURE_4; + bool is_writeout = ins->compact_branch && ins->writeout; - if (!(is_ldst || is_tex)) + if (!(is_ldst || is_tex || is_writeout)) continue; if (mir_has_arg(ins, idx)) -- 2.30.2