aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBlair Sadewitz <[email protected]>2008-07-15 17:12:23 -0600
committerBrian Paul <[email protected]>2008-07-15 17:30:36 -0600
commitb4adb9e1de6728febbb758d6633edf765868153e (patch)
treebdd22b96e5d990414667499d151c224ba07c1635 /src
parent45209baf5d0234c5c70cf2b581c9fda9f73b4eac (diff)
mesa: added test for __NetBSD__
Diffstat (limited to 'src')
-rw-r--r--src/mesa/x86/common_x86.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c
index 0b2af0a3706..d93241a977a 100644
--- 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;