Fix T52125: principled BSDF missing with macOS OpenCL.

This commit is contained in:
Brecht Van Lommel 2017-07-20 15:15:43 +02:00
parent c1ca3c8038
commit 3b12a71972
Notes: blender-bot 2023-02-14 06:46:27 +01:00
Referenced by issue #52125, Principled shader not rendering on GPU (Osx 10.11.6)
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,7 @@ CCL_NAMESPACE_BEGIN
# ifdef __KERNEL_OPENCL_APPLE__
# define __KERNEL_SHADING__
# define __KERNEL_ADV_SHADING__
# define __PRINCIPLED__
# define __CMJ__
/* TODO(sergey): Currently experimental section is ignored here,
* this is because megakernel in device_opencl does not support
@ -154,6 +155,7 @@ CCL_NAMESPACE_BEGIN
# define __CL_USE_NATIVE__
# define __KERNEL_SHADING__
# define __KERNEL_ADV_SHADING__
# define __PRINCIPLED__
# define __CMJ__
# endif /* __KERNEL_OPENCL_INTEL_CPU__ */