[gegl] shameful bug in kernels
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] shameful bug in kernels
- Date: Tue, 20 Mar 2012 13:52:14 +0000 (UTC)
commit 76abcccfc764461427e0f28b7fc6c91cc95afcf0
Author: Victor Oliveira <victormatheus gmail com>
Date: Thu Jan 26 10:05:45 2012 -0200
shameful bug in kernels
gegl/opencl/gegl-cl-color-kernel.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-color-kernel.h b/gegl/opencl/gegl-cl-color-kernel.h
index 9d517e0..b31f6f0 100644
--- a/gegl/opencl/gegl-cl-color-kernel.h
+++ b/gegl/opencl/gegl-cl-color-kernel.h
@@ -113,7 +113,7 @@ static const char* kernel_color_source =
"{ \n"
" int2 gid = (int2)(get_global_id(0), get_global_id(1)); \n"
" float4 in_v = read_imagef(in, sampler, gid); \n"
-" float4 out_v; \n"
+" float4 out_v = in_v; \n"
" write_imagef(out, gid, out_v); \n"
"} \n"
" \n"
@@ -123,7 +123,7 @@ static const char* kernel_color_source =
"{ \n"
" int2 gid = (int2)(get_global_id(0), get_global_id(1)); \n"
" float4 in_v = read_imagef(in, sampler, gid); \n"
-" float4 out_v; \n"
+" float4 out_v = in_v; \n"
" write_imagef(out, gid, out_v); \n"
"} \n"
" \n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]