i965: Unify the two emit_pipe_control functions