[Bf-blender-cvs] [1a04179] master: Cycles: Cleanup, typo

Sergey Sharybin noreply at git.blender.org
Wed Sep 9 11:25:46 CEST 2015


Commit: 1a04179802b7d3884efc4ab946be2f727e2ce8f1
Author: Sergey Sharybin
Date:   Wed Sep 9 14:25:20 2015 +0500
Branches: master
https://developer.blender.org/rB1a04179802b7d3884efc4ab946be2f727e2ce8f1

Cycles: Cleanup, typo

Spotted by Campbell, thanks!

===================================================================

M	intern/cycles/kernel/geom/geom_triangle_intersect.h

===================================================================

diff --git a/intern/cycles/kernel/geom/geom_triangle_intersect.h b/intern/cycles/kernel/geom/geom_triangle_intersect.h
index fd521c1..65f6c9a 100644
--- a/intern/cycles/kernel/geom/geom_triangle_intersect.h
+++ b/intern/cycles/kernel/geom/geom_triangle_intersect.h
@@ -98,7 +98,7 @@ void triangle_intersect_precalc(float3 dir,
 }
 
 /* TODO(sergey): Make it general utility function. */
-ccl_device_inline float xor_signmast(float x, int y)
+ccl_device_inline float xor_signmask(float x, int y)
 {
 	return __int_as_float(__float_as_int(x) ^ y);
 }
@@ -162,9 +162,9 @@ ccl_device_inline bool triangle_intersect(KernelGlobals *kg,
 	 * the hit distance.
 	 */
 	const float T = (U * A_kz + V * B_kz + W * C_kz) * Sz;
-	const float sign_T = xor_signmast(T, sign_mask);
+	const float sign_T = xor_signmask(T, sign_mask);
 	if((sign_T < 0.0f) ||
-	   (sign_T > isect->t * xor_signmast(det, sign_mask)))
+	   (sign_T > isect->t * xor_signmask(det, sign_mask)))
 	{
 		return false;
 	}
@@ -265,9 +265,9 @@ ccl_device_inline void triangle_intersect_subsurface(
 	 * the hit distance.
 	 */
 	const float T = (U * A_kz + V * B_kz + W * C_kz) * Sz;
-	const float sign_T = xor_signmast(T, sign_mask);
+	const float sign_T = xor_signmask(T, sign_mask);
 	if((sign_T < 0.0f) ||
-	   (sign_T > tmax * xor_signmast(det, sign_mask)))
+	   (sign_T > tmax * xor_signmask(det, sign_mask)))
 	{
 		return;
 	}




More information about the Bf-blender-cvs mailing list