diff options
author | Blair Sadewitz <blair.sadewitz@gmail.com> | 2008-07-15 17:12:23 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-07-15 17:30:30 -0600 |
commit | 65b99f8a1415f1e117c59b009bf3a76cad806454 (patch) | |
tree | 3098e722350447a07593400d0f67dc33a1ba1c29 | |
parent | 4c4418207f27044f365358725da9d3f0768256bb (diff) |
mesa: added test for __NetBSD__
-rw-r--r-- | src/mesa/x86/common_x86.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c index bbdebe046f..d98e1f689a 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; |