Fix T40370: cycles CUDA baking timeout with high number of AA samples.
Now baking does one AA sample at a time, just like final render. There is also some code for shader antialiasing that solves T40369 but it is disabled for now because there may be unpredictable side effects.
This commit is contained in:
@@ -67,12 +67,12 @@ void kernel_cpu_avx_convert_to_half_float(KernelGlobals *kg, uchar4 *rgba, float
|
||||
|
||||
/* Shader Evaluate */
|
||||
|
||||
void kernel_cpu_avx_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int i)
|
||||
void kernel_cpu_avx_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int i, int sample)
|
||||
{
|
||||
if(type >= SHADER_EVAL_BAKE)
|
||||
kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, i);
|
||||
kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, i, sample);
|
||||
else
|
||||
kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i);
|
||||
kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i, sample);
|
||||
}
|
||||
|
||||
CCL_NAMESPACE_END
|
||||
|
Reference in New Issue
Block a user