Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-05-09 17:28:00 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-05-09 17:28:00 +0300
commitf680c1b54a28a02fb86271bca649da0660542e9a (patch)
tree4e0aacf401d31814e436e39c8704f428b9ff562e /intern/cycles/device/device_network.cpp
parent6fc166967989072bda085ae4cf54fc513f6f1daf (diff)
Cycles: Communicate number of closures and nodes feature set to the device
This way device can actually make a decision of how it can optimize the kernel in order to make it most efficient.
Diffstat (limited to 'intern/cycles/device/device_network.cpp')
-rw-r--r--intern/cycles/device/device_network.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/device/device_network.cpp b/intern/cycles/device/device_network.cpp
index 454f7301975..ca6d668a79d 100644
--- a/intern/cycles/device/device_network.cpp
+++ b/intern/cycles/device/device_network.cpp
@@ -205,6 +205,9 @@ public:
RPCSend snd(socket, &error_func, "load_kernels");
snd.add(requested_features.experimental);
+ snd.add(requested_features.max_closure);
+ snd.add(requested_features.max_nodes_group);
+ snd.add(requested_features.nodes_features);
snd.write();
bool result;
@@ -609,6 +612,9 @@ protected:
else if(rcv.name == "load_kernels") {
DeviceRequestedFeatures requested_features;
rcv.read(requested_features.experimental);
+ rcv.read(requested_features.max_closure);
+ rcv.read(requested_features.max_nodes_group);
+ rcv.read(requested_features.nodes_features);
bool result;
result = device->load_kernels(requested_features);