From c3a21fb0af3707fd5faa83136d0febbae1b2475e Mon Sep 17 00:00:00 2001 From: Ashley Smith Date: Fri, 11 Jul 2025 09:47:29 +0100 Subject: [PATCH] bi/va: Add instructions required for KHR_shader_atomic_int64 Add 64-bit atomic instructions for bifrost/valhall Reviewed-by: Mary Guillemard Reviewed-by: Eric R. Smith Signed-off-by: Ashley Smith Part-of: --- src/panfrost/compiler/bifrost/ISA.xml | 65 ++++++++++++++++++++++ src/panfrost/compiler/valhall/ISA.xml | 3 + src/panfrost/compiler/valhall/valhall.c.py | 3 - 3 files changed, 68 insertions(+), 3 deletions(-) diff --git a/src/panfrost/compiler/bifrost/ISA.xml b/src/panfrost/compiler/bifrost/ISA.xml index 4a080946822..4fc5d682187 100644 --- a/src/panfrost/compiler/bifrost/ISA.xml +++ b/src/panfrost/compiler/bifrost/ISA.xml @@ -8298,6 +8298,33 @@ + + + + + + + + aadd + + + + + + asmin + asmax + aumin + aumax + aand + aor + axor + axchg + acmpxchg + + + + + @@ -8310,6 +8337,20 @@ + + + + + + + ainc + adec + aumax1 + asmax1 + aor1 + + + @@ -8336,6 +8377,30 @@ + + + + + + + aadd + + + + + + asmin + asmax + aumin + aumax + aand + aor + axor + + + + + diff --git a/src/panfrost/compiler/valhall/ISA.xml b/src/panfrost/compiler/valhall/ISA.xml index 9708ea4caf9..6dd74f5e040 100644 --- a/src/panfrost/compiler/valhall/ISA.xml +++ b/src/panfrost/compiler/valhall/ISA.xml @@ -2508,7 +2508,10 @@ + + + diff --git a/src/panfrost/compiler/valhall/valhall.c.py b/src/panfrost/compiler/valhall/valhall.c.py index da4f2fcd913..f17704b7ae7 100644 --- a/src/panfrost/compiler/valhall/valhall.c.py +++ b/src/panfrost/compiler/valhall/valhall.c.py @@ -57,9 +57,6 @@ SKIP = set([ "RSHIFT_OR.i64", "LSHIFT_XOR.i64", "RSHIFT_XOR.i64", - "ATOM.i64", - "ATOM_RETURN.i64", - "ATOM1_RETURN.i64", # CLPER widens "CLPER.s32",