From 5030daf2a8a31b1a74740d8bc17389c06f246636 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 2 Feb 2015 17:34:34 +0500 Subject: Cycles: Remove redundant calculation of w in recent cubic commit Was rather harmless since compiler will optimize it out, but nice to get rid of this anyway. --- intern/cycles/kernel/kernel_compat_cpu.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'intern/cycles/kernel/kernel_compat_cpu.h') diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h index cef94d1a2bc..992d2876d6f 100644 --- a/intern/cycles/kernel/kernel_compat_cpu.h +++ b/intern/cycles/kernel/kernel_compat_cpu.h @@ -193,7 +193,7 @@ template struct texture_image { width * iy, width * niy, width * nniy}; - float u[4], v[4], w[4]; + float u[4], v[4]; /* Some helper macro to keep code reasonable size, * let compiler to inline all the matrix multiplications. */ @@ -206,7 +206,6 @@ template struct texture_image { SET_CUBIC_SPLINE_WEIGHTS(u, tx); SET_CUBIC_SPLINE_WEIGHTS(v, ty); - SET_CUBIC_SPLINE_WEIGHTS(w, 0.0f); /* Actual interpolation. */ return TERM(0) + TERM(1) + TERM(2) + TERM(3); -- cgit v1.2.3