i965/nir: add a helper to lower gl_PatchVerticesIn to a uniform