I would like to check if anybody else is seeing things like that.
I have a simple kernel doing a simple texture copy (npower2 to p2) conversion that was working fine with OpenCL 1.1 and with OpenCL 1.2 I am getting a black image.
Other kernels seems to be working fine so that points at a bug somewhere but I have strictly no idea where.
//Texturing into a power of 2 target
float4 RunPass ( __read_only image2d_t input_texture, int2 pos, __constant ImageFilterParams *params)
int2 input_dim =get_image_dim(input_texture);
pos.x = pos.x - params->outputTextureCenterX + (input_dim.x/2);
pos.y = pos.y - params->outputTextureCenterY + (input_dim.y/2);
if ( pos.x < 0 || pos.x >= input_dim.x || pos.y < 0 || pos.y >input_dim.y )
return read_imagef(input_texture,int_nearest_sampler2, pos );
__kernel void ImageFilterKernel(__read_only image2d_t texture, __write_only image2d_t output, __constant ImageFilterParams *params)
int x = get_global_id(0);
int y = get_global_id(1);
int2 image_dim =get_image_dim(output);
if (( y < image_dim.y ) && (x < image_dim.x ))
int2 position = (int2)(x,y);
float4 color = RunPass(texture,position,params);
No failure reported by the functions that I am calling.