Cycles: fix issues rendering second render layer passes, and avoid unnecessary

clear of buffer.
This commit is contained in:
Brecht Van Lommel
2012-01-26 14:55:25 +00:00
parent 331c235d93
commit f8bddbd347
4 changed files with 18 additions and 18 deletions

View File

@@ -36,15 +36,6 @@ __device_inline void kernel_write_pass_float4(__global float *buffer, int sample
*buf = (sample == 0)? value: *buf + value;
}
__device_inline void kernel_clear_passes(__global float *buffer, int sample, int pass_stride)
{
#ifdef __PASSES__
if(sample == 0 && pass_stride != 4)
for(int i = 4; i < pass_stride; i++)
buffer[i] = 0.0f;
#endif
}
__device void kernel_write_data_passes(KernelGlobals *kg, __global float *buffer, PathRadiance *L,
ShaderData *sd, int sample, int path_flag, float3 throughput)
{