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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-10-25 19:05:44 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-10-25 19:06:38 +0300
commit5c4113a3e49217f164183591129659eb34d8d577 (patch)
tree57da241e44092c95b50024c4d15c63b6621c1126 /intern/cycles/kernel/geom
parenta39ab9cfdecd4ab6e9e4e0214d2ca6ab1181dd1b (diff)
Cycles: Fix typo in previous commit for BVH improvements
Diffstat (limited to 'intern/cycles/kernel/geom')
-rw-r--r--intern/cycles/kernel/geom/geom_object.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/kernel/geom/geom_object.h b/intern/cycles/kernel/geom/geom_object.h
index 0e0932512e9..89087ea05c9 100644
--- a/intern/cycles/kernel/geom/geom_object.h
+++ b/intern/cycles/kernel/geom/geom_object.h
@@ -378,13 +378,13 @@ ccl_device_inline float3 bvh_clamp_direction(float3 dir)
/* clamp absolute values by exp2f(-80.0f) to avoid division by zero when calculating inverse direction */
#if defined(__KERNEL_SSE__) && defined(__KERNEL_SSE2__)
const ssef oopes(8.271806E-25f,8.271806E-25f,8.271806E-25f,0.0f);
- const ssef mask = _mm_cmpgt_ps(fabs(dir),oopes);
+ const ssef mask = _mm_cmpgt_ps(fabs(dir), oopes);
const ssef signdir = signmsk(dir.m128) | oopes;
# ifndef __KERNEL_AVX__
- ssef res = mask & dir;
+ ssef res = mask & signdir;
res = _mm_or_ps(res,_mm_andnot_ps(mask, signdir));
# else
- ssef res = _mm_blendv_ps(signdir,dir,mask);
+ ssef res = _mm_blendv_ps(signdir, dir, mask);
# endif
return float3(res);
#else /* __KERNEL_SSE__ && __KERNEL_SSE2__ */