Fix T41066: An actual fix for curve intersection on FMA-enabled CPUs

This commit is contained in:
Sv. Lockal
2015-03-07 16:15:01 +00:00
parent b7a759502f
commit c8fb488b08
2 changed files with 4 additions and 4 deletions

View File

@@ -709,7 +709,7 @@ ccl_device_inline bool bvh_curve_intersect(KernelGlobals *kg, Intersection *isec
const ssef sphere_dif1 = (dif + dif_second) * 0.5f;
const ssef dir = load4f(direction);
const ssef sphere_b_tmp = dot3_splat(dir, sphere_dif1);
const ssef sphere_dif2 = nmsub(sphere_b_tmp, dir, sphere_dif1);
const ssef sphere_dif2 = nmadd(sphere_b_tmp, dir, sphere_dif1);
#endif
float mr = max(r1, r2);