Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-17 Thread Emil Velikov
On 17/11/14 14:44, Erik Faye-Lund wrote: > On Sat, Nov 15, 2014 at 7:18 PM, Matt Turner wrote: >> On Sat, Nov 15, 2014 at 10:13 AM, Ilia Mirkin wrote: >>> On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov >>> wrote: So when checking/building sse code we have three possibilities: 1 Old c

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-17 Thread Erik Faye-Lund
On Mon, Nov 17, 2014 at 3:50 PM, Ilia Mirkin wrote: > On Mon, Nov 17, 2014 at 9:44 AM, Erik Faye-Lund wrote: >> On Sat, Nov 15, 2014 at 7:18 PM, Matt Turner wrote: >>> On Sat, Nov 15, 2014 at 10:13 AM, Ilia Mirkin wrote: On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov wrote: > So

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-17 Thread Ilia Mirkin
On Mon, Nov 17, 2014 at 9:44 AM, Erik Faye-Lund wrote: > On Sat, Nov 15, 2014 at 7:18 PM, Matt Turner wrote: >> On Sat, Nov 15, 2014 at 10:13 AM, Ilia Mirkin wrote: >>> On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov >>> wrote: So when checking/building sse code we have three possibilities

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-17 Thread Erik Faye-Lund
On Sat, Nov 15, 2014 at 7:18 PM, Matt Turner wrote: > On Sat, Nov 15, 2014 at 10:13 AM, Ilia Mirkin wrote: >> On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov >> wrote: >>> So when checking/building sse code we have three possibilities: >>> 1 Old compiler, throws an error when using -msse* >>>

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Emil Velikov
On 15/11/14 18:38, Matt Turner wrote: > On Sat, Nov 15, 2014 at 10:30 AM, Emil Velikov > wrote: >> On 15/11/14 18:21, Matt Turner wrote: >>> On Sat, Nov 15, 2014 at 9:04 AM, Emil Velikov >>> wrote: Man this thing is _very_ messy. Matt from the last hunk it seems that pixman might need

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Ilia Mirkin
On Sat, Nov 15, 2014 at 1:25 PM, Emil Velikov wrote: > On 15/11/14 18:18, Matt Turner wrote: >> On Sat, Nov 15, 2014 at 10:13 AM, Ilia Mirkin wrote: >>> On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov >>> wrote: So when checking/building sse code we have three possibilities: 1 Old com

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Matt Turner
On Sat, Nov 15, 2014 at 10:30 AM, Emil Velikov wrote: > On 15/11/14 18:21, Matt Turner wrote: >> On Sat, Nov 15, 2014 at 9:04 AM, Emil Velikov >> 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

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Emil Velikov
On 15/11/14 18:21, Matt Turner wrote: > On Sat, Nov 15, 2014 at 9:04 AM, Emil Velikov > wrote: >> So when checking/building sse code we have three possibilities: >> 1 Old compiler, throws an error when using -msse* >> 2 New compiler, user disables sse* (-mno-sse*) >> 3 New compiler, user doesn

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Siavash Eliasi
Tested on Core2 Q9550, using -march=native with and without -mno-sse4.1flag. It works perfect :) Also David Heidelberg kindly tested the patch which permanently enables optimized code paths if supported by target machine and it was okay. http://patchwork.freedesktop.org/patch/36488/ And a sma

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Emil Velikov
On 15/11/14 18:18, Matt Turner wrote: > On Sat, Nov 15, 2014 at 10:13 AM, Ilia Mirkin wrote: >> On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov >> wrote: >>> So when checking/building sse code we have three possibilities: >>> 1 Old compiler, throws an error when using -msse* >>> 2 New compiler,

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Matt Turner
On Sat, Nov 15, 2014 at 9:04 AM, Emil Velikov wrote: > So when checking/building sse code we have three possibilities: > 1 Old compiler, throws an error when using -msse* > 2 New compiler, user disables sse* (-mno-sse*) > 3 New compiler, user doesn't disable sse > > The original code, added cod

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Matt Turner
On Sat, Nov 15, 2014 at 10:13 AM, Ilia Mirkin wrote: > On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov > wrote: >> So when checking/building sse code we have three possibilities: >> 1 Old compiler, throws an error when using -msse* >> 2 New compiler, user disables sse* (-mno-sse*) >> 3 New com

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Ilia Mirkin
On Sat, Nov 15, 2014 at 1:13 PM, Ilia Mirkin wrote: > On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov > wrote: >> So when checking/building sse code we have three possibilities: >> 1 Old compiler, throws an error when using -msse* >> 2 New compiler, user disables sse* (-mno-sse*) >> 3 New comp

Re: [Mesa-dev] [PATCH 1/2] configure.ac: roll up a program for the sse4.1 check

2014-11-15 Thread Ilia Mirkin
On Sat, Nov 15, 2014 at 12:04 PM, Emil Velikov wrote: > So when checking/building sse code we have three possibilities: > 1 Old compiler, throws an error when using -msse* > 2 New compiler, user disables sse* (-mno-sse*) > 3 New compiler, user doesn't disable sse > > The original code, added co