i965: generalize brw_vs_pull_constants in preparation for GS.