git: 3db813ec7678 - main - multimedia/vvenc: fix build on armv7

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 18 Nov 2023 20:22:33 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3db813ec767819d1b3936d8bac1d08b3549f404d

commit 3db813ec767819d1b3936d8bac1d08b3549f404d
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:20:39 +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
---
 .../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];