Merge a whole bunch of fixes made to CPU formats, to the OpenCL ones.