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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-03-25 18:09:05 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-03-25 18:09:05 +0300
commite4a265f05856eac40159b34b17d97c2ae1e14bb3 (patch)
tree7660c7f5d6fb6e65cc83c7d38f9992df506852c5 /intern/cycles/util/util_simd.cpp
parent700722f68633d270584af5463a804742537e30ed (diff)
Cycles: Add an option to build single kernel only which fits current CPU
This seems quite useful for the development, so you don't need to wait all the kernels to be re-compiled when working on a new feature, which speeds up re-iteration. Marked as an advanced option, so if it doesn't work so well in practice it's safe to revert anyway.
Diffstat (limited to 'intern/cycles/util/util_simd.cpp')
-rw-r--r--intern/cycles/util/util_simd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/util/util_simd.cpp b/intern/cycles/util/util_simd.cpp
index eb9e32800e1..de2df612578 100644
--- a/intern/cycles/util/util_simd.cpp
+++ b/intern/cycles/util/util_simd.cpp
@@ -15,7 +15,8 @@
* limitations under the License.
*/
-#ifdef WITH_KERNEL_SSE2
+#if (defined(WITH_KERNEL_SSE2)) || \
+ (defined(WITH_KERNEL_NATIVE) && defined(__SSE2__))
#define __KERNEL_SSE2__
#include "util_simd.h"