[Mesa-dev] Mesa (master): mesa/x86: Fix build with clang 3.4.

Ian Romanick idr at freedesktop.org
Fri May 23 09:27:18 PDT 2014


Should this also go to 10.2?  Earlier?

On 05/23/2014 03:37 AM, Jose Fonseca wrote:
> Module: Mesa
> Branch: master
> Commit: 94dbc16dc4c1b7685a9dab89a39e8fea844194df
> URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=94dbc16dc4c1b7685a9dab89a39e8fea844194df
> 
> Author: José Fonseca <jfonseca at vmware.com>
> Date:   Fri May 23 11:36:58 2014 +0100
> 
> mesa/x86: Fix build with clang 3.4.
> 
> It defines bit_SSE41 instead of bit_SSE4_1.
> 
> Fixes https://bugs.freedesktop.org/show_bug.cgi?id=79095
> 
> Trivial.
> 
> ---
> 
>  src/mesa/x86/common_x86.c |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c
> index ac77c9d..261f491 100644
> --- a/src/mesa/x86/common_x86.c
> +++ b/src/mesa/x86/common_x86.c
> @@ -49,6 +49,10 @@
>  #endif
>  #if defined(USE_X86_64_ASM)
>  #include <cpuid.h>
> +#if !defined(bit_SSE4_1) && defined(bit_SSE41)
> +/* XXX: clang defines bit_SSE41 instead of bit_SSE4_1 */
> +#define bit_SSE4_1 bit_SSE41
> +#endif
>  #endif
>  
>  #include "main/imports.h"
> 
> _______________________________________________
> mesa-commit mailing list
> mesa-commit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-commit
> 



More information about the mesa-dev mailing list