Cycles: tweak for AMD opencl compile of advanced shading, from Daniel Genrich,
still does not work correct but should compile if you have enough memory.
This commit is contained in:
@@ -301,7 +301,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 ";
|
||||
if(platform_name == "Apple")
|
||||
if(platform_name == "Apple" || platform_name == "AMD Accelerated Parallel Processing")
|
||||
build_options += " -D__CL_NO_FLOAT3__ ";
|
||||
|
||||
return build_options;
|
||||
|
Reference in New Issue
Block a user