[Bf-blender-cvs] [d663048696b] master: Fix T66691: Ceash trying to render the 2.80 splash image

Sergey Sharybin noreply at git.blender.org
Thu Jul 11 13:00:55 CEST 2019


Commit: d663048696b2d63a65d607e5e8dec3b2b320982c
Author: Sergey Sharybin
Date:   Thu Jul 11 12:59:19 2019 +0200
Branches: master
https://developer.blender.org/rBd663048696b2d63a65d607e5e8dec3b2b320982c

Fix T66691: Ceash trying to render the 2.80 splash image

Was caused by ray direction becoming NaN after some of the bounces.

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

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

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

diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h
index 7503bad37b0..be0f05285e8 100644
--- a/intern/cycles/kernel/bvh/bvh.h
+++ b/intern/cycles/kernel/bvh/bvh.h
@@ -174,7 +174,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 isfinite(ray->P.x);
+  return isfinite_safe(ray->P.x) && isfinite_safe(ray->D.x);
 }
 
 /* Note: ray is passed by value to work around a possible CUDA compiler bug. */



More information about the Bf-blender-cvs mailing list