Consider the code:
#pragma OPENCL EXTENSION cl_intel_planar_yuv : begin // some declarations #pragma OPENCL EXTENSION cl_intel_planar_yuv : end
is enough for extension to become known for clang.
Remove unnecessary definition (otherwise the extension will be define where it's not supposed to be defined).