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:
@@ -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__ ";
|
||||
|
||||
|
@@ -45,7 +45,7 @@ CCL_NAMESPACE_BEGIN
|
||||
#endif
|
||||
|
||||
#ifdef __KERNEL_OPENCL__
|
||||
//#define __KERNEL_SHADING__
|
||||
#define __KERNEL_SHADING__
|
||||
//#define __KERNEL_ADV_SHADING__
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user