diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-02-15 19:30:59 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-02-15 22:22:34 +0300 |
commit | ae370e292af2f7092db02301e9deb6dd9d7a1441 (patch) | |
tree | 272ebe450b2b93c8a01f3fd2e72fd37f224da792 /source/blender/compositor/operations | |
parent | 4ce57f6eb82c0c6d3a23201c8df008d29b18b5f7 (diff) |
macOS: add Embree, OpenImageDenoise and sse2neon libraries for ARM
This required using a fork of Embree, newer LLVM version, unreleased ISPC
version and sse2neon directly from Git. Hopefully over time all the required
changes end up in official releases. For now we deviate from other platforms.
Based on contributions by Apple and Stefan Werner.
Ref D9527, D8237, T78710
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_DenoiseOperation.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_DenoiseOperation.cpp b/source/blender/compositor/operations/COM_DenoiseOperation.cpp index bc33e5f75c4..d08f238c4c1 100644 --- a/source/blender/compositor/operations/COM_DenoiseOperation.cpp +++ b/source/blender/compositor/operations/COM_DenoiseOperation.cpp @@ -94,7 +94,11 @@ void DenoiseOperation::generateDenoise(float *data, return; } #ifdef WITH_OPENIMAGEDENOISE - if (BLI_cpu_support_sse41()) { + /* Always supported through Accelerate framework BNNS on macOS. */ +# ifndef __APPLE__ + if (BLI_cpu_support_sse41()) +# endif + { oidn::DeviceRef device = oidn::newDevice(); device.commit(); |