Link Copied
If I create CL_RGBA image with CL_UNSIGNED_INT8 / INT16 / INT32 or even CL_FLOAT data type, it succeeds. However, if I repeat the same with channel order CL_RGB or CL_R, it fails all together. It appears that not all channel orders are supported. My image dimensions are 600 x 400 (w x h).
You are correct as I was able to reproduce this error when using CL_R and CL_RGB, CL_LUMINANCE, and I think almost every format except CL_RGBA. This may be the cause of a number of problems I had getting my code ported to Intel's OpenCL implementation.
CL_BGRA, CL_UNORM_INT8
CL_RGBA, CL_UNORM_INT8
CL_BGRA, CL_UNORM_INT8
CL_RGBA, CL_UNORM_INT16
CL_RGBA, CL_SIGNED_INT8
CL_RGBA, CL_SIGNED_INT16
CL_RGBA, CL_SIGNED_INT32
CL_RGBA, CL_UNSIGNED_INT8
CL_RGBA, CL_UNSIGNED_INT16
CL_RGBA, CL_UNSIGNED_INT32
CL_RGBA, CL_HALF_FLOAT
CL_RGBA, CL_FLOAT
Format [0] = CL_RGBA / CL_UNORM_INT8
Format [1] = CL_RGBA / CL_UNORM_INT16
Format [2] = CL_RGBA / CL_SIGNED_INT8
Format [3] = CL_RGBA / CL_SIGNED_INT16
Format [4] = CL_RGBA / CL_SIGNED_INT32
Format [5] = CL_RGBA / CL_UNSIGNED_INT8
Format [6] = CL_RGBA / CL_UNSIGNED_INT16
Format [7] = CL_RGBA / CL_UNSIGNED_INT32
Format [8] = CL_RGBA / CL_HALF_FLOAT
Format [9] = CL_RGBA / CL_FLOAT
Format [10] = CL_BGRA / CL_UNORM_INT8
Format [11] = CL_INTENSITY / CL_FLOAT
Format [12] = CL_LUMINANCE / CL_FLOAT
For more complete information about compiler optimizations, see our Optimization Notice.