[FFmpeg-devel] [PATCH] WIP AVX support

Alex Converse alex.converse
Thu Feb 3 11:28:09 CET 2011


On Thu, Feb 3, 2011 at 2:24 AM, Jason Garrett-Glaser <jason at x264.com> wrote:
> 2011/2/3 M?ns Rullg?rd <mans at mansr.com>:
>> Jason Garrett-Glaser <jason at x264.com> writes:
>>
>>> Need someone who does configure/etc stuff to finish this.
>>> ---
>>> ?configure ? ? ? ? ? | ? ?2 ++
>>> ?libavutil/cpu.h ? ? | ? ?1 +
>>> ?libavutil/x86/cpu.c | ? 15 +++++++++++++++
>>> ?3 files changed, 18 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/configure b/configure
>>> index 46f4e44..c6ceaa8 100755
>>> --- a/configure
>>> +++ b/configure
>>> @@ -223,6 +223,7 @@ Advanced options (experts only):
>>> ? ?--disable-mmx2 ? ? ? ? ? disable MMX2 optimizations
>>> ? ?--disable-sse ? ? ? ? ? ?disable SSE optimizations
>>> ? ?--disable-ssse3 ? ? ? ? ?disable SSSE3 optimizations
>>> + ?--disable-avx ? ? ? ? ? ?disable AVX optimizations
>>> ? ?--disable-armv5te ? ? ? ?disable armv5te optimizations
>>> ? ?--disable-armv6 ? ? ? ? ?disable armv6 optimizations
>>> ? ?--disable-armv6t2 ? ? ? ?disable armv6t2 optimizations
>>> @@ -1181,6 +1182,7 @@ mmx_deps="x86"
>>> ?mmx2_deps="mmx"
>>> ?sse_deps="mmx"
>>> ?ssse3_deps="sse"
>>> +avx_deps="ssse3"
>>>
>>> ?aligned_stack_if_any="ppc x86"
>>> ?fast_64bit_if_any="alpha ia64 mips64 parisc64 ppc64 sparc64 x86_64"
>>
>> I suppose we'll need to test for AVX support in gcc/yasm. ?Do
>> something similar to the ssse3 test.
>
> We don't do that in yasm though. ?We just test if SSSE3 is supported:
> if not, we error out.
>
> AVX was added in yasm 0.7.0. ?Should we just fail with older versions,
> or disable HAVE_AVX?
>

Yasm 0.7.0 is fairly old. I think we can require it.

[...]

Regards,

Alex



More information about the ffmpeg-devel mailing list