[Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check
Matt Turner
mattst88 at gmail.com
Sat Nov 15 10:38:54 PST 2014
On Sat, Nov 15, 2014 at 10:30 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 15/11/14 18:21, Matt Turner wrote:
>> On Sat, Nov 15, 2014 at 9:04 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>> Man this thing is _very_ messy.
>>> Matt from the last hunk it seems that pixman might need fixing. Should
>>> be bother with that, or let people have fun when they hit it :P
>>
>> I don't know what you mean, specifically.
>>
> configure.ac (in pixman) does:
>
> CFLAGS="$CFLAGS -msse4.1"
> AC_COMPILE_IFELSE(...)
Where? I see
MMX_CFLAGS="-mmmx -Winline"
...
CFLAGS="$MMX_CFLAGS $CFLAGS"
SSE2_CFLAGS="-msse2 -Winline"
...
CFLAGS="$SSE2_CFLAGS $CFLAGS"
and
SSSE3_CFLAGS="-mssse3 -Winline"
...
CFLAGS="$SSSE3_CFLAGS $CFLAGS"
which looks like it's doing the right thing. I tried building it with
-mno-ssse3 and it correctly disabled the SSSE3 code.
More information about the mesa-dev
mailing list