Detect mesa version.