[packages/Mesa] disable optimized/asm blake3 on x32

atler atler at pld-linux.org
Mon Aug 19 15:42:42 CEST 2024


commit c7ee186542ea7d1c7c675965837faa7509a46932
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Aug 19 15:00:49 2024 +0200

    disable optimized/asm blake3 on x32

 Mesa.spec |  2 ++
 x32.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/Mesa.spec b/Mesa.spec
index 734cab5..719e3d4 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -106,6 +106,7 @@ Source4:	https://crates.io/api/v1/crates/proc-macro2/%{proc_macro2_crate_ver}/do
 # Source4-md5:	480a3b8e8201739e157bb648f9243962
 Source5:	https://crates.io/api/v1/crates/paste/%{paste_crate_ver}/download?/paste-%{paste_crate_ver}.tar.gz
 # Source5-md5:	1781b204ec7b6b1ef9232d429e6a973a
+Patch0:		x32.patch
 URL:		https://www.mesa3d.org/
 %if %{with opencl_spirv} || %{with gallium_rusticl}
 BuildRequires:	SPIRV-LLVM-Translator-devel >= 8.0.1.3
@@ -1138,6 +1139,7 @@ Sterownik Vulkan dla kart VirtIO.
 
 %prep
 %setup -q -n mesa-%{version}
+%patch0 -p1
 
 install -d subprojects/packagecache
 cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} subprojects/packagecache
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..1c28bc6
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- mesa-24.2.0/src/util/blake3/meson.build.orig	2024-08-14 18:37:13.000000000 +0200
++++ mesa-24.2.0/src/util/blake3/meson.build	2024-08-19 14:45:23.812609378 +0200
+@@ -24,6 +24,8 @@
+     else
+       files_blake3 += ['blake3_sse2_x86-64_windows_gnu.S', 'blake3_sse41_x86-64_windows_gnu.S', 'blake3_avx2_x86-64_windows_gnu.S', 'blake3_avx512_x86-64_windows_gnu.S']
+     endif
++  elif meson.get_compiler('c').has_define('__ILP32__')
++    blake3_defs += blake3_x86_no_simd_defs
+   else
+     files_blake3 += ['blake3_sse2_x86-64_unix.S', 'blake3_sse41_x86-64_unix.S', 'blake3_avx2_x86-64_unix.S', 'blake3_avx512_x86-64_unix.S']
+   endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/c7ee186542ea7d1c7c675965837faa7509a46932



More information about the pld-cvs-commit mailing list