Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package Mesa for openSUSE:Factory checked in 
at 2026-09-15 17:09:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/Mesa (Old)
 and      /work/SRC/openSUSE:Factory/.Mesa.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "Mesa"

Tue Sep 15 17:09:32 2026 rev:588 rq:1377909 version:26.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/Mesa/Mesa.changes        2026-09-07 
11:27:58.950178095 +0200
+++ /work/SRC/openSUSE:Factory/.Mesa.new.383539/Mesa.changes    2026-09-15 
17:10:17.468035854 +0200
@@ -1,0 +2,12 @@
+Thu Sep 10 07:43:05 UTC 2026 - Andreas Schwab <[email protected]>
+
+- llvm23.patch: fix build with LLVM 23
+
+-------------------------------------------------------------------
+Mon Sep  7 03:21:39 UTC 2026 - Gakuto Furuya <[email protected]>
+
+- Enable the rocket Gallium driver (Rockchip NPUs) on aarch64 and
+  build the Teflon TensorFlow Lite delegate; ship libteflon.so in
+  new subpackage Mesa-teflon-delegate
+
+-------------------------------------------------------------------

New:
----
  llvm23.patch

----------(New B)----------
  New:
- llvm23.patch: fix build with LLVM 23
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ Mesa.spec ++++++
--- /var/tmp/diff_new_pack.ES4noZ/_old  2026-09-15 17:10:20.644168779 +0200
+++ /var/tmp/diff_new_pack.ES4noZ/_new  2026-09-15 17:10:20.651169072 +0200
@@ -57,6 +57,7 @@
 %define with_rusticl 0
 %define with_vulkan 0
 %define with_llvm 0
+%define with_teflon 0
 
 %ifarch %{ix86} x86_64 %{arm} aarch64 loongarch64 ppc64 ppc64le riscv64
   %define gallium_loader 1
@@ -116,6 +117,14 @@
 %if 0%{?suse_version} >= 1550 && 0%{with_opencl}
   %define with_rusticl 1
 %endif
+  # TensorFlow Lite delegate (Teflon) for NPUs; needs an NPU-capable Gallium
+  # driver such as rocket (Rockchip NPUs, currently RK3588) or etnaviv
+  # (Vivante NPUs)
+  %ifarch aarch64
+    %if 0%{?suse_version} >= 1550
+    %define with_teflon 1
+    %endif
+  %endif
 %else
   # No llvm dependencies
   %define with_llvm 0
@@ -182,6 +191,7 @@
 Patch800:       u_d3d12.patch
 Patch1222041:   u_mesa-CVE-2023-45919.patch
 Patch1222042:   u_mesa-CVE-2023-45922.patch
+Patch10023:     llvm23.patch
 
 %ifarch %{ix86} x86_64
 BuildRequires:  DirectX-Headers >= 1.613.0
@@ -563,6 +573,17 @@
 acceleration on the Raspberry Pi to work. It is packaged separately
 since it is still experimental.
 
+%if 0%{with_teflon}
+%package -n Mesa-teflon-delegate
+Summary:        TensorFlow Lite delegate for NPUs supported by Mesa
+Group:          System/Libraries
+
+%description -n Mesa-teflon-delegate
+Teflon is an external TensorFlow Lite delegate (libteflon.so) which offloads
+supported subgraphs to NPUs driven by Mesa Gallium drivers, currently
+rocket for Rockchip NPUs and etnaviv for VeriSilicon Vivante NPUs.
+%endif
+
 %package -n libgbm1
 Summary:        Generic buffer management API
 Group:          System/Libraries
@@ -777,6 +798,7 @@
 %patch -P 800 -p1
 %patch -P 1222041 -p1
 %patch -P 1222042 -p1
+%patch -P 10023 -p1
 # Remove requires to vulkan libs from baselibs.conf on platforms
 # where vulkan build is disabled; ugly ...
 %if 0%{?with_vulkan} == 0
@@ -866,7 +888,7 @@
   %ifarch %{arm} aarch64
 %if 0%{?suse_version} >= 1550
           %ifarch aarch64
-            
-Dgallium-drivers=r300,r600,radeonsi,nouveau,softpipe,llvmpipe,virgl,iris,freedreno,vc4,etnaviv,lima,panfrost,v3d,svga,tegra,asahi,zink
 \
+            
-Dgallium-drivers=r300,r600,radeonsi,nouveau,softpipe,llvmpipe,virgl,iris,freedreno,vc4,etnaviv,lima,panfrost,v3d,svga,tegra,asahi,rocket,zink
 \
           %else
           %ifarch armv6l armv6hl
             
-Dgallium-drivers=r300,r600,radeonsi,nouveau,softpipe,llvmpipe,virgl,iris,freedreno,vc4,etnaviv,lima,v3d,svga,tegra,zink
 \
@@ -894,6 +916,9 @@
 %ifarch aarch64 x86_64 ppc64le s390x riscv64
             -Dvalgrind=enabled \
 %endif
+%if 0%{with_teflon}
+            -Dteflon=true \
+%endif
             -Db_ndebug=true \
             -Dc_args="%{optflags}" \
 %ifarch %ix86
@@ -1097,6 +1122,11 @@
 %{_libdir}/dri/vc4_dri.so
 %endif
 
+%if 0%{with_teflon}
+%files -n Mesa-teflon-delegate
+%{_libdir}/libteflon.so
+%endif
+
 # drivers
 %endif
 


++++++ llvm23.patch ++++++
>From 90f653e8521ac3ab58dc51d006ba35a0a42a44eb Mon Sep 17 00:00:00 2001
From: Andreas Schwab <[email protected]>
Date: Thu, 10 Sep 2026 09:36:06 +0200
Subject: [PATCH] llvm23

---
 src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp 
b/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp
index 9a02de3b945..7a1c305d4fb 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_init_orc.cpp
@@ -341,6 +341,11 @@ LPJit::LPJit() :jit_dylib_count(0) {
          .setJITTargetMachineBuilder(std::move(JTMB))
 #ifdef USE_JITLINK
          .setObjectLinkingLayerCreator(
+#if LLVM_VERSION_MAJOR >= 23
+            [&](ExecutionSession &ES, llvm::jitlink::JITLinkMemoryManager 
&MemMgr) {
+               return std::make_unique<ObjectLinkingLayer>(ES, MemMgr);
+            })
+#else
 #if LLVM_VERSION_MAJOR >= 21
             /* LLVM 21 removed the Triple argument */
             [&](ExecutionSession &ES) {
@@ -350,6 +355,7 @@ LPJit::LPJit() :jit_dylib_count(0) {
                return std::make_unique<ObjectLinkingLayer>(
                   ES, 
ExitOnErr(llvm::jitlink::InProcessMemoryManager::Create()));
             })
+#endif
 #else
 #if LLVM_USE_INTEL_JITEVENTS
          .RegisterJITEventListener(
-- 
2.55.0

Reply via email to