diff options
author | Matteo Bernardini | 2019-04-16 20:05:41 +0200 |
---|---|---|
committer | Matteo Bernardini | 2019-04-16 20:05:41 +0200 |
commit | 9ebc325833e858b4295322e10edda22b6b78ac27 (patch) | |
tree | 90dc75fdc9044943dfd98b4e15a2edee6adddb42 /graphics/Blender/0001-Cycles-Fix-bad-register-cast-in-sseb.patch | |
parent | 2a650741141e819af2ecf2c4da75502b0a18d799 (diff) | |
download | slackbuilds-b9c1afb87d8085cf3672ef9e5dcd3255326aca01.tar.gz |
20190416.1 global branch merge.current-20190416.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/Blender/0001-Cycles-Fix-bad-register-cast-in-sseb.patch')
-rw-r--r-- | graphics/Blender/0001-Cycles-Fix-bad-register-cast-in-sseb.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/graphics/Blender/0001-Cycles-Fix-bad-register-cast-in-sseb.patch b/graphics/Blender/0001-Cycles-Fix-bad-register-cast-in-sseb.patch new file mode 100644 index 0000000000..a4abe36c49 --- /dev/null +++ b/graphics/Blender/0001-Cycles-Fix-bad-register-cast-in-sseb.patch @@ -0,0 +1,25 @@ +From be587d76efff6610f3b6d65cf42f1ee31ec3bdee Mon Sep 17 00:00:00 2001 +From: Sergey Sharybin <sergey.vfx@gmail.com> +Date: Wed, 28 Mar 2018 10:34:31 +0200 +Subject: [PATCH] Cycles: Fix bad register cast in sseb + +This is currently unused code, but causes gcc-8 to fail. +--- + intern/cycles/util/util_sseb.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +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 ) { +-- +2.13.7 |