[Bf-blender-cvs] [bd053ac7ba9] master: Cycles: Correct ifdef around float3 intrinsics

Sergey Sharybin noreply at git.blender.org
Mon Mar 27 16:21:48 CEST 2017


Commit: bd053ac7ba9718ef8649f766c6d084f49e19786c
Author: Sergey Sharybin
Date:   Mon Mar 27 16:08:39 2017 +0200
Branches: master
https://developer.blender.org/rBbd053ac7ba9718ef8649f766c6d084f49e19786c

Cycles: Correct ifdef around float3 intrinsics

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

M	intern/cycles/util/util_math.h

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

diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h
index 2af0e56325f..84a5c800357 100644
--- a/intern/cycles/util/util_math.h
+++ b/intern/cycles/util/util_math.h
@@ -774,6 +774,7 @@ template<size_t index_0, size_t index_1, size_t index_2, size_t index_3> __force
 	return _mm_castsi128_ps(_mm_shuffle_epi32(_mm_castps_si128(b), _MM_SHUFFLE(index_3, index_2, index_1, index_0)));
 }
 
+#if defined(__KERNEL_SSE3__)
 template<> __forceinline const float4 shuffle<0, 0, 2, 2>(const float4& b)
 {
 	return _mm_moveldup_ps(b);
@@ -783,6 +784,7 @@ template<> __forceinline const float4 shuffle<1, 1, 3, 3>(const float4& b)
 {
 	return _mm_movehdup_ps(b);
 }
+#endif
 
 template<> __forceinline const float4 shuffle<0, 1, 0, 1>(const float4& b)
 {




More information about the Bf-blender-cvs mailing list