summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuIntrinsicBlur.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-12-02 14:34:19 -0800
committerJason Sams <jsams@google.com>2013-12-02 23:16:47 +0000
commitc859de1556dc9ac5c6f5647298bb5c685c5d2bb0 (patch)
tree4a73fd28738fb1c601f7fe77ca74230e95c9e880 /cpu_ref/rsCpuIntrinsicBlur.cpp
parent5fe615c44e57de96f568f309876e6daaac77ac9d (diff)
downloadrs-c859de1556dc9ac5c6f5647298bb5c685c5d2bb0.tar.gz
Fix bug in blur when processing odd widths
Change-Id: I10537cb623cf230636f191fd2b84b050d0f42700
Diffstat (limited to 'cpu_ref/rsCpuIntrinsicBlur.cpp')
-rw-r--r--cpu_ref/rsCpuIntrinsicBlur.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpu_ref/rsCpuIntrinsicBlur.cpp b/cpu_ref/rsCpuIntrinsicBlur.cpp
index b2bd3ce8..52e31f90 100644
--- a/cpu_ref/rsCpuIntrinsicBlur.cpp
+++ b/cpu_ref/rsCpuIntrinsicBlur.cpp
@@ -161,8 +161,10 @@ static void OneVFU4(float4 *out,
t &= ~1;
if(t) {
rsdIntrinsicBlurVFU4_K(out, ptrIn, iStride, gPtr, ct, x1, x1 + t);
+ x1 += t;
+ ptrIn += t << 2;
+ out += t;
}
- x1 += t;
}
#endif