forked from bartvdbraak/blender
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:
parent
bb15701f86
commit
722680d7cf
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user