[FFmpeg-cvslog] x86/vvc/vvc_mc: wrap the entire file in x86_64 and AVX2 checks

James Almer git at videolan.org
Thu Feb 1 15:26:07 EET 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Feb  1 10:23:42 2024 -0300| [78a7927df78001baa6c17828c7f57105b9816458] | committer: James Almer

x86/vvc/vvc_mc: wrap the entire file in x86_64 and AVX2 checks

Fixes compilation with old yasm.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78a7927df78001baa6c17828c7f57105b9816458
---

 libavcodec/x86/vvc/vvc_mc.asm | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/libavcodec/x86/vvc/vvc_mc.asm b/libavcodec/x86/vvc/vvc_mc.asm
index fab1f57ba5..30aa97c65a 100644
--- a/libavcodec/x86/vvc/vvc_mc.asm
+++ b/libavcodec/x86/vvc/vvc_mc.asm
@@ -31,6 +31,10 @@
 
 SECTION_RODATA 32
 
+%if ARCH_X86_64
+
+%if HAVE_AVX2_EXTERNAL
+
 pw_0    times 2 dw   0
 pw_1    times 2 dw   1
 pw_4    times 2 dw   4
@@ -48,12 +52,10 @@ pw_256  times 2 dw 256
     %endrep
 %endmacro
 
-%if ARCH_X86_64
 AVG_JMP_TABLE    avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128
 AVG_JMP_TABLE    avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128
 AVG_JMP_TABLE  w_avg,  8, avx2,                2, 4, 8, 16, 32, 64, 128
 AVG_JMP_TABLE  w_avg, 16, avx2,                2, 4, 8, 16, 32, 64, 128
-%endif
 
 SECTION .text
 
@@ -286,9 +288,6 @@ cglobal vvc_w_avg_%1bpc, 4, 8, 8, dst, stride, src0, src1, w, h, t0, t1
     AVG_FN              %1, W_AVG
 %endmacro
 
-%if ARCH_X86_64
-
-%if HAVE_AVX2_EXTERNAL
 INIT_YMM avx2
 
 VVC_AVG_AVX2 16



More information about the ffmpeg-cvslog mailing list