[Bf-blender-cvs] [f800794] master: Cycles: Fix OpenCL build error caused by light termination commit

Lukas Stockner noreply at git.blender.org
Thu Nov 3 03:19:27 CET 2016


Commit: f800794b97f1d3c0e596afeb15172b0288396240
Author: Lukas Stockner
Date:   Thu Nov 3 03:15:39 2016 +0100
Branches: master
https://developer.blender.org/rBf800794b97f1d3c0e596afeb15172b0288396240

Cycles: Fix OpenCL build error caused by light termination commit

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

M	intern/cycles/kernel/kernel_random.h

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

diff --git a/intern/cycles/kernel/kernel_random.h b/intern/cycles/kernel/kernel_random.h
index 2372b07..2b767da 100644
--- a/intern/cycles/kernel/kernel_random.h
+++ b/intern/cycles/kernel/kernel_random.h
@@ -301,7 +301,7 @@ ccl_device_inline void path_branched_rng_2D(KernelGlobals *kg, ccl_addr_space RN
 }
 
 /* Utitility functions to get light termination value, since it might not be needed in many cases. */
-ccl_device_inline float path_state_rng_light_termination(KernelGlobals *kg, ccl_addr_space RNG *rng, const PathState *state)
+ccl_device_inline float path_state_rng_light_termination(KernelGlobals *kg, ccl_addr_space RNG *rng, const ccl_addr_space PathState *state)
 {
 	if(kernel_data.integrator.light_inv_rr_threshold > 0.0f) {
 		return path_state_rng_1D_for_decision(kg, rng, state, PRNG_LIGHT_TERMINATE);




More information about the Bf-blender-cvs mailing list