[packages/Mesa/avx-safe] - trying to get libOSMesa working without AVX
qboosh
qboosh at pld-linux.org
Sat Dec 7 17:49:36 CET 2019
commit 8c1282672ed173a6b5962c3d4ca5aa8da7fe2678
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 7 17:49:52 2019 +0100
- trying to get libOSMesa working without AVX
Mesa-avx.patch | 26 ++++++++++++++++++++++++++
Mesa.spec | 2 ++
2 files changed, 28 insertions(+)
---
diff --git a/Mesa.spec b/Mesa.spec
index 7485378..26668c7 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -65,6 +65,7 @@ Source0: https://gitlab.freedesktop.org/mesa/mesa/-/archive/mesa-%{version}/mesa
# Source0-md5: 84fd6e1ec586c7f3b55973ce9b700991
Patch0: nouveau_no_rtti.patch
Patch1: i9x5-tex-ignore-the-diff-between-GL_TEXTURE_2D-and-GL_TEXTURE_RECTANGLE.patch
+Patch2: %{name}-avx.patch
URL: http://www.mesa3d.org/
%{?with_opencl:BuildRequires: clang-devel >= %{llvm_ver}}
BuildRequires: elfutils-devel
@@ -1303,6 +1304,7 @@ radv - eksperymentalny sterownik Vulkan dla GPU firmy AMD.
%setup -q -n mesa-mesa-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%if %{with opencl}
diff --git a/Mesa-avx.patch b/Mesa-avx.patch
new file mode 100644
index 0000000..06459e8
--- /dev/null
+++ b/Mesa-avx.patch
@@ -0,0 +1,26 @@
+--- mesa-mesa-19.2.7/src/gallium/drivers/swr/meson.build.orig 2019-12-04 22:48:11.000000000 +0100
++++ mesa-mesa-19.2.7/src/gallium/drivers/swr/meson.build 2019-12-07 17:39:44.807856835 +0100
+@@ -288,12 +288,21 @@
+ endif
+
+ # The swr_avx_args are needed for intrensic usage in swr api headers.
++libmesaswravx = static_library(
++ 'mesaswravx',
++ [files_swr_mesa, files_swr_common],
++ cpp_args : [cpp_vis_args, swr_cpp_args, swr_avx_args, swr_arch_defines],
++ include_directories : [inc_common, swr_incs],
++ dependencies : dep_llvm,
++)
++
+ libmesaswr = static_library(
+ 'mesaswr',
+- [files_swr_mesa, files_swr_common, gen_knobs_h, gen_knobs_cpp,
++ [gen_knobs_h, gen_knobs_cpp,
+ gen_builder_hpp, gen_builder_meta_hpp, gen_builder_intrin_hpp],
+- cpp_args : [cpp_vis_args, swr_cpp_args, swr_avx_args, swr_arch_defines],
++ cpp_args : [swr_cpp_args, swr_arch_defines],
+ include_directories : [inc_common, swr_incs],
++ link_whole: libmesaswravx,
+ dependencies : dep_llvm,
+ )
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/8c1282672ed173a6b5962c3d4ca5aa8da7fe2678
More information about the pld-cvs-commit
mailing list