[Bf-blender-cvs] [55ecdf3195d] blender-v3.0-release: Fix T93874: Cycles crash with fast GI approximation

Brecht Van Lommel noreply at git.blender.org
Tue Jan 11 09:00:06 CET 2022


Commit: 55ecdf3195d6848b70832175711f70d9c58c1fa6
Author: Brecht Van Lommel
Date:   Thu Dec 9 17:46:21 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB55ecdf3195d6848b70832175711f70d9c58c1fa6

Fix T93874: Cycles crash with fast GI approximation

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

M	intern/cycles/kernel/integrator/path_state.h

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

diff --git a/intern/cycles/kernel/integrator/path_state.h b/intern/cycles/kernel/integrator/path_state.h
index e79497320af..ff6b55a73c3 100644
--- a/intern/cycles/kernel/integrator/path_state.h
+++ b/intern/cycles/kernel/integrator/path_state.h
@@ -70,6 +70,9 @@ ccl_device_inline void path_state_init_integrator(KernelGlobals kg,
   INTEGRATOR_STATE_WRITE(state, path, continuation_probability) = 1.0f;
   INTEGRATOR_STATE_WRITE(state, path, throughput) = make_float3(1.0f, 1.0f, 1.0f);
 
+  INTEGRATOR_STATE_WRITE(state, isect, object) = OBJECT_NONE;
+  INTEGRATOR_STATE_WRITE(state, isect, prim) = PRIM_NONE;
+
   if (kernel_data.kernel_features & KERNEL_FEATURE_VOLUME) {
     INTEGRATOR_STATE_ARRAY_WRITE(state, volume_stack, 0, object) = OBJECT_NONE;
     INTEGRATOR_STATE_ARRAY_WRITE(



More information about the Bf-blender-cvs mailing list