Fix T52125: principled BSDF missing with macOS OpenCL.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 20 Jul 2017 13:15:43 +0000 (15:15 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 20 Jul 2017 13:15:43 +0000 (15:15 +0200)
intern/cycles/kernel/kernel_types.h

index 37af98b32c7a19a8c4bb0c89b4e1d92881250ab6..e6a62c42a38133fa6c5b6128f86b3ac07c66d16d 100644 (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__ */