diff options
author | Vinson Lee <vlee@freedesktop.org> | 2014-05-25 21:32:49 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2014-05-25 21:39:30 -0700 |
commit | f0748b50146ed3cda77c625efea67b1b032e7737 (patch) | |
tree | 6f4cd82ce285b495a92bee27dcd28aa9bedc31de /src/mesa/x86 | |
parent | 6148e94e26ff4b6cbba452121c76d564f25f194d (diff) | |
download | external_mesa3d-f0748b50146ed3cda77c625efea67b1b032e7737.zip external_mesa3d-f0748b50146ed3cda77c625efea67b1b032e7737.tar.gz external_mesa3d-f0748b50146ed3cda77c625efea67b1b032e7737.tar.bz2 |
mesa/x86: Fix build with clang <= 3.3.
clang <= 3.3 cpuid.h does not define contants for feature bits.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79095
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'src/mesa/x86')
-rw-r--r-- | src/mesa/x86/common_x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c index 261f491..b401c35 100644 --- a/src/mesa/x86/common_x86.c +++ b/src/mesa/x86/common_x86.c @@ -52,6 +52,8 @@ #if !defined(bit_SSE4_1) && defined(bit_SSE41) /* XXX: clang defines bit_SSE41 instead of bit_SSE4_1 */ #define bit_SSE4_1 bit_SSE41 +#elif !defined(bit_SSE4_1) && !defined(bit_SSE41) +#define bit_SSE4_1 0x00080000 #endif #endif |