[Bf-blender-cvs] [e389ae9dcad] master: Cycles: Set error if a split kernel fails to load

Mai Lavelle noreply at git.blender.org
Sat Nov 11 07:02:18 CET 2017


Commit: e389ae9dcadb658bff5931a92606f43525d5af2e
Author: Mai Lavelle
Date:   Sat Nov 11 00:57:59 2017 -0500
Branches: master
https://developer.blender.org/rBe389ae9dcadb658bff5931a92606f43525d5af2e

Cycles: Set error if a split kernel fails to load

To help catch cases where adding a new kernel is missed for one of the
device implementations.

===================================================================

M	intern/cycles/device/device_split_kernel.cpp

===================================================================

diff --git a/intern/cycles/device/device_split_kernel.cpp b/intern/cycles/device/device_split_kernel.cpp
index 566d4020b33..74135a1f3c8 100644
--- a/intern/cycles/device/device_split_kernel.cpp
+++ b/intern/cycles/device/device_split_kernel.cpp
@@ -91,6 +91,7 @@ bool DeviceSplitKernel::load_kernels(const DeviceRequestedFeatures& requested_fe
 #define LOAD_KERNEL(name) \
 		kernel_##name = get_split_kernel_function(#name, requested_features); \
 		if(!kernel_##name) { \
+			device->set_error(string("Split kernel error: failed to load kernel_") + #name); \
 			return false; \
 		}



More information about the Bf-blender-cvs mailing list