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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-18 20:52:02 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-18 20:52:02 +0400
commit649dd6f64846ca959566389bc8ce58f87dcb499f (patch)
tree207721007086416b9b1c0d851a41d7bbe01f79be /intern/cycles/util/util_types.h
parente6c54c26aef3334078c27730c9ea7fa546ecb51e (diff)
Fix cycles crash on some processors. We actually need S-SSE3 support for this
new BVH traversal code, not just SSE3.
Diffstat (limited to 'intern/cycles/util/util_types.h')
-rw-r--r--intern/cycles/util/util_types.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/intern/cycles/util/util_types.h b/intern/cycles/util/util_types.h
index 7ad0403e6c6..d0116186ee8 100644
--- a/intern/cycles/util/util_types.h
+++ b/intern/cycles/util/util_types.h
@@ -69,15 +69,19 @@
#include <xmmintrin.h> /* SSE 1 */
#include <emmintrin.h> /* SSE 2 */
#include <pmmintrin.h> /* SSE 3 */
-#include <tmmintrin.h> /* SSE 3 */
+#include <tmmintrin.h> /* SSSE 3 */
#include <smmintrin.h> /* SSE 4 */
#ifndef __KERNEL_SSE2__
#define __KERNEL_SSE2__
#endif
-#ifndef __KERNEL_SSE3__
-#define __KERNEL_SSE3__
+#ifndef __KERNEL_SSSE3__
+#define __KERNEL_SSSE3__
+#endif
+
+#ifndef __KERNEL_SSSE3__
+#define __KERNEL_SSSE3__
#endif
#ifndef __KERNEL_SSE4__
@@ -86,7 +90,7 @@
#else
-#if defined(__x86_64__) || defined(__KERNEL_SSE3__)
+#if defined(__x86_64__) || defined(__KERNEL_SSSE3__)
/* MinGW64 has conflicting declarations for these SSE headers in <windows.h>.
* Since we can't avoid including <windows.h>, better only include that */
@@ -96,9 +100,11 @@
#include <xmmintrin.h> /* SSE 1 */
#include <emmintrin.h> /* SSE 2 */
-#ifdef __KERNEL_SSE3__
+#ifdef __KERNEL_SSSE3__
#include <pmmintrin.h> /* SSE 3 */
-#include <tmmintrin.h> /* SSE 3 */
+#endif
+#ifdef __KERNEL_SSSE3__
+#include <tmmintrin.h> /* SSSE 3 */
#endif
#endif
@@ -110,10 +116,9 @@
#endif
+/* int8_t, uint16_t, and friends */
#ifndef _WIN32
-
#include <stdint.h>
-
#endif
#endif
@@ -486,7 +491,7 @@ __device_inline int4 make_int4(const float3& f)
#endif
-#ifdef __KERNEL_SSE3__
+#ifdef __KERNEL_SSSE3__
/* SSE shuffle utility functions */