Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_cpu.cpp
| Show First 20 Lines • Show All 332 Lines • ▼ Show 20 Lines | #undef KERNEL_FUNCTIONS | ||||
| } | } | ||||
| virtual BVHLayoutMask get_bvh_layout_mask() const | virtual BVHLayoutMask get_bvh_layout_mask() const | ||||
| { | { | ||||
| BVHLayoutMask bvh_layout_mask = BVH_LAYOUT_BVH2; | BVHLayoutMask bvh_layout_mask = BVH_LAYOUT_BVH2; | ||||
| if (DebugFlags().cpu.has_sse2() && system_cpu_support_sse2()) { | if (DebugFlags().cpu.has_sse2() && system_cpu_support_sse2()) { | ||||
| bvh_layout_mask |= BVH_LAYOUT_BVH4; | bvh_layout_mask |= BVH_LAYOUT_BVH4; | ||||
| } | } | ||||
| #if defined(__x86_64__) || defined(_M_X64) | /* MSVC does not support the -march=native switch and you always end up */ | ||||
| /* with an sse2 kernel when you use WITH_KERNEL_NATIVE. We *cannot* feed */ | |||||
| /* that kernel BVH8 even if the CPU flags would allow for it. */ | |||||
dfelinto: Drop the extra empty spaces. | |||||
| #if (defined(__x86_64__) || defined(_M_X64)) && !(defined(_MSC_VER) && defined(WITH_KERNEL_NATIVE)) | |||||
Done Inline Actionstypo: switch, not swtich dfelinto: typo: switch, not swtich | |||||
| if (DebugFlags().cpu.has_avx2() && system_cpu_support_avx2()) { | if (DebugFlags().cpu.has_avx2() && system_cpu_support_avx2()) { | ||||
| bvh_layout_mask |= BVH_LAYOUT_BVH8; | bvh_layout_mask |= BVH_LAYOUT_BVH8; | ||||
| } | } | ||||
| #endif | #endif | ||||
| #ifdef WITH_EMBREE | #ifdef WITH_EMBREE | ||||
| bvh_layout_mask |= BVH_LAYOUT_EMBREE; | bvh_layout_mask |= BVH_LAYOUT_EMBREE; | ||||
| #endif /* WITH_EMBREE */ | #endif /* WITH_EMBREE */ | ||||
| return bvh_layout_mask; | return bvh_layout_mask; | ||||
| ▲ Show 20 Lines • Show All 926 Lines • Show Last 20 Lines | |||||
Drop the extra empty spaces.