I have a simple kernel that writes to a write only opencl image.
I execute this line in my kernel:
write_imagei(output, pos,(1,2,3,1));
However, when I map the output image, and look at the data, it looks like:
0x01 0x01 0x01 0x01 ......
It seems that all channels are filled with the alpha value.
Link Copied
sorry, my bad. Please ignore this.
For more complete information about compiler optimizations, see our Optimization Notice.