[Bf-blender-cvs] [f3c34832420] master: Cycles: Workaround for AMD GPU OpenCL compiler

Hristo Gueorguiev noreply at git.blender.org
Fri May 5 13:00:49 CEST 2017


Commit: f3c34832420b28ddf73d500f27864f0258629857
Author: Hristo Gueorguiev
Date:   Fri May 5 12:57:01 2017 +0200
Branches: master
https://developer.blender.org/rBf3c34832420b28ddf73d500f27864f0258629857

Cycles: Workaround for AMD GPU OpenCL compiler

Fix for SSS in BPT.

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

M	intern/cycles/kernel/kernel_subsurface.h

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

diff --git a/intern/cycles/kernel/kernel_subsurface.h b/intern/cycles/kernel/kernel_subsurface.h
index 274713addc2..1026cde7b29 100644
--- a/intern/cycles/kernel/kernel_subsurface.h
+++ b/intern/cycles/kernel/kernel_subsurface.h
@@ -479,6 +479,10 @@ ccl_device void subsurface_scatter_step(KernelGlobals *kg, ShaderData *sd, ccl_g
 	if(ss_isect.num_hits > 0) {
 		float3 origP = sd->P;
 
+		/* Workaround for AMD GPU OpenCL compiler. Most probably cache bypass issue. */
+#if defined(__SPLIT_KERNEL__) && defined(__KERNEL_OPENCL_AMD__) && defined(__KERNEL_GPU__)
+		kernel_split_params.dummy_sd_flag = sd->flag;
+#endif
 		/* setup new shading point */
 		shader_setup_from_subsurface(kg, sd, &ss_isect.hits[0], &ray);




More information about the Bf-blender-cvs mailing list