summaryrefslogtreecommitdiff
path: root/community/blender/arm-no-sse2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/blender/arm-no-sse2.patch')
-rw-r--r--community/blender/arm-no-sse2.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/blender/arm-no-sse2.patch b/community/blender/arm-no-sse2.patch
new file mode 100644
index 00000000..722c70e9
--- /dev/null
+++ b/community/blender/arm-no-sse2.patch
@@ -0,0 +1,15 @@
+diff --git a/intern/cycles/bvh/bvh_embree.cpp b/intern/cycles/bvh/bvh_embree.cpp
+index d12a0c1..1df2de3 100644
+--- a/intern/cycles/bvh/bvh_embree.cpp
++++ b/intern/cycles/bvh/bvh_embree.cpp
+@@ -299,8 +299,10 @@ BVHEmbree::BVHEmbree(const BVHParams &params_,
+ use_ribbons(params.curve_flags & CURVE_KN_RIBBONS),
+ dynamic_scene(true)
+ {
++#if defined(__x86_64__) || defined(_M_X64)
+ _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
+ _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
++#endif
+ thread_scoped_lock lock(rtc_shared_mutex);
+ if (rtc_shared_users == 0) {
+ rtc_shared_device = rtcNewDevice("verbose=0");