diff options
author | Mai Lavelle <mai.lavelle@gmail.com> | 2017-04-11 10:02:43 +0300 |
---|---|---|
committer | Mai Lavelle <mai.lavelle@gmail.com> | 2017-04-11 10:26:18 +0300 |
commit | d097c72f81a7a61ac5b96ca691114ac2765823d0 (patch) | |
tree | 20858370091642b48743bfd198b340b4a0e3c71b /intern/cycles/device/device_split_kernel.h | |
parent | 1e6038a426b992bf991040eac18ae7d83ae6a8bb (diff) |
Cycles: Only calculate global size of split kernel once to avoid changes
Global size depends on memory usage which might change during rendering.
Havent seen it happen but seems possible that this could cause the global
size to be different than what was used for allocating buffers.
Diffstat (limited to 'intern/cycles/device/device_split_kernel.h')
-rw-r--r-- | intern/cycles/device/device_split_kernel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/device/device_split_kernel.h b/intern/cycles/device/device_split_kernel.h index 15a94953a11..55548122c0c 100644 --- a/intern/cycles/device/device_split_kernel.h +++ b/intern/cycles/device/device_split_kernel.h @@ -95,6 +95,9 @@ private: /* Marked True in constructor and marked false at the end of path_trace(). */ bool first_tile; + /* Cached global size */ + size_t global_size[2]; + public: explicit DeviceSplitKernel(Device* device); virtual ~DeviceSplitKernel(); |