Cycles: Fix wrong SSS in combination with hair on AVX2 platform

Not sure why exactly that happened, need a closer look.
This commit is contained in:
Sergey Sharybin 2016-09-12 12:48:35 +02:00
parent 293d5db895
commit b11f073ca0
1 changed files with 9 additions and 8 deletions

View File

@ -360,14 +360,15 @@ int subsurface_scatter_multi_intersect(
return num_eval_hits;
}
ccl_device void subsurface_scatter_multi_setup(KernelGlobals *kg,
SubsurfaceIntersection* ss_isect,
int hit,
ShaderData *sd,
PathState *state,
int state_flag,
ShaderClosure *sc,
bool all)
ccl_device_noinline void subsurface_scatter_multi_setup(
KernelGlobals *kg,
SubsurfaceIntersection* ss_isect,
int hit,
ShaderData *sd,
PathState *state,
int state_flag,
ShaderClosure *sc,
bool all)
{
/* Setup new shading point. */
shader_setup_from_subsurface(kg, sd, &ss_isect->hits[hit], &ss_isect->ray);