Cycles: Disable OpenCL on macOS
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 7 Dec 2018 13:37:47 +0000 (14:37 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 7 Dec 2018 13:37:47 +0000 (14:37 +0100)
This is unfortunate, but the number of bugs in this configuration
keeps growing, and almost all of them are caused by bug in OpenCL
compiler.

The compiler is not likely to be fixed, since Apple declared OpenCL
deprecated.

This evil commit is aimed to keep officially supported features
of Blender in a good working and stable state.

intern/cycles/device/opencl/opencl_util.cpp

index 4c9f3cd6ef74b29c5df42282d2c493cb39331a9c..f43aa5f350a46fae4e417da4e54707e6e99d2fca 100644 (file)
@@ -645,7 +645,7 @@ bool OpenCLInfo::device_supported(const string& platform_name,
                return true;
        }
        if(platform_name == "Apple" && device_type == CL_DEVICE_TYPE_GPU) {
-               return true;
+               return false;
        }
        return false;
 }