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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-04-02 19:19:28 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-04-02 19:19:49 +0300
commit12628e0794af1c1f1bfc7e39260c3c33b84984b4 (patch)
tree884989ed097f9c1667b574c9f4c7522b5563f2be
parentb8d9b5e3315232bb157de43713ec2a54433cf9a6 (diff)
Fix Cycles AVX unit test still failing to build with old GCC
-rw-r--r--intern/cycles/util/util_simd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_simd.h b/intern/cycles/util/util_simd.h
index ac2893692df..de0e3c39f30 100644
--- a/intern/cycles/util/util_simd.h
+++ b/intern/cycles/util/util_simd.h
@@ -589,8 +589,8 @@ __forceinline __m128 _mm_round_ps_emu(__m128 value, const int flags)
# endif /* !(defined(__KERNEL_SSE41__) || defined(__SSE4_1__) || defined(__SSE4_2__)) */
/* Older GCC versions do not have _mm256_cvtss_f32 yet, so define it ourselves.
- * _mm256_castps256_ps128 generates no instructions so this is jus as efficient. */
-# ifdef __KERNEL_AVX__
+ * _mm256_castps256_ps128 generates no instructions so this is just as efficient. */
+# if defined(__KERNEL_AVX__) || defined(__KERNEL_AVX2__)
# undef _mm256_cvtss_f32
# define _mm256_cvtss_f32(a) (_mm_cvtss_f32(_mm256_castps256_ps128(a)))
# endif