squash! WIP: shader_runner: choose GL version based on GLSL version more accurately

Move required_gl_version_from_glsl_version to piglit-util-common.c so that it can be used by other functions.
squash! WIP: shader_runner: choose GL version based on GLSL version more accurately

Extend to glslparsertest.