bug 7190126
FS intrinsic perf work.
Fix correctness issue with convolve 3x3.
Change-Id: I7f2657c5e9da003f91ad6a9c2f85d8d43913654b
diff --git a/driver/rsdIntrinsicBlur.cpp b/driver/rsdIntrinsicBlur.cpp
index 0d0483e..c394cc0 100644
--- a/driver/rsdIntrinsicBlur.cpp
+++ b/driver/rsdIntrinsicBlur.cpp
@@ -115,8 +115,14 @@
int x1, int x2) {
#if defined(ARCH_ARM_HAVE_NEON)
- rsdIntrinsicBlurVF_K(out, ptrIn, iStride, gPtr, ct, x1, x2);
- return;
+ {
+ int t = (x2 - x1);
+ t &= ~1;
+ if(t) {
+ rsdIntrinsicBlurVF_K(out, ptrIn, iStride, gPtr, ct, x1, x1 + t);
+ }
+ x1 += t;
+ }
#endif
while(x2 > x1) {