From: Alyssa Rosenzweig Date: Fri, 30 Aug 2019 17:45:08 +0000 (-0700) Subject: pan/midgard: Extend mir_special_index to writeout X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5377d702925a8a48d93d324c1a05313afad2e70a;p=mesa.git 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 --- 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))