If using OpenCL for colourspace conversion then use inputSurface in device memory directly. Should be faster if I'm not missing something. Also fake #define at the end of OpenCL kernel source for AMD frontend workaround. wtf.