mesa: add gen_vertex_arrays_err() helper