From 967260593807c1e6f294c1ce8b5a220526f4597a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 2 Apr 2020 17:08:24 +0200 Subject: Fix build error on Windows/Linux after recent AVX changes --- intern/cycles/util/util_avxf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/intern/cycles/util/util_avxf.h b/intern/cycles/util/util_avxf.h index 6781290bb83..47d416afbb7 100644 --- a/intern/cycles/util/util_avxf.h +++ b/intern/cycles/util/util_avxf.h @@ -266,20 +266,20 @@ template __forceinline const avxf shuffle(const avxf &a) template __forceinline float extract(const avxf &a) { - return _mm256_cvtss_f32(shuffle(a)); + return _mm256_cvtss_f32(shuffle(a).m256); } template<> __forceinline float extract<0>(const avxf &a) { - return _mm256_cvtss_f32(a); + return _mm256_cvtss_f32(a.m256); } __forceinline ssef low(const avxf &a) { - return _mm256_extractf128_ps(a, 0); + return _mm256_extractf128_ps(a.m256, 0); } __forceinline ssef high(const avxf &a) { - return _mm256_extractf128_ps(a, 1); + return _mm256_extractf128_ps(a.m256, 1); } template -- cgit v1.2.3