diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-08-24 02:44:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-08-24 02:45:27 +0300 |
commit | d99c513afaf76324406c582304a2d7bf85fbc3a0 (patch) | |
tree | 808272363dc9942f8e47515e848fb41862a923c9 /intern/cycles | |
parent | e484fe84cdc6a00bebc4bf4afd69785f00e9547a (diff) |
Cycles OpenCL: use AoS rather than SoA storage for ShaderData.
Fixes part of the performance regressions compared to 2.76b, see T49046, T48876.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/kernel_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h index e29940672ca..3152ec611cf 100644 --- a/intern/cycles/kernel/kernel_types.h +++ b/intern/cycles/kernel/kernel_types.h @@ -745,7 +745,7 @@ enum ShaderDataFlag { #ifdef __SPLIT_KERNEL__ # define SD_THREAD (get_global_id(1) * get_global_size(0) + get_global_id(0)) -# if defined(__SPLIT_KERNEL_AOS__) +# if !defined(__SPLIT_KERNEL_SOA__) /* ShaderData is stored as an Array-of-Structures */ # define ccl_soa_member(type, name) type soa_##name # define ccl_fetch(s, t) (s[SD_THREAD].soa_##t) |