[Bf-blender-cvs] [81f1f9c85ed] master: Cycles: Remove unused malformed function

Sergey Sharybin noreply at git.blender.org
Mon Sep 17 18:08:58 CEST 2018


Commit: 81f1f9c85edb5499e4e04117f5d4e32941f45de1
Author: Sergey Sharybin
Date:   Mon Sep 17 18:05:32 2018 +0200
Branches: master
https://developer.blender.org/rB81f1f9c85edb5499e4e04117f5d4e32941f45de1

Cycles: Remove unused malformed function

This isn't really possible to do the shuffle which was attempted to do.

While it's possible to achieve expected behavior, the function needs to
be rewritten. Since it's not used anyway, it's simpler to remove it for
now.

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

M	intern/cycles/util/util_avxb.h

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

diff --git a/intern/cycles/util/util_avxb.h b/intern/cycles/util/util_avxb.h
index 1f5dc898cb4..2861d8a7f42 100644
--- a/intern/cycles/util/util_avxb.h
+++ b/intern/cycles/util/util_avxb.h
@@ -114,14 +114,6 @@ __forceinline const avxb select( const avxb& m, const avxb& t, const avxb& f ) {
 __forceinline const avxb unpacklo( const avxb& a, const avxb& b ) { return _mm256_unpacklo_ps(a, b); }
 __forceinline const avxb unpackhi( const avxb& a, const avxb& b ) { return _mm256_unpackhi_ps(a, b); }
 
-#define _MM256_SHUFFLE(fp7,fp6,fp5,fp4,fp3,fp2,fp1,fp0) (((fp7) << 14) | ((fp6) << 12) | ((fp5) << 10) | ((fp4) << 8) | \
-                                                      ((fp3) << 6) | ((fp2) << 4) | ((fp1) << 2) | ((fp0)))
-
-template<size_t i0, size_t i1, size_t i2, size_t i3, size_t i4, size_t i5, size_t i6, size_t i7>
-__forceinline const avxb shuffle( const avxb& a ) {
-	return _mm256_cvtepi32_ps(_mm256_shuffle_epi32(a, _MM256_SHUFFLE(i7, i6, i5, i4, i3, i2, i1, i0)));
-}
-
 /*
 template<> __forceinline const avxb shuffle<0, 1, 0, 1, 0, 1, 0, 1>( const avxb& a ) {
 	return _mm_movelh_ps(a, a);



More information about the Bf-blender-cvs mailing list