projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c6dcbf
)
mesa: added test for __NetBSD__
author
Blair Sadewitz
<blair.sadewitz@gmail.com>
Tue, 15 Jul 2008 23:12:23 +0000
(17:12 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 15 Jul 2008 23:12:23 +0000
(17:12 -0600)
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 0b2af0a3706b0988f9307c7fadc996fea3faac90..d93241a977aca7c52a763df63087c35cc65fa22a 100644
(file)
--- a/
src/mesa/x86/common_x86.c
+++ b/
src/mesa/x86/common_x86.c
@@
-113,6
+113,14
@@
static void check_os_sse_support( void )
if (ret || !enabled)
_mesa_x86_cpu_features &= ~(X86_FEATURE_XMM);
}
+#elif defined (__NetBSD__)
+ {
+ int ret, enabled;
+ size_t len = sizeof(enabled);
+ ret = sysctlbyname("machdep.sse", &enabled, &len, (void *)NULL, 0);
+ if (ret || !enabled)
+ _mesa_x86_cpu_features &= ~(X86_FEATURE_XMM);
+ }
#elif defined(WIN32)
LPTOP_LEVEL_EXCEPTION_FILTER oldFilter;