Cycles / OpenCL:
authorThomas Dinges <blender@dingto.org>
Thu, 5 Apr 2012 16:19:51 +0000 (16:19 +0000)
committerThomas Dinges <blender@dingto.org>
Thu, 5 Apr 2012 16:19:51 +0000 (16:19 +0000)
* Enable __KERNEL_SHADING__ per default for OpenCL.
This enables basic shading (color, emission, textures...) for AMD cards.

You need the latest AMD catalyst driver in order to have this work.

intern/cycles/device/device_opencl.cpp
intern/cycles/kernel/kernel_types.h

index f3d9aea452a5c3fb66ef8c2539d1f3369efc3f72..ee8070393c22daa5ee39bd97505252d9ff372234 100644 (file)
@@ -300,7 +300,7 @@ public:
                
                /* full shading only on NVIDIA cards at the moment */
                if(platform_name == "NVIDIA CUDA")
-                       build_options += "-D__KERNEL_SHADING__ -D__MULTI_CLOSURE__ -cl-nv-maxrregcount=24 -cl-nv-verbose ";
+                       build_options += "-D__MULTI_CLOSURE__ -cl-nv-maxrregcount=24 -cl-nv-verbose ";
                if(platform_name == "Apple" || platform_name == "AMD Accelerated Parallel Processing")
                        build_options += " -D__CL_NO_FLOAT3__ ";
 
index 391dcd12dade928ce22465c96161fe8475743549..32da7c3061626da80c6d4b1a21370e90ea97de8c 100644 (file)
@@ -45,7 +45,7 @@ CCL_NAMESPACE_BEGIN
 #endif
 
 #ifdef __KERNEL_OPENCL__
-//#define __KERNEL_SHADING__
+#define __KERNEL_SHADING__
 //#define __KERNEL_ADV_SHADING__
 #endif