From 4f5e0e18745e978c7236a70784507feee453847b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 30 Mar 2022 16:02:03 -0400 Subject: [PATCH] pan/va: Don't truncate slots Causes BARRIER not to work. Fixes: f45654af595 ("pan/va: Add packing routines") 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 17e897a841a..553bff7d318 100644 --- a/src/panfrost/bifrost/valhall/va_pack.c +++ b/src/panfrost/bifrost/valhall/va_pack.c @@ -617,7 +617,7 @@ va_pack_instr(const bi_instr *I, unsigned flow) hex |= ((uint64_t) va_select_fau_page(I)) << 57; if (info.slot) { - unsigned slot = (I->op == BI_OPCODE_BARRIER) ? 7 : 0; + uint64_t slot = (I->op == BI_OPCODE_BARRIER) ? 7 : 0; hex |= (slot << 30); }