From 45b5bf034b053509d7175e74ddea22c658b4717e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sat, 18 Jul 2015 15:34:32 +0200 Subject: 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/device/device_opencl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'intern/cycles/device/device_opencl.cpp') diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index 3305ef4bb14..35810266218 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -1560,6 +1560,9 @@ protected: if(!requested_features.use_camera_motion) { build_options += " -D__NO_CAMERA_MOTION__"; } + if(!requested_features.use_baking) { + build_options += " -D__NO_BAKING__"; + } return build_options; } -- cgit v1.2.3