Cycles: ifdef some extra code when building split kernels

This commit is contained in:
Sergey Sharybin
2016-02-05 14:11:16 +01:00
parent 24ae7b9035
commit c53c8df6d9
2 changed files with 22 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ CCL_NAMESPACE_BEGIN
#undef USE_BAKE_JITTER
#ifndef __NO_BAKING__
ccl_device void compute_light_pass(KernelGlobals *kg, ShaderData *sd, PathRadiance *L, RNG rng,
const bool is_ao, const bool is_sss, int sample)
{
@@ -525,6 +527,8 @@ ccl_device void kernel_bake_evaluate(KernelGlobals *kg, ccl_global uint4 *input,
output[i] += make_float4(out.x, out.y, out.z, 1.0f) * output_fac;
}
#endif /* __NO_BAKING__ */
ccl_device void kernel_shader_evaluate(KernelGlobals *kg,
ccl_global uint4 *input,
ccl_global float4 *output,