Re: [Mesa-dev] [PATCH 1/2] mesa/x86: add SSE4.1 runtime detection

2014-05-02 Thread Matt Turner
On Fri, May 2, 2014 at 11:49 AM, Ian Romanick wrote: > Gallium has a bunch of CPU detection code, so if we need to update the > CPU detection code in core Mesa, we should move the Gallium code to a > higher level in the tree to be shared. I believe this has been > discussed before. I just sent t

Re: [Mesa-dev] [PATCH 1/2] mesa/x86: add SSE4.1 runtime detection

2014-05-02 Thread Ian Romanick
NAK. common_x86 is only used for 32-bit builds, and there is nothing equivalent for 64-bit. As a result, this will disable the optimization completely for 64-bit. Gallium has a bunch of CPU detection code, so if we need to update the CPU detection code in core Mesa, we should move the Gallium co

[Mesa-dev] [PATCH 1/2] mesa/x86: add SSE4.1 runtime detection

2014-05-02 Thread Matthew Atwood
From: Matt Atwood add in bit to _mesa_x86_features for sse4.1, along with macros to query --- src/mesa/x86/common_x86.c | 3 +++ src/mesa/x86/common_x86_features.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c index 3c1adc9