diff options
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_cpu.h')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_cpu.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h index baa67f63ab3..df7d39532aa 100644 --- a/intern/cycles/kernel/kernel_compat_cpu.h +++ b/intern/cycles/kernel/kernel_compat_cpu.h @@ -152,6 +152,8 @@ template<typename T> struct texture_image { ix = wrap_clamp(ix, width); iy = wrap_clamp(iy, height); break; + default: + kernel_assert(0); } return read(data[ix + iy*width]); } @@ -179,6 +181,8 @@ template<typename T> struct texture_image { ix = wrap_clamp(ix, width); iy = wrap_clamp(iy, height); break; + default: + kernel_assert(0); } float4 r = (1.0f - ty)*(1.0f - tx)*read(data[ix + iy*width]); @@ -225,6 +229,8 @@ template<typename T> struct texture_image { ix = wrap_clamp(ix, width); iy = wrap_clamp(iy, height); break; + default: + kernel_assert(0); } const int xc[4] = {pix, ix, nix, nnix}; @@ -290,6 +296,8 @@ template<typename T> struct texture_image { iy = wrap_clamp(iy, height); iz = wrap_clamp(iz, depth); break; + default: + kernel_assert(0); } return read(data[ix + iy*width + iz*width*height]); @@ -325,6 +333,8 @@ template<typename T> struct texture_image { iy = wrap_clamp(iy, height); iz = wrap_clamp(iz, depth); break; + default: + kernel_assert(0); } float4 r; @@ -390,6 +400,8 @@ template<typename T> struct texture_image { iy = wrap_clamp(iy, height); iz = wrap_clamp(iz, depth); break; + default: + kernel_assert(0); } const int xc[4] = {pix, ix, nix, nnix}; |