diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-10 22:20:34 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-10 22:20:34 +0300 |
commit | 13ad69c68e25346c6530e87d69eafded4d62dadc (patch) | |
tree | d6447b4054c5ac1080160dbe803d59d1df7cc5a8 /intern | |
parent | 5646a9f759f306d7c98bb240b24e88afa9e187d9 (diff) |
Cycles: Add print functions for sse3f, sse3i and sse3b
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_cpu.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h index 6b950e3eaf6..d500cbace97 100644 --- a/intern/cycles/kernel/kernel_compat_cpu.h +++ b/intern/cycles/kernel/kernel_compat_cpu.h @@ -412,6 +412,28 @@ typedef texture_image<uchar4> texture_image_uchar4; typedef vector3<sseb> sse3b; typedef vector3<ssef> sse3f; typedef vector3<ssei> sse3i; + +ccl_device_inline void print_sse3b(const char *label, sse3b& a) +{ + print_sseb(label, a.x); + print_sseb(label, a.y); + print_sseb(label, a.z); +} + +ccl_device_inline void print_sse3f(const char *label, sse3f& a) +{ + print_ssef(label, a.x); + print_ssef(label, a.y); + print_ssef(label, a.z); +} + +ccl_device_inline void print_sse3i(const char *label, sse3i& a) +{ + print_ssei(label, a.x); + print_ssei(label, a.y); + print_ssei(label, a.z); +} + #endif CCL_NAMESPACE_END |