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:
@@ -360,14 +360,15 @@ int subsurface_scatter_multi_intersect(
|
|||||||
return num_eval_hits;
|
return num_eval_hits;
|
||||||
}
|
}
|
||||||
|
|
||||||
ccl_device void subsurface_scatter_multi_setup(KernelGlobals *kg,
|
ccl_device_noinline void subsurface_scatter_multi_setup(
|
||||||
SubsurfaceIntersection* ss_isect,
|
KernelGlobals *kg,
|
||||||
int hit,
|
SubsurfaceIntersection* ss_isect,
|
||||||
ShaderData *sd,
|
int hit,
|
||||||
PathState *state,
|
ShaderData *sd,
|
||||||
int state_flag,
|
PathState *state,
|
||||||
ShaderClosure *sc,
|
int state_flag,
|
||||||
bool all)
|
ShaderClosure *sc,
|
||||||
|
bool all)
|
||||||
{
|
{
|
||||||
/* Setup new shading point. */
|
/* Setup new shading point. */
|
||||||
shader_setup_from_subsurface(kg, sd, &ss_isect->hits[hit], &ss_isect->ray);
|
shader_setup_from_subsurface(kg, sd, &ss_isect->hits[hit], &ss_isect->ray);
|
||||||
|
Reference in New Issue
Block a user