Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-01-15 02:51:38 +0400
committerThomas Dinges <blender@dingto.org>2014-01-15 02:51:59 +0400
commit9e3ddd70d492443e122bdf4460420fa2fa0e9dd8 (patch)
tree49d2a6419731a2ba764cbf2e69a58b6d673a7f2d
parentc00b8c538c7148ee4f0c69927be6953557166cd6 (diff)
Cycles: Disable SSE41 kernel on 32bit, we don't use intrinsics here anyway. Also disable it for Visual Studio < 2012, broken blendv instruction.
-rw-r--r--intern/cycles/util/util_optimization.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/cycles/util/util_optimization.h b/intern/cycles/util/util_optimization.h
index 6ffc7545335..61a2ad088dd 100644
--- a/intern/cycles/util/util_optimization.h
+++ b/intern/cycles/util/util_optimization.h
@@ -20,12 +20,16 @@
#define WITH_CYCLES_OPTIMIZED_KERNEL_SSE3
#define WITH_CYCLES_OPTIMIZED_KERNEL_SSE41
+/* VC2008 is not ready for sse41, probably broken blendv intrinsic... */
+#if defined(_MSC_VER) && (_MSC_VER < 1700)
+#undef WITH_CYCLES_OPTIMIZED_KERNEL_SSE41
+#endif
+
#endif
#if defined(i386) || defined(_M_IX86)
#define WITH_CYCLES_OPTIMIZED_KERNEL_SSE2
#define WITH_CYCLES_OPTIMIZED_KERNEL_SSE3
-#define WITH_CYCLES_OPTIMIZED_KERNEL_SSE41
#endif