RSS/Atom feed Twitter
Site is read-only, email is disabled

[PATCH 1/1] alien-map: Check error from gegl_cl_set_kernel_args

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

[PATCH 1/1] alien-map: Check error from gegl_cl_set_kernel_args Jan Vesely 20 Apr 16:07
Jan Vesely
2014-04-20 16:07:20 UTC (over 10 years ago)

[PATCH 1/1] alien-map: Check error from gegl_cl_set_kernel_args

Signed-off-by: Jan Vesely
---
operations/common/alien-map.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/operations/common/alien-map.c b/operations/common/alien-map.c index 7efe29d..ff48d34 100644
--- a/operations/common/alien-map.c
+++ b/operations/common/alien-map.c
@@ -181,13 +181,13 @@ cl_process (GeglOperation *operation, keep.s[1] = (cl_int)o->cpn_2_keep; keep.s[2] = (cl_int)o->cpn_3_keep;
- gegl_cl_set_kernel_args (cl_data->kernel[0], - sizeof(cl_mem), &in, - sizeof(cl_mem), &out, - sizeof(cl_float3), &freq, - sizeof(cl_float3), &phaseshift, - sizeof(cl_int3), &keep, - NULL);
+ cl_err = gegl_cl_set_kernel_args (cl_data->kernel[0], + sizeof(cl_mem), &in, + sizeof(cl_mem), &out, + sizeof(cl_float3), &freq, + sizeof(cl_float3), &phaseshift, + sizeof(cl_int3), &keep, + NULL); CL_CHECK;

cl_err = gegl_clEnqueueNDRangeKernel (gegl_cl_get_command_queue (),

1.9.0