Fix Cycles build error on non-x86 processors.
This commit is contained in:
@@ -761,8 +761,8 @@ public:
|
|||||||
int start_sample = tile.start_sample;
|
int start_sample = tile.start_sample;
|
||||||
int end_sample = tile.start_sample + tile.num_samples;
|
int end_sample = tile.start_sample + tile.num_samples;
|
||||||
|
|
||||||
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
/* Needed for Embree. */
|
||||||
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
|
SIMD_SET_FLUSH_TO_ZERO;
|
||||||
|
|
||||||
for(int sample = start_sample; sample < end_sample; sample++) {
|
for(int sample = start_sample; sample < end_sample; sample++) {
|
||||||
if(task.get_cancel() || task_pool.canceled()) {
|
if(task.get_cancel() || task_pool.canceled()) {
|
||||||
|
@@ -45,6 +45,14 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__x86_64__) || defined(__i386__) || defined(_M_X64) || defined(_M_IX86)
|
||||||
|
#define SIMD_SET_FLUSH_TO_ZERO \
|
||||||
|
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON); \
|
||||||
|
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
|
||||||
|
#else
|
||||||
|
#define SIMD_SET_FLUSH_TO_ZERO
|
||||||
|
#endif
|
||||||
|
|
||||||
CCL_NAMESPACE_BEGIN
|
CCL_NAMESPACE_BEGIN
|
||||||
|
|
||||||
#ifdef __KERNEL_SSE2__
|
#ifdef __KERNEL_SSE2__
|
||||||
|
Reference in New Issue
Block a user