Re: [Mesa-dev] [PATCH] mesa: guard better when building with sse4.1 optimisations

2014-08-26 Thread Emil Velikov
On 01/08/14 17:06, Emil Velikov wrote: > When the compiler is not capable/does not accept -msse4.1 while the target > has the instruction set we'll blow up as _mesa_streaming_load_memcpy is > going to be undefined. > > To make sure that never happens, wrap the runtime cpu check+caller in an > ifde

Re: [Mesa-dev] [PATCH] mesa: guard better when building with sse4.1 optimisations

2014-08-12 Thread Matt Turner
On Tue, Aug 12, 2014 at 2:52 PM, Matt Turner wrote: >> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c >> b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c >> index b36ffc7..1691b15 100644 >> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c >> +++ b/src/mesa/drivers/dri/i965/intel_mip

Re: [Mesa-dev] [PATCH] mesa: guard better when building with sse4.1 optimisations

2014-08-12 Thread Matt Turner
On Fri, Aug 1, 2014 at 9:06 AM, Emil Velikov wrote: > When the compiler is not capable/does not accept -msse4.1 while the target > has the instruction set we'll blow up as _mesa_streaming_load_memcpy is > going to be undefined. > > To make sure that never happens, wrap the runtime cpu check+caller

Re: [Mesa-dev] [PATCH] mesa: guard better when building with sse4.1 optimisations

2014-08-01 Thread Emil Velikov
On 01/08/14 17:06, Emil Velikov wrote: > When the compiler is not capable/does not accept -msse4.1 while the target > has the instruction set we'll blow up as _mesa_streaming_load_memcpy is > going to be undefined. > > To make sure that never happens, wrap the runtime cpu check+caller in an > ifde

[Mesa-dev] [PATCH] mesa: guard better when building with sse4.1 optimisations

2014-08-01 Thread Emil Velikov
When the compiler is not capable/does not accept -msse4.1 while the target has the instruction set we'll blow up as _mesa_streaming_load_memcpy is going to be undefined. To make sure that never happens, wrap the runtime cpu check+caller in an ifdef thus do not compile that hunk of the code. Fix t