diff options
author | Mai Lavelle <mai.lavelle@gmail.com> | 2017-05-16 22:59:57 +0300 |
---|---|---|
committer | Mai Lavelle <mai.lavelle@gmail.com> | 2017-05-16 23:05:04 +0300 |
commit | 966a2681f90275874742303a104a210a065f3bc3 (patch) | |
tree | 2e0165413ec6321cf2e46f13e15fdf1666bfb4e4 /intern/cycles/kernel/split | |
parent | e14a2e87dc1cf2795849ab5a393fe78f743ad836 (diff) |
Cycles: Fix building with native only option
Approach suggested by Lukas S.
Diffstat (limited to 'intern/cycles/kernel/split')
-rw-r--r-- | intern/cycles/kernel/split/kernel_data_init.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/kernel/split/kernel_data_init.h b/intern/cycles/kernel/split/kernel_data_init.h index 642ccac8239..e4545d66eff 100644 --- a/intern/cycles/kernel/split/kernel_data_init.h +++ b/intern/cycles/kernel/split/kernel_data_init.h @@ -67,6 +67,10 @@ void KERNEL_FUNCTION_FULL_NAME(data_init)( unsigned int num_samples, ccl_global float *buffer) { +#ifdef KERNEL_STUB + STUB_ASSERT(KERNEL_ARCH, data_init); +#else + #ifdef __KERNEL_OPENCL__ kg->data = data; #endif @@ -143,6 +147,8 @@ void KERNEL_FUNCTION_FULL_NAME(data_init)( *(rng_state + index) = hash_int_2d(x, y); } } + +#endif /* KERENL_STUB */ } CCL_NAMESPACE_END |