[vlc-devel] [PATCH 1/1] picture: increase alignment for AVX2 on x86 to 32 byte
Janne Grunau
janne-vlc at jannau.net
Sun Nov 27 17:13:50 CET 2016
On 2016-11-27 18:12:29 +0200, Ilkka Ollakka wrote:
> On Sun, Nov 27, 2016 at 04:29:15PM +0100, Janne Grunau wrote:
> > Required for direct rendering with AVX2 enabled libavcodec and AVX2
> > optimizations for the blend deinterlacer.
> > ---
> > configure.ac | 8 ++++++++
> > src/misc/picture.c | 4 ++--
> > 2 files changed, 10 insertions(+), 2 deletions(-)
>
> > diff --git a/configure.ac b/configure.ac
> > index 1e1f2f25b1..129668ea80 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -1565,6 +1565,14 @@ AS_IF([test "${enable_altivec}" = "yes"], [
> > AC_SUBST(ALTIVEC_CFLAGS)
> > AM_CONDITIONAL([HAVE_ALTIVEC], [test "$have_altivec" = "yes"])
>
> > +dnl Alignment for SIMD functions
> > +dnl AVX2 on x86 needs 32 byte alignment, everything else needs 16 byte alignment
> > +case "$host_cpu" in
> > + i?86|x86_64) simd_align=32 ;;
> > + *) simd_align=16 ;;
> > +esac
> > +AC_DEFINE([SIMD_ALIGNMENT], [32], [required alignment for SIMD])
>
> Shouldn't this be AC_DEFINE([SIMD_ALIGNMENT], [${simd_align}].. or
> similar? Just looking that you first define simd_align, but don't use
> it.
yes, thanks for spotting that
Janne
More information about the vlc-devel
mailing list