compiler fails at __read_write image2d_t

Has somebody encountered the problem, when setting image access to __read_write? Is there a solution to that problem?

I need a single texture from which I read data, merge them and store it in different place in the same texture ( similar to mipmaps generating). However, whenever I try to compile kernel with __read_write image2d_t parameter, the compiler fails and I can’t get even any build log through clBuildProgram callback function. The __write_only and __read_only works fine.

Has somebody encountered the problem, when setting image access to __read_write? Is there a solution to that problem?

I need a single texture from which I read data, merge them and store it in different place in the same texture ( similar to mipmaps generating). However, whenever I try to compile kernel with __read_write image2d_t parameter, the compiler fails and I can’t get even any build log through clBuildProgram callback function. The __write_only and __read_only works fine.