summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorTéo Mazars <teo.mazars@ensimag.fr>2013-10-14 18:08:58 +0200
committerTéo Mazars <teo.mazars@ensimag.fr>2013-10-14 18:10:43 +0200
commitb25abdc29a4e6af9c6fea7751fe9eaaf6faeb28c (patch)
tree95ef6b19a7fe148c791861d2db0a98fd46aa5036 /opencl
parent05669339c67e7c6cfb0f2ad7f7f509ddaffdcbc7 (diff)
opencl: fix a compilation error of the last commit for edge-laplace
but the test is still not fixed
Diffstat (limited to 'opencl')
-rw-r--r--opencl/edge-laplace.cl4
-rw-r--r--opencl/edge-laplace.cl.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/opencl/edge-laplace.cl b/opencl/edge-laplace.cl
index fccceb50..d0388367 100644
--- a/opencl/edge-laplace.cl
+++ b/opencl/edge-laplace.cl
@@ -101,8 +101,8 @@ kernel void pre_edgelaplace (global float4 *in,
fmax((maxval - pix_mm[c]),(pix_mm[c] - minval));
gradient[c] =
(pix_fl[c] + pix_fm[c] + pix_fr[c] +
- pix_bm[c] - 8.0f * pix_mm[c]+ pix_br[c]
- pix_ml[c] + pix_mr[c] + pix_bl[c] +) <
+ pix_bm[c] - 8.0f * pix_mm[c] + pix_br[c] +
+ pix_ml[c] + pix_mr[c] + pix_bl[c]) <
EPSILON ? -1.0f * gradient[c] : gradient[c];
}
gradient[3] = pix_mm[3];
diff --git a/opencl/edge-laplace.cl.h b/opencl/edge-laplace.cl.h
index d227c26e..5682583a 100644
--- a/opencl/edge-laplace.cl.h
+++ b/opencl/edge-laplace.cl.h
@@ -102,8 +102,8 @@ static const char* edge_laplace_cl_source =
" fmax((maxval - pix_mm[c]),(pix_mm[c] - minval)); \n"
" gradient[c] = \n"
" (pix_fl[c] + pix_fm[c] + pix_fr[c] + \n"
-" pix_bm[c] - 8.0f * pix_mm[c]+ pix_br[c] \n"
-" pix_ml[c] + pix_mr[c] + pix_bl[c] +) < \n"
+" pix_bm[c] - 8.0f * pix_mm[c] + pix_br[c] + \n"
+" pix_ml[c] + pix_mr[c] + pix_bl[c]) < \n"
" EPSILON ? -1.0f * gradient[c] : gradient[c]; \n"
" } \n"
" gradient[3] = pix_mm[3]; \n"