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:
Brecht Van Lommel
2012-02-24 15:53:19 +00:00
parent ae38adbf55
commit f4bb31f26b

View File

@@ -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;