Timo Aaltonen pushed to branch debian-experimental at X Strike Force / lib / 
mesa


Commits:
d64846be by Christopher Obbard at 2022-11-04T09:12:25+00:00
Package rusticl as mesa-opencl-icd

Mesa 22.3 provides a new OpenCL implementation called rusticl;
written in Rust. It is a modern alternative to the "Clover" OpenCL
implementation. To be clear, Rust is only required during the build
process: the final libraries do not need the Rust runtime.

Package rusticl in parallel to the Clover implementation such that
we can ship the rusticl driver to users who explicitly install it
and not impact those users who still use Clover.

According to [1], Clover is due to be removed from Mesa at some
point, so we should package both rusticl and clover in the same
package to help users transitition to rusticl.

[1]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19385
Signed-off-by: Christopher Obbard <[email protected]>

- - - - -


4 changed files:

- debian/control
- debian/mesa-opencl-icd.install
- debian/mesa-opencl-icd.lintian-overrides
- debian/rules


Changes:

=====================================
debian/control
=====================================
@@ -51,6 +51,10 @@ Build-Depends:
  zlib1g-dev,
  libglvnd-core-dev (>= 1.3.2),
  valgrind [amd64 arm64 armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x],
+ rustc [amd64 arm64 armel armhf i386 mips64el mipsel ppc64 ppc64el s390x 
sparc64],
+ bindgen [amd64 arm64 armel armhf i386 mips64el mipsel ppc64 ppc64el s390x 
sparc64],
+ llvm-spirv-15 [amd64 arm64 armel armhf i386 mips64el mipsel ppc64 ppc64el 
s390x sparc64],
+ libllvmspirvlib-15-dev [amd64 arm64 armel armhf i386 mips64el mipsel ppc64 
ppc64el s390x sparc64],
 Vcs-Git: https://salsa.debian.org/xorg-team/lib/mesa.git
 Vcs-Browser: https://salsa.debian.org/xorg-team/lib/mesa
 Homepage: https://mesa3d.org/
@@ -413,7 +417,7 @@ Description: Mesa Vulkan graphics drivers
 
 Package: mesa-opencl-icd
 Section: libs
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 
ppc64el riscv64 s390x sparc64
+Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64 ppc64el s390x 
sparc64
 Pre-Depends: ${misc:Pre-Depends}
 Depends:
  libclc-15,


=====================================
debian/mesa-opencl-icd.install
=====================================
@@ -1,3 +1,7 @@
 etc/OpenCL/vendors/mesa.icd
 usr/lib/*/gallium-pipe/*.so
 usr/lib/*/libMesaOpenCL*
+
+# rusticl
+etc/OpenCL/vendors/rusticl.icd
+usr/lib/*/libRusticlOpenCL*


=====================================
debian/mesa-opencl-icd.lintian-overrides
=====================================
@@ -1 +1,2 @@
 package-name-doesnt-match-sonames libMesaOpenCL1
+package-name-doesnt-match-sonames libRusticlOpenCL


=====================================
debian/rules
=====================================
@@ -116,6 +116,11 @@ else
        confflags_GALLIUM += -Dllvm=enabled
        confflags_GALLIUM += -Dgallium-opencl=icd
 
+       # Build rusticl for archs where rustc is available
+       ifneq ($(DEB_HOST_ARCH), powerpc)
+               confflags_GALLIUM += -Dgallium-rusticl=true
+       endif
+
        # nine makes sense only on archs that build wine
        ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 
powerpc))
                confflags_GALLIUM += -Dgallium-nine=true



View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/commit/d64846be4f9aa011de48c4969d47625842484770

-- 
View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/commit/d64846be4f9aa011de48c4969d47625842484770
You're receiving this email because of your account on salsa.debian.org.


Reply via email to