[Bf-blender-cvs] [4a8803f] cycles_kernel_split: Refactor : Change variable name

varunsundar08 noreply at git.blender.org
Thu Apr 30 23:25:19 CEST 2015


Commit: 4a8803f573873edf1a975ffe7b8f63a1c5fcebed
Author: varunsundar08
Date:   Tue Apr 28 21:07:51 2015 +0530
Branches: cycles_kernel_split
https://developer.blender.org/rB4a8803f573873edf1a975ffe7b8f63a1c5fcebed

Refactor : Change variable name

===================================================================

M	intern/cycles/device/device_multi.cpp

===================================================================

diff --git a/intern/cycles/device/device_multi.cpp b/intern/cycles/device/device_multi.cpp
index 74b055e..f914e72 100644
--- a/intern/cycles/device/device_multi.cpp
+++ b/intern/cycles/device/device_multi.cpp
@@ -50,19 +50,18 @@ public:
 	{
 		Device *device;
 
-		bool use_split_kernel_test = false;
+		bool atleast_one_split_kernel_dev = false;
 
 		foreach(DeviceInfo& subinfo, info.multi_devices) {
 			device = Device::create(subinfo, stats, background);
-			use_split_kernel_test |= device->use_split_kernel;
+			atleast_one_split_kernel_dev |= device->use_split_kernel;
 			devices.push_back(SubDevice(device));
 		}
 
 		/* Set use_split_kernel of multi device to true, even
 		 * if one of the sub devices uses split kernel
-		 * todo: Enable it only for OpenCL multiple devices
 		 */
-		this->use_split_kernel = use_split_kernel_test;
+		this->use_split_kernel = atleast_one_split_kernel_dev;
 
 #ifdef WITH_NETWORK
 		/* try to add network devices */




More information about the Bf-blender-cvs mailing list