* [FFmpeg-devel] [PATCH] Fix AVX-512-VNNI_hevc_qpel_filters_avx512icl
@ 2022-04-28 17:17 Felix LeClair
2022-04-29 5:08 ` Wu Jianhua
0 siblings, 1 reply; 3+ messages in thread
From: Felix LeClair @ 2022-04-28 17:17 UTC (permalink / raw)
To: ffmpeg-devel
Issue: On extremely new hardware using either IceLake or super sets of
Intel IceLakes avx512 instructions, commit
d4cd8830bdac3e26c8e75cd92e574c159fecc4f7 causes build issues.
Specifically a NASM macro expansion of qpel_filter_v is never properly
defined/initialized.
The issue is the definition was erroneously placed inside a conditional
which will not trigger unless the original definition failed (has to do
with if PIC is defined, becomes a bit of a catch 22)
Specifically the error is
X86ASM libavcodec/x86/hevc_mc.o
libavcodec/x86/hevc_mc.asm:1854: error: symbol `..@88472.table' not defined
libavcodec/x86/hevc_mc.asm:1806: ... from macro
`HEVC_PUT_HEVC_QPEL_HV_AVX512ICL' defined here
libavcodec/x86/hevc_mc.asm:1730: ... from macro `QPEL_FILTER_V' defined here
...
repeats a few times...
...
make: *** [ffbuild/common.mak:100: libavcodec/x86/hevc_mc.o] Error 1
```
Specific error was discussed by kurosu and myself (fclc) on the
ffmpeg-devel irc.
This commit fixes the above by swapping lines 1796 and 1795, moving the
define out of the conditional
Side note: It seems fate didn't pick up on this, may merit looking into
(as mentioned by nevcairiel).
Signed-off-by: Felix LeClair (FCLC) <felix.leclair123@hotmail.com>
---
libavcodec/x86/hevc_mc.asm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/x86/hevc_mc.asm b/libavcodec/x86/hevc_mc.asm
index c07948dd9b..e159adccc7 100644
--- a/libavcodec/x86/hevc_mc.asm
+++ b/libavcodec/x86/hevc_mc.asm
@@ -1792,8 +1792,8 @@ cglobal hevc_put_hevc_qpel_hv%1_%2, 6, 7, 27, dst,
src, srcstride, height, mx, m
sub srcq, tmpq
sub myq, 1
shl myq, 5
-%ifdef PIC
%define %%table hevc_qpel_filters_avx512icl_v_%1
+%ifdef PIC
lea tmpq, [%%table]
%define FILTER tmpq
%else
--
2.32.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] Fix AVX-512-VNNI_hevc_qpel_filters_avx512icl
2022-04-28 17:17 [FFmpeg-devel] [PATCH] Fix AVX-512-VNNI_hevc_qpel_filters_avx512icl Felix LeClair
@ 2022-04-29 5:08 ` Wu Jianhua
2022-05-01 10:48 ` Marton Balint
0 siblings, 1 reply; 3+ messages in thread
From: Wu Jianhua @ 2022-04-29 5:08 UTC (permalink / raw)
To: FFmpeg development discussions and patches
> Felix LeClair<mailto:felix.leclair123@hotmail.com>:
> Sent: 2022年4月29日 1:17
> To: ffmpeg-devel@ffmpeg.org<mailto:ffmpeg-devel@ffmpeg.org>
> Subject: [FFmpeg-devel] [PATCH] Fix AVX-512-VNNI_hevc_qpel_filters_avx512icl
>
> This commit fixes the above by swapping lines 1796 and 1795, moving the
> define out of the conditional
>
> sub srcq, tmpq
> sub myq, 1
> shl myq, 5
> -%ifdef PIC
> %define %%table hevc_qpel_filters_avx512icl_v_%1
>+%ifdef PIC
> lea tmpq, [%%table]
> %define FILTER tmpq
> %else
>--
LGTM. Thanks for the fix!
Best regards,
Jianhua
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] Fix AVX-512-VNNI_hevc_qpel_filters_avx512icl
2022-04-29 5:08 ` Wu Jianhua
@ 2022-05-01 10:48 ` Marton Balint
0 siblings, 0 replies; 3+ messages in thread
From: Marton Balint @ 2022-05-01 10:48 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Fri, 29 Apr 2022, Wu Jianhua wrote:
>> Felix LeClair<mailto:felix.leclair123@hotmail.com>:
>> Sent: 2022年4月29日 1:17
>> To: ffmpeg-devel@ffmpeg.org<mailto:ffmpeg-devel@ffmpeg.org>
>> Subject: [FFmpeg-devel] [PATCH] Fix AVX-512-VNNI_hevc_qpel_filters_avx512icl
>>
>> This commit fixes the above by swapping lines 1796 and 1795, moving the
>> define out of the conditional
>>
>> sub srcq, tmpq
>> sub myq, 1
>> shl myq, 5
>> -%ifdef PIC
>> %define %%table hevc_qpel_filters_avx512icl_v_%1
>> +%ifdef PIC
>> lea tmpq, [%%table]
>> %define FILTER tmpq
>> %else
>> --
>
> LGTM. Thanks for the fix!
Thanks applied.
Regards,
Marton
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-01 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 17:17 [FFmpeg-devel] [PATCH] Fix AVX-512-VNNI_hevc_qpel_filters_avx512icl Felix LeClair
2022-04-29 5:08 ` Wu Jianhua
2022-05-01 10:48 ` Marton Balint
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git