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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-10-29 19:45:57 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-10-29 19:52:56 +0300
commit3300b1f23249819a3cb6d279c2b2425f97fde3f6 (patch)
treed143899e52a512a2a4b89cfcecef361f87ed0e94 /intern/cycles/device/device_opencl.cpp
parent4ca688a963408fe326ba8e2a696d7b0fdc4eb1e4 (diff)
Cycles: Add option to force mega kernel to be used
This way it's possible to test mega kernel on various hardware. That being said mega kernel seems to work on Fiji card here in the studio.
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.
*/