Sampler 2D CLK_ADDRESS_REPEAT problem.

Hi,
It seems the CLK_ADDRESS_REPEAT will not work properly :


const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_FILTER_NEAREST | CLK_ADDRESS_REPEAT;

With these sampler parameters, if I try to read out of the texture original domain, I will always get the edge color.

The code to read the 2d float texture is :


    //  kernel parameter
     __read_only image2d_t in_fTexture

    //  Code to read
	int2 i2Coord;
	i2Coord.x = get_global_id(0);
	i2Coord.y = get_global_id(1);
	float4 v4Pos = read_imagef( in_fTexure, sampler, i2Coord );

Do you know what I am missing to have the CLK_ADDRESS_REPEAT to work?

I am working with a GeForce GT 220 card with 285.62 Win 7 x64 drivers.

Thanks

From the specification:

CLK_ADDRESS_REPEAT – out-of-range image coordinates are wrapped to the valid range. This addressing mode can only be used with normalized coordinates. If normalized coordinates are not used, this addressing mode may generate image coordinates that are undefined.

You should probably be seeing a compilation failure. If not, send a bug report to the hardware vendor.

Yeah, I should not use only the quick reference card!

Thanks.