st/mesa: move point_size_per_vertex-logic to helper