[Bf-blender-cvs] [b4f7c4b] cycles_kernel_split: Bug fix : Account for ShaderClosure ptr in ShaderData SOA

varunsundar08 noreply at git.blender.org
Thu Apr 30 23:25:33 CEST 2015


Commit: b4f7c4be433a405d6ab418ed7c29ff9c6d6d3935
Author: varunsundar08
Date:   Fri May 1 00:39:34 2015 +0530
Branches: cycles_kernel_split
https://developer.blender.org/rBb4f7c4be433a405d6ab418ed7c29ff9c6d6d3935

Bug fix : Account for ShaderClosure ptr in ShaderData SOA

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

M	intern/cycles/device/device_opencl.cpp

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

diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index 7043610..d95e954 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -1753,7 +1753,8 @@ public:
 			+ SD_NUM_RAY_DIFFERENTIALS_DIFFERENTIAL3
 			+ SD_NUM_DIFFERENTIAL
 #endif
-			+ SD_NUM_RAY_DP_DIFFERENTIAL3;
+			+ SD_NUM_RAY_DP_DIFFERENTIAL3
+			+ sizeof(ShaderClosure *);
 
 		return (num_shader_soa_ptr * sizeof(void *));
 	}




More information about the Bf-blender-cvs mailing list