Fix T41471 Cycles Bake: Setting small tile size results in wrong bake with stripes rather than the expected noise pattern
This problem was introduced in 983cbafd18
Basically the issue is that we were not getting a unique index in the
baking routine for the RNG (random number generator).
Reviewers: sergey
Differential Revision: https://developer.blender.org/D749
This commit is contained in:
@@ -64,10 +64,10 @@ void kernel_cpu_sse2_convert_to_half_float(KernelGlobals *kg, uchar4 *rgba, floa
|
||||
|
||||
/* Shader Evaluate */
|
||||
|
||||
void kernel_cpu_sse2_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int i, int sample)
|
||||
void kernel_cpu_sse2_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int i, int offset, int sample)
|
||||
{
|
||||
if(type >= SHADER_EVAL_BAKE)
|
||||
kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, i, sample);
|
||||
kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, i, offset, sample);
|
||||
else
|
||||
kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i, sample);
|
||||
}
|
||||
|
Reference in New Issue
Block a user