Page Menu
Home
Search
Configure Global Search
Log In
Paste
P974
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Sergey Sharybin (sergey)
on May 15 2019, 9:21 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
diff --git a/intern/cycles/device/device_cpu.cpp b/intern/cycles/device/device_cpu.cpp
index 837a8186064..dc9adcb1537 100644
--- a/intern/cycles/device/device_cpu.cpp
+++ b/intern/cycles/device/device_cpu.cpp
@@ -332,9 +332,11 @@ class CPUDevice : public Device {
if (DebugFlags().cpu.has_sse2() && system_cpu_support_sse2()) {
bvh_layout_mask |= BVH_LAYOUT_BVH4;
}
+#if defined(__x86_64__) || defined(_M_X64)
if (DebugFlags().cpu.has_avx2() && system_cpu_support_avx2()) {
bvh_layout_mask |= BVH_LAYOUT_BVH8;
}
+#endif
#ifdef WITH_EMBREE
bvh_layout_mask |= BVH_LAYOUT_EMBREE;
#endif /* WITH_EMBREE */
Event Timeline
Sergey Sharybin (sergey)
created this paste.
May 15 2019, 9:21 AM
Sergey Sharybin (sergey)
created this object with edit policy "Administrators".
Sergey Sharybin (sergey)
mentioned this in
T64624: Ctest : Win32 + AVX2 fails virtually all cycles tests.
.
May 15 2019, 9:23 AM
Log In to Comment