Mesa (main): pan/va: Don't truncate slots

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 7 13:44:14 UTC 2022


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

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Wed Mar 30 16:02:03 2022 -0400

pan/va: Don't truncate slots

Causes BARRIER not to work.

Fixes: f45654af595 ("pan/va: Add packing routines")
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15756>

---

 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);
    }
 



More information about the mesa-commit mailing list