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:
authorMai Lavelle <mai.lavelle@gmail.com>2017-03-17 08:31:11 +0300
committerMai Lavelle <mai.lavelle@gmail.com>2017-03-17 08:54:10 +0300
commit2cae58524cccd9bea0c5b876c21bc8177bd23a43 (patch)
tree7f0998ec1f2dcafc3b05a2ba26bd192572506379 /intern/cycles/device/device_cpu.cpp
parent60a344b43d19524d5c97c6c19efd5c628b5bbbe1 (diff)
Cycles: Improve memory usage of CPU split kernel by using smaller global size
Diffstat (limited to 'intern/cycles/device/device_cpu.cpp')
-rw-r--r--intern/cycles/device/device_cpu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/device/device_cpu.cpp b/intern/cycles/device/device_cpu.cpp
index 273c3b48936..2fc2745a3a6 100644
--- a/intern/cycles/device/device_cpu.cpp
+++ b/intern/cycles/device/device_cpu.cpp
@@ -856,8 +856,7 @@ int2 CPUSplitKernel::split_kernel_local_size()
}
int2 CPUSplitKernel::split_kernel_global_size(device_memory& /*kg*/, device_memory& /*data*/, DeviceTask *task) {
- /* TODO(mai): this needs investigation but cpu gives incorrect render if global size doesnt match tile size */
- return task->requested_tile_size;
+ return make_int2(64, 1);
}
uint64_t CPUSplitKernel::state_buffer_size(device_memory& kernel_globals, device_memory& /*data*/, size_t num_threads) {