[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/lib/mesa][debian-experimental] Package rusticl as mesa-opencl-icd



Title: GitLab

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 <chris.obbard@collabora.com>
    

4 changed files:

Changes:

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

  • debian/mesa-opencl-icd.install
    1 1
     etc/OpenCL/vendors/mesa.icd
    
    2 2
     usr/lib/*/gallium-pipe/*.so
    
    3 3
     usr/lib/*/libMesaOpenCL*
    
    4
    +
    
    5
    +# rusticl
    
    6
    +etc/OpenCL/vendors/rusticl.icd
    
    7
    +usr/lib/*/libRusticlOpenCL*

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

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


  • Reply to: