anv/pipeline: Pull shader compilation out into a helper.