Cycles:
* GPU kernel can now be compiled without __NON_PROGRESSIVE__ again, was broken after my last commit. Also add a check for have_error(), in case the GPU kernel comes without Non-Progressive, to avoid a crash. * Don't compile progressive kernel twice on CPU, if __NON_PROGRESSIVE__ would be disabled there.
This commit is contained in:
@@ -39,10 +39,12 @@ CCL_NAMESPACE_BEGIN
|
||||
|
||||
void kernel_cpu_sse2_path_trace(KernelGlobals *kg, float *buffer, unsigned int *rng_state, int sample, int x, int y, int offset, int stride)
|
||||
{
|
||||
if(kernel_data.integrator.progressive)
|
||||
kernel_path_trace_progressive(kg, buffer, rng_state, sample, x, y, offset, stride);
|
||||
else
|
||||
#ifdef __NON_PROGRESSIVE__
|
||||
if(!kernel_data.integrator.progressive)
|
||||
kernel_path_trace_non_progressive(kg, buffer, rng_state, sample, x, y, offset, stride);
|
||||
else
|
||||
#endif
|
||||
kernel_path_trace_progressive(kg, buffer, rng_state, sample, x, y, offset, stride);
|
||||
}
|
||||
|
||||
/* Tonemapping */
|
||||
|
Reference in New Issue
Block a user