Cycles; Make baking a feature-specific option
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 18 Jul 2015 13:34:32 +0000 (15:34 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 18 Jul 2015 14:02:08 +0000 (16:02 +0200)
commit45b5bf034b053509d7175e74ddea22c658b4717e
tree138826d0ebe72d4985ada1f84e11a392243a5f7f
parent36a952e3e487ede34ece9330a9ae1439364c5bdd
Cycles; Make baking a feature-specific option

This means render devices now might skip building baking kernels in cases when
only actual render-related functionality is used.

For now it's only implemented for OpenCL split kernel device and mainly needed
to work around some compiler-specific bugs which crashes on building the kernel.

Using OpenCL for baking might still crash the driver, but at least there is now
higher probability of that GPU will be usable to render the scene.

Real fix should actually be done in the driver side.
intern/cycles/blender/blender_session.cpp
intern/cycles/device/device.h
intern/cycles/device/device_opencl.cpp
intern/cycles/render/session.cpp