Cycles / OpenCL:

* 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.
This commit is contained in:
Thomas Dinges
2012-04-05 16:19:51 +00:00
parent 6e93e33294
commit d024238fb2
2 changed files with 2 additions and 2 deletions

View 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__ ";

View File

@@ -45,7 +45,7 @@ CCL_NAMESPACE_BEGIN
#endif
#ifdef __KERNEL_OPENCL__
//#define __KERNEL_SHADING__
#define __KERNEL_SHADING__
//#define __KERNEL_ADV_SHADING__
#endif