From: Rob Clark Date: Thu, 27 Jun 2019 15:24:32 +0000 (-0700) Subject: freedreno/ir3: fix missing (ss) in dummy bary.f case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=016a9ab2f93f9b6efb28c6bd168e96f5c9feb080;p=mesa.git freedreno/ir3: fix missing (ss) in dummy bary.f case In case we need to insert a dummy bary.f for the (ei) flag, it also needs (ss) so we don't release varying storage to the next VS wave before the ldlv completed. Fixes random failures in: dEQP-GLES3.functional.transform_feedback.random.interleaved.lines.* Signed-off-by: Rob Clark Reviewed-by: Eric Anholt Reviewed-by: Kristian H. Kristensen --- diff --git a/src/freedreno/ir3/ir3_legalize.c b/src/freedreno/ir3/ir3_legalize.c index c39b3a11011..e1ca1ada2c5 100644 --- a/src/freedreno/ir3/ir3_legalize.c +++ b/src/freedreno/ir3/ir3_legalize.c @@ -306,6 +306,11 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block) list_add(&baryf->node, &last_input->node); last_input = baryf; + + /* by definition, we need (ss) since we are inserting + * the dummy bary.f immediately after the ldlv: + */ + last_input_needs_ss = true; } last_input->regs[0]->flags |= IR3_REG_EI; if (last_input_needs_ss)