forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
0012-re-enable-SSE-on-mingw-w64-i686.patch
72 lines (70 loc) · 4.11 KB
/
0012-re-enable-SSE-on-mingw-w64-i686.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
diff -urN blender-2.78a.orig/intern/cycles/blender/blender_sync.cpp blender-2.78a/intern/cycles/blender/blender_sync.cpp
--- blender-2.78a.orig/intern/cycles/blender/blender_sync.cpp 2017-01-21 23:34:41.886257800 +0000
+++ blender-2.78a/intern/cycles/blender/blender_sync.cpp 2017-01-21 23:34:58.832197800 +0000
@@ -494,7 +494,7 @@
else
params.persistent_data = false;
-#if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86)))
+#if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86))) || defined(WIN32)
if(is_cpu) {
params.use_qbvh = DebugFlags().cpu.qbvh && system_cpu_support_sse2();
}
diff -urN blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_avx.cpp blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_avx.cpp
--- blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_avx.cpp 2017-01-21 23:34:42.502290800 +0000
+++ blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_avx.cpp 2017-01-21 23:35:05.135410900 +0000
@@ -19,7 +19,7 @@
* is compiled without for other CPU's. */
/* SSE optimization disabled for now on 32 bit, see bug #36316 */
-# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86)))
+# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86))) || defined(WIN32)
# define __KERNEL_SSE__
# define __KERNEL_SSE2__
# define __KERNEL_SSE3__
diff -urN blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_avx2.cpp blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_avx2.cpp
--- blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_avx2.cpp 2017-01-21 23:34:42.535294300 +0000
+++ blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_avx2.cpp 2017-01-21 23:35:11.368213100 +0000
@@ -19,7 +19,7 @@
# define KERNEL_STUB
#else
/* SSE optimization disabled for now on 32 bit, see bug #36316 */
-# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86)))
+# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86))) || defined(WIN32)
# define __KERNEL_SSE__
# define __KERNEL_SSE2__
# define __KERNEL_SSE3__
diff -urN blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_sse2.cpp blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_sse2.cpp
--- blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_sse2.cpp 2017-01-21 23:34:42.509291800 +0000
+++ blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_sse2.cpp 2017-01-21 23:35:16.535104100 +0000
@@ -19,7 +19,7 @@
# define KERNEL_STUB
#else
/* SSE optimization disabled for now on 32 bit, see bug #36316 */
-# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86)))
+# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86))) || defined(WIN32)
# define __KERNEL_SSE2__
# endif
#endif /* WITH_CYCLES_OPTIMIZED_KERNEL_SSE2 */
diff -urN blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_sse3.cpp blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_sse3.cpp
--- blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_sse3.cpp 2017-01-21 23:34:42.521290800 +0000
+++ blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_sse3.cpp 2017-01-21 23:35:21.888140600 +0000
@@ -19,7 +19,7 @@
# define KERNEL_STUB
#else
/* SSE optimization disabled for now on 32 bit, see bug #36316 */
-# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86)))
+# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86))) || defined(WIN32)
# define __KERNEL_SSE2__
# define __KERNEL_SSE3__
# define __KERNEL_SSSE3__
diff -urN blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_sse41.cpp blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_sse41.cpp
--- blender-2.78a.orig/intern/cycles/kernel/kernels/cpu/kernel_sse41.cpp 2017-01-21 23:34:42.528291800 +0000
+++ blender-2.78a/intern/cycles/kernel/kernels/cpu/kernel_sse41.cpp 2017-01-21 23:35:41.958064000 +0000
@@ -19,7 +19,7 @@
# define KERNEL_STUB
#else
/* SSE optimization disabled for now on 32 bit, see bug #36316 */
-# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86)))
+# if !(defined(__GNUC__) && (defined(__i386__) || defined(_M_IX86))) || defined(WIN32)
# define __KERNEL_SSE2__
# define __KERNEL_SSE3__
# define __KERNEL_SSSE3__