projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6148e94
)
mesa/x86: Fix build with clang <= 3.3.
author
Vinson Lee
<vlee@freedesktop.org>
Mon, 26 May 2014 04:32:49 +0000
(21:32 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Mon, 26 May 2014 04:39:30 +0000
(21:39 -0700)
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>
src/mesa/x86/common_x86.c
patch
|
blob
|
history
diff --git
a/src/mesa/x86/common_x86.c
b/src/mesa/x86/common_x86.c
index 261f4917082d3c8a1e007ede45660152ffe83693..b401c354a33ebd2c20a958ed05155caec4cce1ac 100644
(file)
--- 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