[Bf-blender-cvs] [de3ee3c6e84] master: Cycles: Fix compilation error of CUDA kernel

Sergey Sharybin noreply at git.blender.org
Fri Sep 28 15:02:49 CEST 2018


Commit: de3ee3c6e842692a32182f3349bc1c76cde14683
Author: Sergey Sharybin
Date:   Fri Sep 28 15:02:20 2018 +0200
Branches: master
https://developer.blender.org/rBde3ee3c6e842692a32182f3349bc1c76cde14683

Cycles: Fix compilation error of CUDA kernel

Was caused by previous commit.

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

M	intern/cycles/kernel/bvh/bvh.h

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

diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h
index b3135573878..d11d999134c 100644
--- a/intern/cycles/kernel/bvh/bvh.h
+++ b/intern/cycles/kernel/bvh/bvh.h
@@ -170,7 +170,7 @@ ccl_device_inline bool scene_intersect_valid(const Ray *ray)
 	 * From production scenes so far it seems it's enough to test first element
 	 * only.
 	 */
-	return finite(ray->P.x);
+	return isfinite(ray->P.x);
 }
 
 /* Note: ray is passed by value to work around a possible CUDA compiler bug. */



More information about the Bf-blender-cvs mailing list