From: ardadem <ardadem@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] mesa: update to 22.3.4.
Date: Sat, 28 Jan 2023 10:11:26 +0100 [thread overview]
Message-ID: <20230128091126.EfQvWulEdoKoao2HhuHhgFduaTKvV5jofhB6S4Ectfk@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41084@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]
There is an updated pull request by ardadem against master on the void-packages repository
https://github.com/ardadem/void-packages pr-mesa-22.3
https://github.com/void-linux/void-packages/pull/41084
mesa: update to 22.3.4.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
~~**Draft until 22.3.1.**
Feel free to review and test it meantime.~~
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/41084.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pr-mesa-22.3-41084.patch --]
[-- Type: text/x-diff, Size: 8464 bytes --]
From 73a02ff0483485e908843887835a9365d74df13b Mon Sep 17 00:00:00 2001
From: Arda Demir <ddmirarda@gmail.com>
Date: Wed, 14 Dec 2022 11:25:47 +0300
Subject: [PATCH 1/2] common/shlibs: add libLLVMSPIRVLib.so.12
---
common/shlibs | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/shlibs b/common/shlibs
index f632ce9c76da..6d6b76382626 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -992,6 +992,7 @@ libclang.so.12 libclang-12.0.0_1
libclang-cpp.so.12 libclang-cpp-12.0.0_1
libLLVM-11.so libllvm11-11.0.0_1
libLLVM-12.so libllvm12-12.0.0_1
+libLLVMSPIRVLib.so.12 SPIRV-LLVM-Translator-12.0.0_1
libisofs.so.6 libisofs-0.6.24_1
libmpack.so.0 libmpack-1.0.5_1
libGeoIP.so.1 libgeoip-1.4.8_1
From 3978da49b4cc6712d72a673b0da718d1175da751 Mon Sep 17 00:00:00 2001
From: Arda Demir <ddmirarda@gmail.com>
Date: Fri, 9 Dec 2022 13:09:05 +0300
Subject: [PATCH 2/2] mesa: update to 22.3.4.
* remove obsolete add-elf-use-tls patch
* remove xvmc
* build intel_hasvk vulkan driver for older intel GPUs
* build rusticl opencl implementation
---
srcpkgs/mesa-XvMC | 1 -
srcpkgs/mesa/patches/add-elf-use-tls.patch | 29 --------------
srcpkgs/mesa/template | 45 +++++++++-------------
srcpkgs/removed-packages/template | 3 +-
4 files changed, 21 insertions(+), 57 deletions(-)
delete mode 120000 srcpkgs/mesa-XvMC
delete mode 100644 srcpkgs/mesa/patches/add-elf-use-tls.patch
diff --git a/srcpkgs/mesa-XvMC b/srcpkgs/mesa-XvMC
deleted file mode 120000
index 1ad1bbec7ab3..000000000000
--- a/srcpkgs/mesa-XvMC
+++ /dev/null
@@ -1 +0,0 @@
-mesa
\ No newline at end of file
diff --git a/srcpkgs/mesa/patches/add-elf-use-tls.patch b/srcpkgs/mesa/patches/add-elf-use-tls.patch
deleted file mode 100644
index c9a154e4ccea..000000000000
--- a/srcpkgs/mesa/patches/add-elf-use-tls.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/meson.build 2022-09-20 17:01:37.000000000 -0400
-+++ b/meson.build 2022-10-04 16:17:45.905483957 -0400
-@@ -504,6 +504,11 @@
- pre_args += '-DHAVE_@0@_PLATFORM'.format(platform.to_upper())
- endforeach
-
-+use_elf_tls = get_option('use-elf-tls')
-+if use_elf_tls
-+ pre_args += '-DUSE_ELF_TLS'
-+endif
-+
- if with_platform_android and get_option('platform-sdk-version') >= 29
- # By default the NDK compiler, at least, emits emutls references instead of
- # ELF TLS, even when building targeting newer API levels. Make it actually do
---- a/meson_options.txt 2022-09-20 17:01:37.000000000 -0400
-+++ b/meson_options.txt 2022-10-04 16:21:30.469304615 -0400
-@@ -472,6 +472,12 @@
- description : 'Android Platform SDK version. Default: Nougat version.'
- )
- option(
-+ 'use-elf-tls',
-+ type : 'boolean',
-+ value : true,
-+ description : 'Build support for initial-exec TLS model'
-+)
-+option(
- 'zstd',
- type : 'combo',
- choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 4c3c9ec6039e..7dc95800b751 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -1,7 +1,7 @@
# Template file for 'mesa'
pkgname=mesa
-version=22.2.4
-revision=2
+version=22.3.4
+revision=1
build_style=meson
configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
-Dosmesa=true -Dgles1=enabled -Dgles2=enabled -Dglx=dri -Ddri3=enabled
@@ -9,7 +9,7 @@ configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
-Dllvm=enabled -Db_lto=false -Dcpp_std=gnu++14"
hostmakedepends="gettext flex llvm pkg-config python3-Mako glslang
$(vopt_if wayland 'wayland-protocols wayland-devel')"
-makedepends="elfutils-devel expat-devel libXdamage-devel libXvMC-devel
+makedepends="elfutils-devel expat-devel libXdamage-devel
libXxf86vm-devel libatomic-devel libdrm-devel libffi-devel libva-devel
libvdpau-devel libxshmfence-devel ncurses-devel zlib-devel
$(vopt_if wayland 'wayland-devel wayland-protocols') llvm libsensors-devel
@@ -22,15 +22,11 @@ license="MIT, LGPL-2.1-or-later"
homepage="https://www.mesa3d.org/"
changelog="https://docs.mesa3d.org/relnotes.html"
distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
-checksum=65d76b53ca5c7b46019e0e8e5b414de45d2fecd3fcd71707f6c3bc7691c9f7ab
+checksum=37a1ddaf03f41919ee3c89c97cff41e87de96e00e9d3247959cc8279d8294593
build_options="wayland"
build_options_default="wayland"
-if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
- configure_args+=" -Duse-elf-tls=false"
-fi
-
# only use llvmpipe on targets where it's supported and reliable
# especially on big endian it's all kinds of broken, and e.g. on
# 32-bit powerpc it does not work at all, so fall back to softpipe
@@ -95,7 +91,7 @@ fi
if [ "$_have_intel" ]; then
_have_vulkan=yes
_gallium_drivers+=",crocus,iris,i915"
- _vulkan_drivers+=",intel"
+ _vulkan_drivers+=",intel,intel_hasvk"
subpackages+=" mesa-vulkan-intel"
# transitional dummy packages
subpackages+=" mesa-intel-dri"
@@ -144,17 +140,17 @@ fi
# enabled currently by amd drivers
if [ "$_have_opencl" ]; then
- hostmakedepends+=" clang"
- makedepends+=" clang libclc"
+ hostmakedepends+=" clang rust rust-bindgen"
+ makedepends+=" clang libclc rust SPIRV-LLVM-Translator-devel SPIRV-Tools-devel"
subpackages+=" mesa-opencl"
- configure_args+=" -Dgallium-opencl=icd"
+ configure_args+=" -Dgallium-opencl=icd -Dgallium-rusticl=true -Drust_std=2021"
fi
if [ "$_have_hwdec" ]; then
- configure_args+=" -Dgallium-vdpau=enabled -Dgallium-va=enabled -Dgallium-xvmc=enabled"
- subpackages+=" mesa-vaapi mesa-vdpau mesa-XvMC"
+ configure_args+=" -Dgallium-vdpau=enabled -Dgallium-va=enabled"
+ subpackages+=" mesa-vaapi mesa-vdpau"
else
- configure_args+=" -Dgallium-vdpau=disabled -Dgallium-va=disabled -Dgallium-xvmc=disabled"
+ configure_args+=" -Dgallium-vdpau=disabled -Dgallium-va=disabled"
fi
# empty values introduced by leading comma are not allowed; the whole enumeration can be empty
@@ -191,6 +187,7 @@ esac
post_configure() {
if [ "$CROSS_BUILD" ]; then
find -iname "*.ninja" -exec sed -i "{}" \
+ -e "/rustc/s; --sysroot ${XBPS_CROSS_BASE}/usr;;g" \
-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" \
@@ -289,6 +286,7 @@ MesaLib-devel_package() {
fi
if [ "$_have_opencl" ]; then
vmove usr/lib/libMesaOpenCL.so
+ vmove usr/lib/libRusticlOpenCL.so
fi
}
}
@@ -307,6 +305,7 @@ mesa-opencl_package() {
vmove etc/OpenCL
vmove usr/lib/gallium-pipe
vmove "usr/lib/libMesaOpenCL.so.*"
+ vmove "usr/lib/libRusticlOpenCL.so.*"
}
}
@@ -334,24 +333,18 @@ mesa-vdpau_package() {
}
}
-mesa-XvMC_package() {
- short_desc="Mesa XvMC drivers"
- pkg_install() {
- vmove "usr/lib/libXvMC*"
- }
-}
-
mesa-vulkan-intel_package() {
short_desc="Mesa Intel Vulkan driver"
pkg_install() {
- vmove "usr/share/vulkan/icd.d/intel_icd*.json"
- vmove "usr/lib/libvulkan_intel.so"
+ vmove "usr/share/vulkan/icd.d/intel*.json"
+ vmove "usr/lib/libvulkan_intel*.so"
}
}
mesa-vulkan-radeon_package() {
short_desc="Mesa Radeon Vulkan driver"
pkg_install() {
+ vmove "usr/share/drirc.d/00-radv-defaults.conf"
vmove "usr/share/vulkan/icd.d/radeon_icd*.json"
vmove "usr/lib/libvulkan_radeon.so"
}
@@ -381,7 +374,7 @@ mesa-ati-dri_package() {
short_desc="Mesa DRI drivers for ATI GPUs (transitional dummy package)"
depends="mesa-dri mesa-vulkan-radeon"
if [ "$_have_hwdec" ]; then
- depends+=" mesa-vaapi mesa-vdpau mesa-XvMC"
+ depends+=" mesa-vaapi mesa-vdpau"
fi
}
@@ -426,7 +419,7 @@ mesa-nouveau-dri_package() {
short_desc="Mesa DRI drivers for NVIDIA GPUs (transitional dummy package)"
depends="mesa-dri"
if [ "$_have_hwdec" ]; then
- depends+=" mesa-vaapi mesa-vdpau mesa-XvMC"
+ depends+=" mesa-vaapi mesa-vdpau"
fi
}
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 0429a5fb4796..db3d60cd2259 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -1,6 +1,6 @@
# Template file for 'removed-packages'
pkgname=removed-packages
-version=0.1.20230120
+version=0.1.20230127
revision=1
build_style=meta
short_desc="Uninstalls packages removed from repository"
@@ -316,6 +316,7 @@ replaces="
masterpassword-cli<=2.6_5
mattermost-desktop<=4.6.0_1
mdds0<=0.12.1_3
+ mesa-XvMC<=22.2.4_2
mimms<=3.2.1_4
miro-video-converter<=3.0.2_3
mirrorbits<=0.5.1_1
next prev parent reply other threads:[~2023-01-28 9:11 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-14 13:28 [PR PATCH] mesa: update to 22.3.0 ardadem
2022-12-15 4:49 ` zlice
2022-12-15 5:11 ` [PR PATCH] [Updated] " ardadem
2022-12-15 9:43 ` [PR PATCH] [Updated] mesa: update to 22.3.1 ardadem
2022-12-17 13:42 ` biopsin
2022-12-19 20:32 ` [PR PATCH] [Updated] " ardadem
2022-12-19 20:50 ` ardadem
2022-12-23 19:53 ` bubba-champion
2022-12-23 20:15 ` vincele
2022-12-23 21:54 ` [PR PATCH] [Updated] " ardadem
2022-12-23 21:58 ` ardadem
2022-12-24 17:56 ` bubba-champion
2022-12-24 19:29 ` bubba-champion
2022-12-29 23:07 ` bubba-champion
2022-12-30 9:15 ` [PR PATCH] [Updated] " ardadem
2023-01-03 22:18 ` [PR PATCH] [Updated] mesa: update to 22.3.2 ardadem
2023-01-03 22:19 ` ardadem
2023-01-11 20:13 ` Seltyk
2023-01-11 21:38 ` [PR PATCH] [Updated] " ardadem
2023-01-17 12:02 ` mesa: update to 22.3.3 motorto
2023-01-17 12:03 ` motorto
2023-01-17 12:33 ` JamiKettunen
2023-01-17 12:34 ` JamiKettunen
2023-01-17 13:14 ` JamiKettunen
2023-01-17 13:14 ` JamiKettunen
2023-01-17 17:07 ` [PR PATCH] [Updated] " ardadem
2023-01-17 17:11 ` ardadem
2023-01-17 17:12 ` [PR PATCH] [Updated] " ardadem
2023-01-17 17:46 ` ardadem
2023-01-17 17:47 ` ardadem
2023-01-17 23:12 ` motorto
2023-01-17 23:19 ` ardadem
2023-01-17 23:25 ` motorto
2023-01-18 0:40 ` JamiKettunen
2023-01-21 12:24 ` lemmi
2023-01-24 23:36 ` motorto
2023-01-27 12:10 ` bubba-champion
2023-01-27 16:53 ` [PR PATCH] [Updated] " ardadem
2023-01-28 4:55 ` mesa: update to 22.3.4 HadetTheUndying
2023-01-28 8:41 ` ardadem
2023-01-28 9:11 ` ardadem [this message]
2023-01-28 9:14 ` ardadem
2023-01-28 10:13 ` bubba-champion
2023-01-28 12:20 ` motorto
2023-01-28 18:41 ` HadetTheUndying
2023-01-31 22:14 ` Piraty
2023-01-31 22:15 ` Piraty
2023-02-01 0:36 ` HadetTheUndying
2023-02-02 16:03 ` bubba-champion
2023-02-08 20:48 ` HadetTheUndying
2023-02-10 12:44 ` bubba-champion
2023-02-14 9:21 ` [PR PATCH] [Updated] " ardadem
2023-02-14 12:02 ` mesa: update to 22.3.5 motorto
2023-02-14 20:56 ` ardadem
2023-02-14 21:09 ` ardadem
2023-02-14 21:10 ` ardadem
2023-02-19 17:33 ` [PR PATCH] [Updated] " ardadem
2023-02-19 17:36 ` ardadem
2023-02-21 8:43 ` [PR PATCH] [Closed]: " Piraty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230128091126.EfQvWulEdoKoao2HhuHhgFduaTKvV5jofhB6S4Ectfk@z \
--to=ardadem@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).