Skip to content

Commit

Permalink
mesa-git: enable rusticl for kinetic and lunar
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
ernstp committed May 13, 2023
1 parent 84820e4 commit e241c2e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
5 changes: 4 additions & 1 deletion mesa-git/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ Source: mesa
Section: graphics
Priority: optional
Maintainer: Ernst Sjöstrand <[email protected]>
Uploaders: Andreas Boll <[email protected]>
Standards-Version: 4.1.4
Build-Depends:
debhelper (>= 11),
Expand Down Expand Up @@ -53,6 +52,10 @@ Build-Depends:
zlib1g-dev,
libglvnd-core-dev (>= 1.3.2),
valgrind [amd64 arm64 armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x],
# Bindgen is not available on focal and there's no 32-bit build, so only build rusticl on amd64 >= jammy
libllvmspirvlib-15-dev [amd64] | libllvmspirvlib-14-dev [amd64] | bash-doc,
bindgen [amd64] | bash-doc,
rustc [amd64] | bash-doc,
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/
Expand Down
4 changes: 2 additions & 2 deletions mesa-git/debian/mesa-opencl-icd.install
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
etc/OpenCL/vendors/mesa.icd
etc/OpenCL/vendors/*.icd
usr/lib/*/gallium-pipe/*.so
usr/lib/*/libMesaOpenCL*
usr/lib/*/lib*OpenCL*
10 changes: 10 additions & 0 deletions mesa-git/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)

dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1)))
DEB_DISTRIBUTION = $(call dpkg_late_eval,DEB_DISTRIBUTION,dpkg-parsechangelog -SDistribution)

# for finding the correct llvm-config when meson doesn't know about it yet
export PATH:=/usr/lib/llvm-15/bin/:/usr/lib/llvm-14/bin/:/usr/lib/llvm-13/bin/:/usr/lib/llvm-12/bin/:/usr/lib/llvm-11/bin/:$(PATH)

Expand Down Expand Up @@ -126,6 +129,13 @@ else
confflags_GALLIUM += -Dllvm=enabled
confflags_GALLIUM += -Dgallium-opencl=icd

# Rusticl!
ifeq (,$(filter $(DEB_DISTRIBUTION),bionic focal jammy))
ifeq ($(DEB_HOST_ARCH),amd64)
confflags_GALLIUM += -Dgallium-rusticl=true
endif
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
Expand Down
2 changes: 1 addition & 1 deletion mesa-git/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ PACKAGE_NAME=mesa
GIT="https://gitlab.freedesktop.org/mesa/mesa.git"
GITBRANCH="staging/23.1"
DISTROS="focal jammy kinetic lunar"
INC=1
INC=2
PPA=mesarc

0 comments on commit e241c2e

Please sign in to comment.