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_compat_opencl.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_compat_opencl.h')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_opencl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_compat_opencl.h b/intern/cycles/kernel/kernel_compat_opencl.h index 1fe52c51ab0..552734cc361 100644 --- a/intern/cycles/kernel/kernel_compat_opencl.h +++ b/intern/cycles/kernel/kernel_compat_opencl.h @@ -46,6 +46,7 @@ #define ccl_restrict restrict #define ccl_ref #define ccl_align(n) __attribute__((aligned(n))) +#define ccl_optional_struct_init #ifdef __SPLIT_KERNEL__ # define ccl_addr_space __global |