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
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r--intern/cycles/device/device_opencl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index 7f16a73d966..a9e5f021a57 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -130,8 +130,13 @@ bool opencl_kernel_use_split(const string& platform_name,
const cl_device_type device_type)
{
if(getenv("CYCLES_OPENCL_SPLIT_KERNEL_TEST") != NULL) {
+ VLOG(1) << "Forcing split kernel to use.";
return true;
}
+ if(getenv("CYCLES_OPENCL_MEGA_KERNEL_TEST") != NULL) {
+ VLOG(1) << "Forcing mega kernel to use.";
+ return false;
+ }
/* TODO(sergey): Replace string lookups with more enum-like API,
* similar to device/vendor checks blender's gpu.
*/