glsl: Use has_layout() rather than a partial open coded version.