glsl: add ir_variable::determine_interpolation_mode() function.