From 92022218c2f2ae22f0ee6da56210420417f0ca90 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 27 May 2015 00:13:32 +0500 Subject: Cycles: Code cleanup, split kernel --- intern/cycles/kernel/split/kernel_lamp_emission.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'intern/cycles/kernel/split/kernel_lamp_emission.h') diff --git a/intern/cycles/kernel/split/kernel_lamp_emission.h b/intern/cycles/kernel/split/kernel_lamp_emission.h index e5fdb637a50..a8e4b0a06c8 100644 --- a/intern/cycles/kernel/split/kernel_lamp_emission.h +++ b/intern/cycles/kernel/split/kernel_lamp_emission.h @@ -56,7 +56,9 @@ ccl_device void kernel_lamp_emission( int parallel_samples, /* Number of samples to be processed in parallel */ int ray_index) { - if(IS_STATE(ray_state, ray_index, RAY_ACTIVE) || IS_STATE(ray_state, ray_index, RAY_HIT_BACKGROUND)) { + if(IS_STATE(ray_state, ray_index, RAY_ACTIVE) || + IS_STATE(ray_state, ray_index, RAY_HIT_BACKGROUND)) + { KernelGlobals *kg = (KernelGlobals *)globals; ShaderData *sd = (ShaderData *)shader_data; PathRadiance *L = &PathRadiance_coop[ray_index]; @@ -84,7 +86,8 @@ ccl_device void kernel_lamp_emission( path_radiance_accum_emission(L, throughput, emission, state.bounce); } } -#endif +#endif /* __LAMP_MIS__ */ + /* __VOLUME__ feature is disabled */ #if 0 #ifdef __VOLUME__ @@ -149,7 +152,7 @@ ccl_device void kernel_lamp_emission( } } else -#endif +#endif /* __VOLUME_DECOUPLED__ */ { /* integrate along volume segment with distance sampling */ ShaderData volume_sd; @@ -167,10 +170,10 @@ ccl_device void kernel_lamp_emission( else break; } -#endif +#endif /* __VOLUME_SCATTER__ */ } } -#endif +#endif /* __VOLUME__ */ #endif } } -- cgit v1.2.3