[gegl] opencl: fix a compilation error of the last commit for edge-laplace
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] opencl: fix a compilation error of the last commit for edge-laplace
- Date: Mon, 14 Oct 2013 16:11:06 +0000 (UTC)
commit b25abdc29a4e6af9c6fea7751fe9eaaf6faeb28c
Author: Téo Mazars <teo mazars ensimag fr>
Date: Mon Oct 14 18:08:58 2013 +0200
opencl: fix a compilation error of the last commit for edge-laplace
but the test is still not fixed
opencl/edge-laplace.cl | 4 ++--
opencl/edge-laplace.cl.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/opencl/edge-laplace.cl b/opencl/edge-laplace.cl
index fccceb5..d038836 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 d227c26..5682583 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]