From 040a3ef24ed15aeea5678969294951a6f137984f Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 3 May 2022 16:47:27 -0400 Subject: [PATCH] pan/va: Serialize memory stores We could do better :( Fixes spilling. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/valhall/va_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/valhall/va_pack.c b/src/panfrost/bifrost/valhall/va_pack.c index fe8986f5382..5f37934692d 100644 --- a/src/panfrost/bifrost/valhall/va_pack.c +++ b/src/panfrost/bifrost/valhall/va_pack.c @@ -976,7 +976,7 @@ va_lower_flow_control(bi_context *ctx) /* We may need to wait */ if (I->op == BI_OPCODE_BARRIER) va_add_flow(ctx, I, VA_FLOW_WAIT); - else if (valhall_opcodes[I->op].nr_staging_dests > 0 || I->op == BI_OPCODE_BLEND) + else if (bi_opcode_props[I->op].message) va_add_flow(ctx, I, VA_FLOW_WAIT0); /* Lastly, we may need to reconverge. If we need reconvergence, it