Cycles: Fix for fix (tm)

Sorry guys, for some reason read the expression back-to-front
and did wrong fix :S
This commit is contained in:
Sergey Sharybin 2016-10-25 18:28:02 +02:00
parent 5c4113a3e4
commit f523fb43f9
1 changed files with 1 additions and 1 deletions

View File

@ -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);