[FFmpeg-devel] [PATCH 1/2] libavfilter/x86/vf_gblur: fixed the fate-test failed on MacOS

Wu Jianhua jianhua.wu at intel.com
Thu Sep 16 10:34:07 EEST 2021


Signed-off-by: Wu Jianhua <jianhua.wu at intel.com>
---
 libavfilter/x86/vf_gblur.asm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavfilter/x86/vf_gblur.asm b/libavfilter/x86/vf_gblur.asm
index c0d57cc82b..64c067538a 100644
--- a/libavfilter/x86/vf_gblur.asm
+++ b/libavfilter/x86/vf_gblur.asm
@@ -455,12 +455,13 @@ cglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, nu, bscale, x, y, step,
     mov nuq, localbufm
     DEFINE_ARGS buffer, width, height, steps, \
                 localbuf, x, y, step, stride, remain, ptr, mask
-    MOVSXDIFNIDN width, height, steps
 %else
     VBROADCASTSS    m0, xmm0 ; nu
     VBROADCASTSS    m1, xmm1 ; bscale
 %endif
 
+    MOVSXDIFNIDN width, height, steps
+
 %if cpuflag(avx512)
     vpbroadcastd    m2, widthd
     INIT_WORD_MASK  k6, k5, k4, k3, k2, k1
@@ -861,11 +862,12 @@ cglobal verti_slice, 6, 12, 9, 0-mmsize*2, buffer, width, height, cbegin, cend,
     VBROADCASTSS m1, bscalem
     DEFINE_ARGS buffer, width, height, cbegin, cend, \
                 steps, x, y, cwidth, step, ptr, stride
-    MOVSXDIFNIDN width, height, cbegin, cend, steps
 %else
     VBROADCASTSS m0, xmm0 ; nu
     VBROADCASTSS m1, xmm1 ; bscale
 %endif
+    MOVSXDIFNIDN width, height, cbegin, cend, steps
+
     mov cwidthq, cendq
     sub cwidthq, cbeginq
     lea strideq, [widthq * 4]
-- 
2.17.1



More information about the ffmpeg-devel mailing list