This is a follow up to my recent thread. The kernel is the same (it should just copy an image to another):
const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE |
__kernel void copy(__read_only image2d_t src, __write_only image2d_t dst)
int x = get_global_id(0);
int y = get_global_id(1);
pos.x = x;
pos.y = y;
input = read_imageui(src, sampler, pos);
write_imageui(dst, pos, input);
This will output distorted picture as if the resolution had been dropped with different resolutions for x-axis and y-axis.
I'm quite sure that the problem is in the kernel since if I load the picture to image object and then out again I get right results.
I don't understand what could go wrong since the kernel is so simple. Any ideas?