macOS: fix Cycles not detecting 64 bit and failing to build with Embree
Contributed by Apple Ref D9527, T78710
This commit is contained in:
parent
7baf796886
commit
4ce57f6eb8
|
@ -31,8 +31,6 @@
|
|||
#ifdef WITH_EMBREE
|
||||
|
||||
# include <embree3/rtcore_geometry.h>
|
||||
# include <pmmintrin.h>
|
||||
# include <xmmintrin.h>
|
||||
|
||||
# include "bvh/bvh_embree.h"
|
||||
|
||||
|
@ -306,8 +304,7 @@ BVHEmbree::BVHEmbree(const BVHParams ¶ms_,
|
|||
rtc_device(NULL),
|
||||
build_quality(RTC_BUILD_QUALITY_REFIT)
|
||||
{
|
||||
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
||||
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
|
||||
SIMD_SET_FLUSH_TO_ZERO;
|
||||
}
|
||||
|
||||
BVHEmbree::~BVHEmbree()
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
/* Bitness */
|
||||
|
||||
#if defined(__ppc64__) || defined(__PPC64__) || defined(__x86_64__) || defined(__ia64__) || \
|
||||
defined(_M_X64)
|
||||
defined(_M_X64) || defined(__aarch64__)
|
||||
# define __KERNEL_64_BIT__
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue