From c2b9f784153f20b75444632ef3b57aa3b1597f31 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 15 May 2015 12:49:25 +0500 Subject: [PATCH] Cycles: Pass __KERNEL_EXPERIMENTAL__ to OpenCL split kernels Experimental feature set id currently unavailable for megakernel, it'll require some changes to the cache system to distinguish cached regular kernels from cached experimental kernels. Currently unused, but some features will be enabled soon. --- intern/cycles/device/device_opencl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index 05c8530a7a7..75d08cb44b1 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -2000,6 +2000,9 @@ public: #ifdef __WORK_STEALING__ common_custom_build_options += "-D__WORK_STEALING__ "; #endif + if(requested_features.experimental) { + common_custom_build_options += "-D__KERNEL_EXPERIMENTAL__ "; + } #define LOAD_KERNEL(program, name) \ do { \