nir, mesa/st: Ensure varying precisions match across stages
We add a NIR linking helper to match precisions which allows the backend to optimize varyings to use lower precision without draw-time shenanigans. For SSO, precisions have to match anyway.