Cycles: Cleanup, whitespace after keyword
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 30 Aug 2018 15:34:11 +0000 (17:34 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 30 Aug 2018 15:34:11 +0000 (17:34 +0200)
intern/cycles/blender/blender_sync.cpp
intern/cycles/device/device_cpu.cpp
intern/cycles/util/util_debug.cpp

index fcdadf0ad6e5d3dd74245b79a78518307facb2ed..5e47252e336f0161e6696e7a80020858263ef9b7 100644 (file)
@@ -682,7 +682,7 @@ SceneParams BlenderSync::get_scene_params(BL::Scene& b_scene,
        /* TODO(sergey): Once OSL supports per-microarchitecture optimization get
         * rid of this.
         */
-       if (params.shadingsystem == SHADINGSYSTEM_OSL) {
+       if(params.shadingsystem == SHADINGSYSTEM_OSL) {
                params.bvh_layout = BVH_LAYOUT_BVH4;
        }
        else {
index 5b3761f835335a836414293ed650ba6c0f9004ec..7c72ab1a00931618522982646be7b56f384f29d1 100644 (file)
@@ -1031,7 +1031,7 @@ void device_cpu_info(vector<DeviceInfo>& devices)
        if(system_cpu_support_sse2()) {
                info.bvh_layout_mask |= BVH_LAYOUT_BVH4;
        }
-       if (system_cpu_support_avx2()) {
+       if(system_cpu_support_avx2()) {
                info.bvh_layout_mask |= BVH_LAYOUT_BVH8;
        }
        info.has_volume_decoupled = true;
index a761c9c46dea7b20599423f4168094d8c8c16e84..68e6f26105736af96964fe802c8917ee53e5c277 100644 (file)
@@ -57,13 +57,13 @@ void DebugFlags::CPU::reset()
 #undef STRINGIFY
 #undef CHECK_CPU_FLAGS
 
-       if (getenv("CYCLES_BVH2") != NULL) {
+       if(getenv("CYCLES_BVH2") != NULL) {
                bvh_layout = BVH_LAYOUT_BVH2;
        }
-       else if (getenv("CYCLES_BVH4") != NULL) {
+       else if(getenv("CYCLES_BVH4") != NULL) {
                bvh_layout = BVH_LAYOUT_BVH4;
        }
-       else if (getenv("CYCLES_BVH8") != NULL) {
+       else if(getenv("CYCLES_BVH8") != NULL) {
                bvh_layout = BVH_LAYOUT_BVH8;
        }
        else {