Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] mesa: update to 22.3.0.
@ 2022-12-14 13:28 ardadem
  2022-12-15  4:49 ` zlice
                   ` (57 more replies)
  0 siblings, 58 replies; 59+ messages in thread
From: ardadem @ 2022-12-14 13:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]

There is a new 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.0.
<!-- 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: 11325 bytes --]

From 5a6a68264f897151812ebad9f1ca02ba8eb6f112 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 b9fecc044025..6fd0b7def207 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -990,6 +990,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 6f87a7d60013c436327eca7a8409d96a3b0e3545 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.0.

* 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/20145.patch           | 71 ++++++++++++++++++++++
 srcpkgs/mesa/patches/add-elf-use-tls.patch | 29 ---------
 srcpkgs/mesa/template                      | 44 ++++++--------
 srcpkgs/removed-packages/template          |  3 +-
 5 files changed, 91 insertions(+), 57 deletions(-)
 delete mode 120000 srcpkgs/mesa-XvMC
 create mode 100644 srcpkgs/mesa/patches/20145.patch
 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/20145.patch b/srcpkgs/mesa/patches/20145.patch
new file mode 100644
index 000000000000..496401658eef
--- /dev/null
+++ b/srcpkgs/mesa/patches/20145.patch
@@ -0,0 +1,71 @@
+From b3d1ae19f2f4d93cf0a5f45a598149ac4e8e05aa Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
+Date: Sun, 4 Dec 2022 00:17:57 +0000
+Subject: [PATCH 1/2] d3d12: Don't crash when libd3d12.so can't be found
+
+`d3d12_destroy_screen` is called by `d3d12_create_dxcore_screen` after
+`d3d12_init_screen_base` fails and attempts to call `util_dl_close` on
+a NULL pointer, leading to an abort.
+
+To fix this, only close the library after if it was actually opened.
+
+Cc: mesa-stable
+Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
+Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20145>
+---
+ src/gallium/drivers/d3d12/d3d12_screen.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/gallium/drivers/d3d12/d3d12_screen.cpp b/src/gallium/drivers/d3d12/d3d12_screen.cpp
+index 7debc1f0c572..e9aca69819f0 100644
+--- a/src/gallium/drivers/d3d12/d3d12_screen.cpp
++++ b/src/gallium/drivers/d3d12/d3d12_screen.cpp
+@@ -743,7 +743,8 @@ d3d12_destroy_screen(struct d3d12_screen *screen)
+    slab_destroy_parent(&screen->transfer_pool);
+    mtx_destroy(&screen->submit_mutex);
+    mtx_destroy(&screen->descriptor_pool_mutex);
+-   util_dl_close(screen->d3d12_mod);
++   if (screen->d3d12_mod)
++      util_dl_close(screen->d3d12_mod);
+    glsl_type_singleton_decref();
+    FREE(screen);
+ }
+-- 
+GitLab
+
+
+From b5133894005720db24a8e0cc17e047a291953ff4 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
+Date: Sun, 4 Dec 2022 00:21:45 +0000
+Subject: [PATCH 2/2] dzn: Don't crash when libd3d12.so can't be found
+
+`dzn_instance_create` will call `dzn_instance_destroy` when the d3d12
+library fails to load. Just like the issue in `d3d12_screen`, this will
+lead to a crash because `d3d12_mod` is NULL.
+
+To fix this, only close the library after if it was actually opened.
+
+Cc: mesa-stable
+Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
+Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20145>
+---
+ src/microsoft/vulkan/dzn_device.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
+index 16a5aca331f4..8f9b5939eb85 100644
+--- a/src/microsoft/vulkan/dzn_device.c
++++ b/src/microsoft/vulkan/dzn_device.c
+@@ -174,7 +174,8 @@ dzn_instance_destroy(struct dzn_instance *instance, const VkAllocationCallbacks
+    if (instance->factory)
+       ID3D12DeviceFactory_Release(instance->factory);
+ 
+-   util_dl_close(instance->d3d12_mod);
++   if (instance->d3d12_mod)
++      util_dl_close(instance->d3d12_mod);
+ 
+    vk_instance_finish(&instance->vk);
+    vk_free2(vk_default_allocator(), alloc, instance);
+-- 
+GitLab
+
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..d1f10d13cf0e 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.0
+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=644bf936584548c2b88762111ad58b4aa3e4688874200e5a4eb74e53ce301746
 
 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,18 +333,11 @@ 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"
 	}
 }
 
@@ -381,7 +373,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 +418,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 df3fdc331c84..ce8544fc1db6 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.20221205
+version=0.1.20221209
 revision=1
 build_style=meta
 short_desc="Uninstalls packages removed from repository"
@@ -304,6 +304,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

^ permalink raw reply	[flat|nested] 59+ messages in thread

end of thread, other threads:[~2023-02-21  8:43 UTC | newest]

Thread overview: 59+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PR PATCH] [Updated] " ardadem
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

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).