[packages/libgav1] - added sse4-tests patch, fixed avx2/sse4 tests disabling
qboosh
qboosh at pld-linux.org
Mon Mar 6 21:54:00 CET 2023
commit 5aaa905bd76fc615536042f69e097bf7adcfd8c6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Mar 6 21:55:49 2023 +0100
- added sse4-tests patch, fixed avx2/sse4 tests disabling
libgav1-sse4-tests.patch | 18 ++++++++++++++++++
libgav1.spec | 6 ++++--
2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/libgav1.spec b/libgav1.spec
index bf218e0..7b261a9 100644
--- a/libgav1.spec
+++ b/libgav1.spec
@@ -17,6 +17,7 @@ Source0: %{name}-%{version}.tar.gz
# Source0-md5: 6d2e293afc30f7f0f7ea8cb472e0958b
Patch0: %{name}-system-libs.patch
Patch1: cxx17.patch
+Patch2: %{name}-sse4-tests.patch
URL: https://chromium.googlesource.com/codecs/libgav1
BuildRequires: abseil-cpp-devel
BuildRequires: cmake >= 3.7.1
@@ -61,6 +62,7 @@ Statyczna biblioteka libgav1.
%setup -q -c
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
install -d build
@@ -77,10 +79,10 @@ cd build
%if %{with tests}
# how to execute all automatically?
for f in $(echo ./*_test) ; do
- if [ "$f" = "./common_avx2_test"] && ! grep -Fs avx2 ; then
+ if [ "$f" = "./common_avx2_test" ] && ! grep -Fs avx2 /proc/cpuinfo ; then
continue
fi
- if [ "$f" = "./common_sse4_test"] && ! grep -Fs sse4_1 ; then
+ if [ "$f" = "./common_sse4_test" ] && ! grep -Fs sse4_1 /proc/cpuinfo ; then
continue
fi
$f
diff --git a/libgav1-sse4-tests.patch b/libgav1-sse4-tests.patch
new file mode 100644
index 0000000..9db8b3e
--- /dev/null
+++ b/libgav1-sse4-tests.patch
@@ -0,0 +1,18 @@
+--- libgav1-0.18.0/src/dsp/intrapred_cfl_test.cc.orig 2023-03-05 17:34:54.221000000 +0100
++++ libgav1-0.18.0/src/dsp/intrapred_cfl_test.cc 2023-03-06 21:41:17.447794605 +0100
+@@ -214,6 +214,7 @@ void CflIntraPredTest<bitdepth, Pixel>::
+
+ template <int bitdepth, typename Pixel>
+ void CflIntraPredTest<bitdepth, Pixel>::TestSaturatedValues() {
++ if (cur_cfl_intra_pred_ == nullptr) return;
+ // Skip the 'C' test case as this is used as the reference.
+ if (base_cfl_intra_pred_ == nullptr) return;
+
+@@ -243,6 +244,7 @@ void CflIntraPredTest<bitdepth, Pixel>::
+
+ template <int bitdepth, typename Pixel>
+ void CflIntraPredTest<bitdepth, Pixel>::TestRandomValues() {
++ if (cur_cfl_intra_pred_ == nullptr) return;
+ // Skip the 'C' test case as this is used as the reference.
+ if (base_cfl_intra_pred_ == nullptr) return;
+ int16_t luma_buffer[kCflLumaBufferStride][kCflLumaBufferStride];
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgav1.git/commitdiff/025171a3d5a3218b01b1467b066ecec5b702977f
More information about the pld-cvs-commit
mailing list