Module: Mesa
Branch: main
Commit: 040a3ef24ed15aeea5678969294951a6f137984f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=040a3ef24ed15aeea5678969294951a6f137984f

Author: Alyssa Rosenzweig <[email protected]>
Date:   Tue May  3 16:47:27 2022 -0400

pan/va: Serialize memory stores

We could do better :(

Fixes spilling.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16314>

---

 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

Reply via email to