From: vbystricky Date: Thu, 31 Jul 2014 13:29:06 +0000 (+0400) Subject: Fix error in OCL minmaxloc X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3079^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11a0e3ff783e986bb340e91dcb29779835c6d4ee;p=platform%2Fupstream%2Fopencv.git Fix error in OCL minmaxloc --- diff --git a/modules/core/src/opencl/minmaxloc.cl b/modules/core/src/opencl/minmaxloc.cl index 664673e..1d84567 100644 --- a/modules/core/src/opencl/minmaxloc.cl +++ b/modules/core/src/opencl/minmaxloc.cl @@ -209,7 +209,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off #if kercn == 1 #ifdef NEED_MINVAL -#if NEED_MINLOC +#ifdef NEED_MINLOC if (minval > temp) { minval = temp; @@ -326,7 +326,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off int lid2 = lsize + lid; #ifdef NEED_MINVAL -#ifdef NEED_MAXLOC +#ifdef NEED_MINLOC if (localmem_min[lid] >= localmem_min[lid2]) { if (localmem_min[lid] == localmem_min[lid2])