glsl: add can_skip_compile() helper