Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-12-25 12:11:37 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2014-12-25 12:11:37 +0300
commit010f3ee43871974abb99cd6f9e0204b29003fc4e (patch)
treea233b91be43e0ce82fd6dc94bc3f13c17fc919b4 /intern/cycles/kernel/kernel_compat_cpu.h
parentee36e75b855ca32c794ef2d1b2be7fe5d7067f55 (diff)
Cycles: Fix compilation error on non-SSE2 architectures
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_cpu.h')
-rw-r--r--intern/cycles/kernel/kernel_compat_cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h
index b475e11bbab..a7a2fb8f216 100644
--- a/intern/cycles/kernel/kernel_compat_cpu.h
+++ b/intern/cycles/kernel/kernel_compat_cpu.h
@@ -52,6 +52,7 @@ template<typename T> struct texture {
return data[index];
}
+#ifdef __KERNEL_SSE2__
ccl_always_inline ssef fetch_ssef(int index)
{
kernel_assert(index >= 0 && index < width);
@@ -63,6 +64,7 @@ template<typename T> struct texture {
kernel_assert(index >= 0 && index < width);
return ((ssei*)data)[index];
}
+#endif
T *data;
int width;