glsl: Add an IR lowering pass to convert mediump operations to 16-bit