diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-10-25 19:28:02 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-10-25 19:29:13 +0300 |
commit | f523fb43f9b5c8a4a694e0bbd071935a4ed979b5 (patch) | |
tree | 886c5f0b45608cdbaf8bcb360177adcb5c967c14 /intern/cycles | |
parent | 5c4113a3e49217f164183591129659eb34d8d577 (diff) |
Cycles: Fix for fix (tm)
Sorry guys, for some reason read the expression back-to-front
and did wrong fix :S
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/geom/geom_object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/geom/geom_object.h b/intern/cycles/kernel/geom/geom_object.h index 89087ea05c9..cb2de3a7e87 100644 --- a/intern/cycles/kernel/geom/geom_object.h +++ b/intern/cycles/kernel/geom/geom_object.h @@ -381,7 +381,7 @@ ccl_device_inline float3 bvh_clamp_direction(float3 dir) const ssef mask = _mm_cmpgt_ps(fabs(dir), oopes); const ssef signdir = signmsk(dir.m128) | oopes; # ifndef __KERNEL_AVX__ - ssef res = mask & signdir; + ssef res = mask & ssef(dir); res = _mm_or_ps(res,_mm_andnot_ps(mask, signdir)); # else ssef res = _mm_blendv_ps(signdir, dir, mask); |