Commit dd87554c authored by Alexia Death's avatar Alexia Death

operations: fix mono-mixer cl code and re-enable

parent 12b0aa46
__kernel void gegl_mono_mixer (__global const float4 *src_buf,
__global float2 *dst_buf,
const int preserve_luminocity,
float red,
float green,
float blue,
const int preserve_luminocity)
float blue)
{
int gid = get_global_id(0);
float4 in_v = src_buf[gid];
......
static const char* mono_mixer_cl_source =
"__kernel void gegl_mono_mixer (__global const float4 *src_buf, \n"
" __global float2 *dst_buf, \n"
" const int preserve_luminocity, \n"
" float red, \n"
" float green, \n"
" float blue, \n"
" const int preserve_luminocity) \n"
" float blue) \n"
"{ \n"
" int gid = get_global_id(0); \n"
" float4 in_v = src_buf[gid]; \n"
......
......@@ -93,14 +93,8 @@ process (GeglOperation *op,
}
return TRUE;
}
/* FIXME!
* CL variant of the operation gives a different
* result than the non-cl code even without the luminoscity preservation code
* that seems to have no effect, as if toggle parameter never changes.
* Disabling for now. */
/*
#include "opencl/mono-mixer.cl.h"
*/
static void
gegl_op_class_init (GeglOpClass *klass)
......@@ -119,7 +113,7 @@ gegl_op_class_init (GeglOpClass *klass)
"title", _("Mono Mixer"),
"categories", "color",
"description", _("Monochrome channel mixer"),
/* "cl-source", mono_mixer_cl_source, */
"cl-source", mono_mixer_cl_source,
NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment