git: 59e582e9c36b - 2023Q4 - multimedia/vvenc: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Nov 2023 20:24:56 UTC
The branch 2023Q4 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=59e582e9c36bf8159869cbcaa96c6304040ccc61
commit 59e582e9c36bf8159869cbcaa96c6304040ccc61
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-11-13 02:48:46 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-18 20:24:40 +0000
multimedia/vvenc: fix build on armv7
No SIMD on armv7, but there's one place in the code where they forgot
to check if we want SIMD or not. Fix the oversight to make the port
work.
Approved by: portmgr (build fix blanket)
MFH: 2023Q4
(cherry picked from commit 3db813ec767819d1b3936d8bac1d08b3549f404d)
---
.../patch-source_Lib_EncoderLib_EncAdaptiveLoopFilter.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/multimedia/vvenc/files/patch-source_Lib_EncoderLib_EncAdaptiveLoopFilter.cpp b/multimedia/vvenc/files/patch-source_Lib_EncoderLib_EncAdaptiveLoopFilter.cpp
new file mode 100644
index 000000000000..38b24c951fc5
--- /dev/null
+++ b/multimedia/vvenc/files/patch-source_Lib_EncoderLib_EncAdaptiveLoopFilter.cpp
@@ -0,0 +1,12 @@
+--- source/Lib/EncoderLib/EncAdaptiveLoopFilter.cpp.orig 2023-11-13 02:43:14 UTC
++++ source/Lib/EncoderLib/EncAdaptiveLoopFilter.cpp
+@@ -6290,7 +6290,9 @@ void EncAdaptiveLoopFilter::getBlkStatsCcAlf(AlfCovari
+
+ int effStride = recStride << getComponentScaleY(compID, m_chromaFormat);
+
++#if defined( TARGET_SIMD_X86 ) && ENABLE_SIMD_OPT_ALF
+ const bool useSimd = read_x86_extension_flags() > SCALAR;
++#endif
+
+ Pel ELocal[MAX_NUM_CC_ALF_CHROMA_COEFF][16];
+ Pel yLocal[4][4];