Cycles / OpenCL:

* Use advanced shading for nvidia as well, works fine on my Geforce 540M with sm_21. 
I tested the files from regression suite.
This commit is contained in:
Thomas Dinges 2013-05-27 17:13:36 +00:00
parent bb15701f86
commit 722680d7cf
2 changed files with 2 additions and 2 deletions

@ -69,7 +69,7 @@ static bool opencl_kernel_use_advanced_shading(const string& platform)
{
/* keep this in sync with kernel_types.h! */
if(platform == "NVIDIA CUDA")
return false;
return true;
else if(platform == "Apple")
return false;
else if(platform == "AMD Accelerated Parallel Processing")

@ -70,7 +70,7 @@ CCL_NAMESPACE_BEGIN
#ifdef __KERNEL_OPENCL_NVIDIA__
#define __KERNEL_SHADING__
//#define __KERNEL_ADV_SHADING__
#define __KERNEL_ADV_SHADING__
#endif
#ifdef __KERNEL_OPENCL_APPLE__