diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-10-26 23:14:41 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-10-26 23:14:41 +0300 |
commit | 7e380ad4c0236e6e572023e85694acec3da28e6e (patch) | |
tree | 2659ad5a4b56d385fd856300f1b40a5435a27fad /intern/cycles/kernel | |
parent | de22e55291029126d1964de1c616d6b70a62e6bf (diff) |
Cycles: Another attempt to fix crashes on AVX2 processors
Basically don't use rcp() in areas which seems to be critical after
second look. Also disabled some multiplication operators, not sure
yet why they might be a problem.
Tomorrow will be setting up a full test with all cases which were
buggy in our farm to see if this fix is complete.
Diffstat (limited to 'intern/cycles/kernel')
-rw-r--r-- | intern/cycles/kernel/geom/geom_object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/kernel/geom/geom_object.h b/intern/cycles/kernel/geom/geom_object.h index cb2de3a7e87..32900f7f27a 100644 --- a/intern/cycles/kernel/geom/geom_object.h +++ b/intern/cycles/kernel/geom/geom_object.h @@ -397,7 +397,8 @@ ccl_device_inline float3 bvh_clamp_direction(float3 dir) ccl_device_inline float3 bvh_inverse_direction(float3 dir) { -#ifdef __KERNEL_SSE__ + /* TODO(sergey): Currently disabled, gives speedup but causes precision issues. */ +#if defined(__KERNEL_SSE__) && 0 return rcp(dir); #else return 1.0f / dir; |