Fix #32951: Progressive refine crashing Blender when used with multiple cuda devices

This time issue was caused by Save Buffers enabled and the reason blender
crashed was tiles generated by cycles didn't match tiles generated by
openexr.

Currently solved it in a way that background rendering will allocate tiles
in the same way render parts are generated in blender. Viewport rendering
will still be using sliced image, but it's more tricky to change and it's
no so big deal for now.
This commit is contained in:
Sergey Sharybin
2012-10-24 14:43:29 +00:00
parent e2874259ae
commit d4ee07537e
3 changed files with 75 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ CCL_NAMESPACE_BEGIN
Session::Session(const SessionParams& params_)
: params(params_),
tile_manager(params.progressive, params.samples, params.tile_size, params.start_resolution,
params.background == false || params.progressive_refine,
params.background == false || params.progressive_refine, params.background,
max(params.device.multi_devices.size(), 1))
{
device_use_gl = ((params.device.type != DEVICE_CPU) && !params.background);