[Bf-blender-cvs] [52c834983f6] master: Fix T72282: Cycles OpenCL error after recent math node changes

Brecht Van Lommel noreply at git.blender.org
Sun Dec 8 19:44:10 CET 2019


Commit: 52c834983f68974d554f11a144fef6f3a4acac82
Author: Brecht Van Lommel
Date:   Sun Dec 8 19:43:17 2019 +0100
Branches: master
https://developer.blender.org/rB52c834983f68974d554f11a144fef6f3a4acac82

Fix T72282: Cycles OpenCL error after recent math node changes

===================================================================

M	intern/cycles/kernel/kernel_compat_opencl.h

===================================================================

diff --git a/intern/cycles/kernel/kernel_compat_opencl.h b/intern/cycles/kernel/kernel_compat_opencl.h
index 552734cc361..4963f1cd196 100644
--- a/intern/cycles/kernel/kernel_compat_opencl.h
+++ b/intern/cycles/kernel/kernel_compat_opencl.h
@@ -126,6 +126,8 @@
 #define fminf(x, y) fmin(((float)(x)), ((float)(y)))
 #define fmodf(x, y) fmod((float)(x), (float)(y))
 #define sinhf(x) sinh(((float)(x)))
+#define coshf(x) cosh(((float)(x)))
+#define tanhf(x) tanh(((float)(x)))
 
 /* Use native functions with possibly lower precision for performance,
  * no issues found so far. */



More information about the Bf-blender-cvs mailing list