Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-03-28 11:34:31 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-03-28 11:34:31 +0300
commitbe587d76efff6610f3b6d65cf42f1ee31ec3bdee (patch)
treea90ee9405732c67d6b7466499f95b1c5d016f748 /intern
parente4d82c0dcffb95af8bce5bedd19164a6760a95e1 (diff)
Cycles: Fix bad register cast in sseb
This is currently unused code, but causes gcc-8 to fail.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/util/util_sseb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_sseb.h b/intern/cycles/util/util_sseb.h
index 93c22aafdcd..977976c3fc0 100644
--- a/intern/cycles/util/util_sseb.h
+++ b/intern/cycles/util/util_sseb.h
@@ -119,7 +119,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 ) {