summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorMassimo Valentini <mvalentini@src.gnome.org>2013-12-09 18:18:01 +0100
committerMassimo Valentini <mvalentini@src.gnome.org>2013-12-09 18:18:01 +0100
commitc556f4323a9fc9c18b78596afd0357d0b4a52d90 (patch)
tree53d0011eb9e4d4f1e3fb5fa374c9c85c44b3a08b /opencl
parent17105d463b482a14894cce45d8f6700af3409e37 (diff)
opencl: colors-8bit-lut typos
in GIMP gaussian-blurring (FIR) an image "R'G'B'A u8" used to produce a grayscale image when OpenCL was enabled
Diffstat (limited to 'opencl')
-rw-r--r--opencl/colors-8bit-lut.cl10
-rw-r--r--opencl/colors-8bit-lut.cl.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/opencl/colors-8bit-lut.cl b/opencl/colors-8bit-lut.cl
index 93c00a7b..c3058e81 100644
--- a/opencl/colors-8bit-lut.cl
+++ b/opencl/colors-8bit-lut.cl
@@ -348,8 +348,8 @@ __kernel void rgba_gamma_u8_to_ragabaf (__global const uchar4 * in,
float4 tmp_v;
tmp_v = (float4)(u8_gamma_to_linear_lut[(int)in_v.x],
- u8_gamma_to_linear_lut[(int)in_v.x],
- u8_gamma_to_linear_lut[(int)in_v.x],
+ u8_gamma_to_linear_lut[(int)in_v.y],
+ u8_gamma_to_linear_lut[(int)in_v.z],
in_v.w / 255.0f);
out_v = tmp_v * tmp_v.w;
@@ -366,8 +366,8 @@ __kernel void rgba_gamma_u8_to_yaf (__global const uchar4 * in,
uchar4 in_v = in[gid];
float4 tmp_v;
tmp_v = (float4)(u8_gamma_to_linear_lut[(int)in_v.x],
- u8_gamma_to_linear_lut[(int)in_v.x],
- u8_gamma_to_linear_lut[(int)in_v.x],
+ u8_gamma_to_linear_lut[(int)in_v.y],
+ u8_gamma_to_linear_lut[(int)in_v.z],
in_v.w / 255.0f);
float2 out_v;
@@ -379,4 +379,4 @@ __kernel void rgba_gamma_u8_to_yaf (__global const uchar4 * in,
out_v.y = tmp_v.w;
out[gid] = out_v;
-} \ No newline at end of file
+}
diff --git a/opencl/colors-8bit-lut.cl.h b/opencl/colors-8bit-lut.cl.h
index 0567a78d..a63ba7ff 100644
--- a/opencl/colors-8bit-lut.cl.h
+++ b/opencl/colors-8bit-lut.cl.h
@@ -349,8 +349,8 @@ static const char* colors_8bit_lut_cl_source =
" float4 tmp_v; \n"
" \n"
" tmp_v = (float4)(u8_gamma_to_linear_lut[(int)in_v.x], \n"
-" u8_gamma_to_linear_lut[(int)in_v.x], \n"
-" u8_gamma_to_linear_lut[(int)in_v.x], \n"
+" u8_gamma_to_linear_lut[(int)in_v.y], \n"
+" u8_gamma_to_linear_lut[(int)in_v.z], \n"
" in_v.w / 255.0f); \n"
" \n"
" out_v = tmp_v * tmp_v.w; \n"
@@ -367,8 +367,8 @@ static const char* colors_8bit_lut_cl_source =
" uchar4 in_v = in[gid]; \n"
" float4 tmp_v; \n"
" tmp_v = (float4)(u8_gamma_to_linear_lut[(int)in_v.x], \n"
-" u8_gamma_to_linear_lut[(int)in_v.x], \n"
-" u8_gamma_to_linear_lut[(int)in_v.x], \n"
+" u8_gamma_to_linear_lut[(int)in_v.y], \n"
+" u8_gamma_to_linear_lut[(int)in_v.z], \n"
" in_v.w / 255.0f); \n"
" float2 out_v; \n"
" \n"