[Bf-blender-cvs] [7da85ea35ab] master: Fix Cycles build error on 32bit x86

Brecht Van Lommel noreply at git.blender.org
Tue Oct 25 16:57:21 CEST 2022


Commit: 7da85ea35abafd60777009c680c06a44c39cbdb9
Author: Brecht Van Lommel
Date:   Mon Oct 24 14:44:42 2022 +0200
Branches: master
https://developer.blender.org/rB7da85ea35abafd60777009c680c06a44c39cbdb9

Fix Cycles build error on 32bit x86

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

M	intern/cycles/util/transform_inverse.h

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

diff --git a/intern/cycles/util/transform_inverse.h b/intern/cycles/util/transform_inverse.h
index b72bbc5f680..bb410a6daef 100644
--- a/intern/cycles/util/transform_inverse.h
+++ b/intern/cycles/util/transform_inverse.h
@@ -11,7 +11,7 @@ CCL_NAMESPACE_BEGIN
 
 ccl_device_forceinline float3 transform_inverse_cross(const float3 a, const float3 b)
 {
-#ifdef __AVX2__
+#if defined(__AVX2__) && defined(__KERNEL_SSE2__)
   const ssef sse_a = (const __m128 &)a;
   const ssef sse_b = (const __m128 &)b;
   const ssef r = shuffle<1, 2, 0, 3>(



More information about the Bf-blender-cvs mailing list