diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-26 15:41:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-26 17:07:01 +0300 |
commit | d133934ea461995fe959f130115652ff803d4269 (patch) | |
tree | f59b12c3605d145f9a4ef1db7bed2b551b9b75da /intern/cycles/kernel/kernel_emission.h | |
parent | 39439a3afe18bb614e7ada1f61682b602a6c0549 (diff) |
Cycles: code to optionally zero initialize some structs in the kernel
This will be used by Optix to help the compiler figure out scoping. It is not
used by other devices currently, but worth testing if it helps there too.
Ref D5363
Diffstat (limited to 'intern/cycles/kernel/kernel_emission.h')
-rw-r--r-- | intern/cycles/kernel/kernel_emission.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_emission.h b/intern/cycles/kernel/kernel_emission.h index 16d52b0c733..9761dbfcc6d 100644 --- a/intern/cycles/kernel/kernel_emission.h +++ b/intern/cycles/kernel/kernel_emission.h @@ -245,7 +245,7 @@ ccl_device_noinline_cpu bool indirect_lamp_emission(KernelGlobals *kg, *emission = make_float3(0.0f, 0.0f, 0.0f); for (int lamp = 0; lamp < kernel_data.integrator.num_all_lights; lamp++) { - LightSample ls; + LightSample ls ccl_optional_struct_init; if (!lamp_light_eval(kg, lamp, ray->P, ray->D, ray->t, &ls)) continue; |