[Bf-blender-cvs] [607150d] master: Fix T46898: OpenCL Fails to compile after recent SSS changes

Sergey Sharybin noreply at git.blender.org
Tue Dec 1 09:55:46 CET 2015


Commit: 607150d0581db65f30a5941867bb853e88ae7e20
Author: Sergey Sharybin
Date:   Tue Dec 1 12:54:40 2015 +0500
Branches: master
https://developer.blender.org/rB607150d0581db65f30a5941867bb853e88ae7e20

Fix T46898: OpenCL Fails to compile after recent SSS changes

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

M	intern/cycles/kernel/kernel_types.h

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

diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 017126d..04d013c 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -761,7 +761,7 @@ struct SubsurfaceIntersection
 	float3 weight[BSSRDF_MAX_HITS];
 
 	int num_hits;
-	Intersection hits[BSSRDF_MAX_HITS];
+	struct Intersection hits[BSSRDF_MAX_HITS];
 	float3 Ng[BSSRDF_MAX_HITS];
 };
 
@@ -771,12 +771,12 @@ struct SubsurfaceIndirectRays
 	bool need_update_volume_stack;
 	bool tracing;
 	PathState state[BSSRDF_MAX_HITS];
-	PathRadiance direct_L;
+	struct PathRadiance direct_L;
 
 	int num_rays;
-	Ray rays[BSSRDF_MAX_HITS];
+	struct Ray rays[BSSRDF_MAX_HITS];
 	float3 throughputs[BSSRDF_MAX_HITS];
-	PathRadiance L[BSSRDF_MAX_HITS];
+	struct PathRadiance L[BSSRDF_MAX_HITS];
 };
 
 /* Constant Kernel Data




More information about the Bf-blender-cvs mailing list