summaryrefslogtreecommitdiff
path: root/libre/blender/util_sseb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/blender/util_sseb.patch')
-rw-r--r--libre/blender/util_sseb.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/libre/blender/util_sseb.patch b/libre/blender/util_sseb.patch
new file mode 100644
index 000000000..b65f44ffa
--- /dev/null
+++ b/libre/blender/util_sseb.patch
@@ -0,0 +1,13 @@
+diff --git a/intern/cycles/util/util_sseb.h b/intern/cycles/util/util_sseb.h
+index 6e669701f3b..9ffe391666a 100644
+--- a/intern/cycles/util/util_sseb.h
++++ b/intern/cycles/util/util_sseb.h
+@@ -116,7 +116,7 @@ __forceinline const sseb unpacklo( const sseb& a, const sseb& b ) { return _mm_u
+ __forceinline const sseb unpackhi( const sseb& a, const sseb& b ) { return _mm_unpackhi_ps(a, b); }
+
+ template<size_t i0, size_t i1, size_t i2, size_t i3> __forceinline const sseb shuffle( const sseb& a ) {
+- return _mm_shuffle_epi32(a, _MM_SHUFFLE(i3, i2, i1, i0));
++ return _mm_castsi128_ps(_mm_shuffle_epi32(a, _MM_SHUFFLE(i3, i2, i1, i0)));
+ }
+
+ template<> __forceinline const sseb shuffle<0, 1, 0, 1>( const sseb& a ) {