From e389ae9dcadb658bff5931a92606f43525d5af2e Mon Sep 17 00:00:00 2001 From: Mai Lavelle Date: Sat, 11 Nov 2017 00:57:59 -0500 Subject: [PATCH] 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. --- intern/cycles/device/device_split_kernel.cpp | 1 + 1 file changed, 1 insertion(+) 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; \ }