Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-05-15 10:49:25 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-05-15 11:22:47 +0300
commitc2b9f784153f20b75444632ef3b57aa3b1597f31 (patch)
treed59b9e44fb58e3ac96aacfcb4ba09ffa97bd7113 /intern
parent2ab909a88c3e6503bb2505cf2ac573f1f3363faa (diff)
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.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device_opencl.cpp3
1 files changed, 3 insertions, 0 deletions
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 { \