Fix AMD OpenCL build error after recent changes.
Always use native function since this was already the case due to __CL_USE_NATIVE__ not being defined in time, and seems to have caused no known issues.
This commit is contained in:
parent
8162a6c51d
commit
dff88a92a4
Notes:
blender-bot
2023-02-14 06:00:51 +01:00
Referenced by issue #62727, Split kernel error: failed to load kernel_path_init in 2.8 Cycles, Blender crashes.
|
@ -125,7 +125,9 @@
|
|||
#define fmodf(x, y) fmod((float)(x), (float)(y))
|
||||
#define sinhf(x) sinh(((float)(x)))
|
||||
|
||||
#if !(defined(__KERNEL_OPENCL_AMD__) || defined(__KERNEL_OPENCL_INTEL_CPU__))
|
||||
/* Use native functions with possibly lower precision for performance,
|
||||
* no issues found so far. */
|
||||
#if 1
|
||||
# define sinf(x) native_sin(((float)(x)))
|
||||
# define cosf(x) native_cos(((float)(x)))
|
||||
# define tanf(x) native_tan(((float)(x)))
|
||||
|
@ -140,7 +142,7 @@
|
|||
# define expf(x) exp(((float)(x)))
|
||||
# define sqrtf(x) sqrt(((float)(x)))
|
||||
# define logf(x) log(((float)(x)))
|
||||
# define rcp(x) recip(x))
|
||||
# define rcp(x) recip(x)
|
||||
#endif
|
||||
|
||||
/* data lookup defines */
|
||||
|
|
Loading…
Reference in New Issue