diff options
author | Jason Sams <jsams@google.com> | 2014-10-22 13:22:02 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2014-11-10 12:02:23 -0800 |
commit | bfc23288e830aa3689d24f803561d98174c524e3 (patch) | |
tree | 7f0869e1b36b0b105f9800367ae928d096787119 /cpu_ref/rsCpuIntrinsicBlur.cpp | |
parent | ea763caef58576b33ab73c282b3b1036c2e5465d (diff) | |
download | rs-bfc23288e830aa3689d24f803561d98174c524e3.tar.gz |
Enable ASM path for blur intrinsic when clipped
Fix minor clipping bug in ASM code where the start offset was
added twice.
Change-Id: I6d831478b4a7da8460e70015151dbadf16bd7096
Diffstat (limited to 'cpu_ref/rsCpuIntrinsicBlur.cpp')
-rw-r--r-- | cpu_ref/rsCpuIntrinsicBlur.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu_ref/rsCpuIntrinsicBlur.cpp b/cpu_ref/rsCpuIntrinsicBlur.cpp index 9c6433a5..ffdb74b1 100644 --- a/cpu_ref/rsCpuIntrinsicBlur.cpp +++ b/cpu_ref/rsCpuIntrinsicBlur.cpp @@ -297,7 +297,7 @@ void RsdCpuScriptIntrinsicBlur::kernelU4(const RsExpandKernelParams *p, uint32_t x2 = xend; #if defined(ARCH_ARM_USE_INTRINSICS) - if (gArchUseSIMD && !xstart && (xend == p->dimX)) { + if (gArchUseSIMD) { rsdIntrinsicBlurU4_K(out, (uchar4 const *)(pin + stride * p->y), p->dimX, p->dimY, stride, x1, p->y, x2 - x1, cp->mIradius, cp->mIp + cp->mIradius); return; @@ -367,9 +367,9 @@ void RsdCpuScriptIntrinsicBlur::kernelU1(const RsExpandKernelParams *p, uint32_t x2 = xend; #if defined(ARCH_ARM_USE_INTRINSICS) - if (gArchUseSIMD && !xstart && (xend == p->dimX)) { + if (gArchUseSIMD) { rsdIntrinsicBlurU1_K(out, pin + stride * p->y, p->dimX, p->dimY, - stride, 0, p->y, p->dimX, cp->mIradius, cp->mIp + cp->mIradius); + stride, x1, p->y, x2 - x1, cp->mIradius, cp->mIp + cp->mIradius); return; } #endif |