Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mesa: update to 21.0.1 #29520

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 9 additions & 7 deletions srcpkgs/mesa/patches/add-use-elf-tls.patch
Expand Up @@ -2,26 +2,24 @@ Upstream: https://gitlab.freedesktop.org/mesa/mesa/issues/966
Status: Not fixed upstream

diff --git meson.build meson.build
index d228de0..972cd79 100644
index 932eb13..1d1a4be 100644
--- meson.build
+++ meson.build
@@ -392,7 +392,8 @@ if with_egl and not (with_platform_drm or with_platform_surfaceless or with_plat
endif
@@ -448,7 +448,8 @@ endif

# Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS.
use_elf_tls = false
-if not ['windows', 'freebsd', 'openbsd'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
-if not ['windows', 'freebsd', 'openbsd', 'haiku'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
+with_use_elf_tls = get_option('use-elf-tls')
+if not ['windows', 'freebsd', 'openbsd'].contains(host_machine.system()) and with_use_elf_tls and (not with_platform_android or get_option('platform-sdk-version') >= 29)
pre_args += '-DUSE_ELF_TLS'
use_elf_tls = true
endif

diff --git meson_options.txt meson_options.txt
index b768c15..2533220 100644
index fc73f6e..2d9e4a2 100644
--- meson_options.txt
+++ meson_options.txt
@@ -366,3 +366,9 @@ option(
@@ -445,6 +445,12 @@ option(
value : 25,
description : 'Android Platform SDK version. Default: Nougat version.'
)
Expand All @@ -31,3 +29,7 @@ index b768c15..2533220 100644
+ value : true,
+ description : 'Build support for initial-exec TLS model'
+)
option(
'zstd',
type : 'combo',

34 changes: 0 additions & 34 deletions srcpkgs/mesa/patches/gen-git_sha1_h.patch

This file was deleted.

21 changes: 11 additions & 10 deletions srcpkgs/mesa/template
@@ -1,13 +1,13 @@
# Template file for 'mesa'
pkgname=mesa
version=20.3.4
version=21.0.1
revision=1
wrksrc="mesa-${version}"
build_style=meson
configure_args="-Dglvnd=true -Dshared-glapi=true -Dgbm=true -Degl=true
-Dosmesa=gallium -Dgles1=true -Dgles2=true -Dglx=dri -Ddri3=true
-Dlmsensors=true -Dplatforms=x11,wayland
-Dllvm=true -Db_lto=false -Dcpp_std=gnu++14"
configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
-Dosmesa=true -Dgles1=enabled -Dgles2=enabled -Dglx=dri -Ddri3=enabled
-Dlmsensors=enabled -Dplatforms=x11,wayland
-Dllvm=enabled -Db_lto=false -Dcpp_std=gnu++14"
hostmakedepends="gettext flex llvm pkg-config python3-Mako glslang
wayland-protocols wayland-devel"
makedepends="elfutils-devel expat-devel libXdamage-devel libXvMC-devel
Expand All @@ -23,7 +23,7 @@ license="MIT, LGPL-2.1-or-later"
homepage="https://www.mesa3d.org/"
changelog="https://docs.mesa3d.org/relnotes/${version}.html"
distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
checksum=dc21a987ec1ff45b278fe4b1419b1719f1968debbb80221480e44180849b4084
checksum=379fc984459394f2ab2d84049efdc3a659869dc1328ce72ef0598506611712bb

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" -Duse-elf-tls=false"
Expand Down Expand Up @@ -124,12 +124,12 @@ fi

if [ "$_have_vmware" ]; then
_gallium_drivers+=",svga"
configure_args+=" -Dgallium-xa=true"
configure_args+=" -Dgallium-xa=enabled"
subpackages+=" libxatracker"
# transitional dummy packages
subpackages+=" mesa-vmwgfx-dri"
else
configure_args+=" -Dgallium-xa=false"
configure_args+=" -Dgallium-xa=disabled"
fi

# enabled currently by amd drivers
Expand All @@ -141,10 +141,10 @@ if [ "$_have_opencl" ]; then
fi

if [ "$_have_hwdec" ]; then
configure_args+=" -Dgallium-vdpau=true -Dgallium-va=true -Dgallium-xvmc=true"
configure_args+=" -Dgallium-vdpau=enabled -Dgallium-va=enabled -Dgallium-xvmc=enabled"
subpackages+=" mesa-vaapi mesa-vdpau mesa-XvMC"
else
configure_args+=" -Dgallium-vdpau=false -Dgallium-va=false -Dgallium-xvmc=false"
configure_args+=" -Dgallium-vdpau=disabled -Dgallium-va=disabled -Dgallium-xvmc=disabled"
fi

# empty values introduced by leading comma are not allowed; the whole enumeration can be empty
Expand Down Expand Up @@ -173,6 +173,7 @@ post_configure() {
-e "s; /usr/lib/; ${XBPS_CROSS_BASE}/usr/lib/;g" \
-e "s;-L/usr/lib;-L${XBPS_CROSS_BASE}/usr/lib;g" \
-e "s;-I/usr/include;-I${XBPS_CROSS_BASE}/usr/include;g" \
-e "s;-isystem;-I${XBPS_CROSS_BASE};g" \
\;
fi
}
Expand Down